Commit Graph

6 Commits (be410cc17f0cb75bfb3a47fd6aa43a528f8f5bfe)

Author SHA1 Message Date
Glen Cheney be410cc17f Change typings to use default export #214
If you're using CommonJS, you will need to `import * as Shuffle from 'shufflejs'`.
If you're using webpack and ts is configured to maintain `import`s, you can use it like `import Shuffle from 'shufflejs'`
5 years ago
Glen Cheney f72f57d5c5 Fix misspelled delimiter option #215 6 years ago
AntoineC bd6733b7eb Add missing type for sortOptions (#174)
Fix parameter declaration for getStylesForTransition function.
Those two changes allow to use Typescript compiler with option noImplicitAny.
7 years ago
Glen Cheney eaae5533ff Round translate values by default. 7 years ago
Glen Cheney 3b9e140a53 Avoid requirement for scale properties being different.
This is done with the new `isHidden` property of ShuffleItem which is set by `_layout` and `_shrink` because the filter methods set `isVisible`.
Allow transitions on anything, not just transform and opacity.
JSDoc `Function` => `function`.
7 years ago
Glen Cheney ded5ff2546 Add typings file. 7 years ago