Commit Graph

36 Commits (a4d99b9af924a6f5ed4bbc030161d8273d460c3f)

Author SHA1 Message Date
Glen Cheney f72f57d5c5 Fix misspelled delimiter option #215 6 years ago
Glen Cheney 7987a40c53 Allow custom sort function in sorter #197 6 years ago
Glen Cheney ded5ff2546 Add typings file. 7 years ago
Glen Cheney 15b3738d7b Improve isCentered option. Add tests for it.
isCentered will now revert previously centered rows when a following row overlaps it.
7 years ago
Glen Cheney bc5d41902f Add react demo. Add `resetItems()` method. 7 years ago
Glen Cheney 0b78b0727e Use `aria-hidden` attribute. Make methods that use transforms `protected` so people can override them to support old browsers.
and some other minor changes.
7 years ago
Glen Cheney 619470c43b Add flexbox grid demo. 7 years ago
Glen Cheney 57ded43991 Use TinyEmitter, expect ES6 environment. Change global export to `Shuffle`.
Replace array-uniq with Array.from/Set
Replace xtend with Object.assign
Remove custom-event-polyfill
Use Array.prototype.includes (ES7)
7 years ago
Glen Cheney 4f95fba70b Update filterMode option. Add tests for filterMode. 7 years ago
Glen Cheney de62e26169 Merge pull request #135 from Vestride/greenkeeper/sinon-2.1.0
Update sinon to the latest version 🚀
7 years ago
Glen Cheney e7f677ee2a Remove deprecated usage of sinon. 7 years ago
Glen Cheney 407852eb72 Fix `before` styles not applied when the item didn’t move. Fixes #133 7 years ago
Glen Cheney de1e9b52a3 Use new 'auto' polyfill file for es6-polyfill 8 years ago
Glen Cheney 13d3dacc77
Fix delimeter option #108 8 years ago
Glen Cheney e1ea20f7da
Replace Promise dependency with array-parallel package 8 years ago
Glen Cheney 99ed4e37fe Add ability to customize styles. Rename filtered => visible and concealed => hidden.
Prefix shuffle item state classes.
Change ClassName => Classes because it's shorter.
8 years ago
Glen Cheney 60cc0241b3 Docs updates. Remove LOADING and DONE events. 8 years ago
Glen Cheney b6d9f23e2b Finish converting tests to mocha+chai. Add helper for onTransitionEnd. 8 years ago
Glen Cheney cfa68c76de Switch to mocha/chai for tests with gulp-mocha-phantomjs
JSDom's getComputedStyle wasn't working.
8 years ago
Glen Cheney b9065eb9b0 Got jest working for tests. jsdom sucks. 8 years ago
Glen Cheney 88f8813361 Add gulp watch task which builds jekyll. 8 years ago
Glen Cheney 37e6a86ff3 Added stagger option. More refactoring. Working home page demo again. 8 years ago
Glen Cheney f2367d24e2 Add explanation of column set and another test to go with it. 10 years ago
Glen Cheney da0029900a Update dependencies 10 years ago
Glen Cheney 6af401825d Add test for last 🐛. Refactor similar tests into a new describe block. 10 years ago
Glen Cheney 930a4bf3bb Rename colYs to positions and position to point. 10 years ago
Glen Cheney 77ab29d945 Use point object and fix the outer width method. Attach Shuffle to the window.
It doesn't work when an element has been scaled and using getBoundingClientRect. The rect returns the actual width of the scaled element.
Shuffle is now a global variable - mostly so I can access it from tests. I don't know of a better way.
10 years ago
Glen Cheney faae1c7e32 Ensure the shuffle container has css styles it needs applied to it #26 10 years ago
Glen Cheney dcb16daf28 Refactor. Fix 🐛 calculating widths.
Refactor the getItemPosition method.
Fix `_getOuterWidth` for Firefox because offsetWidth/Height return
integers for Firefox. Now it uses `getBoundingClientRect` to determine
the width.
Up the column threshold from `0.03` to `0.3` because Safari (desktop &
mobile) return integers for the client rect and offsetWidth.
Add a note about the native Android browser with 4.1.0 and 4.1.1 where
it incorrectly thinks it supports unprefixed transitions.
10 years ago
Glen Cheney 7ad8133147 Fix callback events when using jQuery.animate.
Replaced setTimeout/proxy with a defer method which can take a context.
Changed jQuery to use v1 instead of v2 in testing so that old IE can
use the tests.
Add a few specs where `supported = false` so jQuery.animate will be
tested.
Add isTransitioning flag to determine when shuffle is already doing
something.
10 years ago
Glen Cheney a40cc67a90 Specs, refactoring, JSDoc. 10 years ago
Glen Cheney 36fad3200a Refactor all the things.
Removed shrink, shrunk, filter, and filtered events.
10 years ago
Glen Cheney c9105289e1 Update add items 3rd mode to mix in to the current set.
When the items are sorted, using the mix in method is much better
looking, but adding items to the end is better for infinite scrolling
and DOM order.
* Mix in.
* Add to end.
* Add to end with sequential delay.
10 years ago
Glen Cheney ebec8b6b14 Fix bug with callback.
where the `layout` and `filtered` weren't called because none of the
newly filtered items would change position.
10 years ago
Glen Cheney 0a2ee22470 Add more specs 10 years ago
Glen Cheney cceb641d50 Add grunt-contrib-jasmine for unit tests.
Add jasmine-jquery for help with fixtures and testing jQuery objects.
Add four test specs.
10 years ago