File tree Expand file tree Collapse file tree
src/Plugins/SortAnimation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ declare module '@shopify/draggable' {
172172 mirror ?: MirrorOptions ;
173173 scrollable ?: ScrollableOptions ;
174174 swapAnimation ?: SwapAnimationOptions ;
175+ sortAnimation ?: SortAnimationOptions ;
175176 }
176177
177178 export class Draggable < EventListType = DraggableEventNames > {
@@ -510,9 +511,23 @@ declare module '@shopify/draggable' {
510511 protected detach ( ) : void ;
511512 }
512513
514+ /**
515+ * SortAnimation
516+ */
517+ export interface SortAnimationOptions {
518+ duration ?: number ;
519+ easingFunction ?: string ;
520+ }
521+
522+ class SortAnimation extends AbstractPlugin {
523+ protected attach ( ) : void ;
524+ protected detach ( ) : void ;
525+ }
526+
513527 export const Plugins : {
514528 Collidable : typeof Collidable ,
515529 SwapAnimation : typeof SwapAnimation ,
530+ SortAnimation : typeof SortAnimation ,
516531 ResizeMirror : typeof ResizeMirror ,
517532 Snappable : typeof Snappable ,
518533 } ;
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ import SortAnimation from '@shopify/draggable/lib/plugins/sort-animation';
2121```
2222
2323``` html
24- <script src =" https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8 /lib/plugins.js" ></script >
24+ <script src =" https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.10 /lib/plugins.js" ></script >
2525```
2626
2727``` html
28- <script src =" https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.8 /lib/plugins/sort-animation.js" ></script >
28+ <script src =" https://cdn.jsdelivr.net/npm/@shopify/draggable@1.0.0-beta.10 /lib/plugins/sort-animation.js" ></script >
2929```
3030
3131### API
You can’t perform that action at this time.
0 commit comments