Commit Graph

10 Commits (b4b992a20751376cbd5338e9b512714f041a1aa3)

Author SHA1 Message Date
Glen Cheney 9f79d9f441
Add sortedItems prop, fix Chrome bug (#351) 3 years ago
Amir Hossein Karimi 2c8e76f635
Add RTL feature (#337)
* Ignore yarn.lock

* Remove sourceMap from rollup terser
- sourcemap option is removed. Now it is inferred from rollup options.

* Add isRTL option & RTL feature

* Compile dist files

* Add isRTL to documents

* Fix isRTL option passed to ShuffleItem class

* Update TypeScript definitions to add isRTL & Direction CSS

* Compile assets
3 years ago
Glen Cheney 67f868dd47 Add missing inherited methods from TinyEmitter to type definitions. Fixes #294 5 years ago
Glen Cheney dc219da97a
Update TS definitions (#287)
* Update index.d.ts

* Add test typescript file and run it on npm test

* Ignore built file from types
5 years ago
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'`
6 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