Interface DraggableOptionsStore
interface DraggableOptionsStore {
tween: boolean;
tweenOptions: QuickTweenOptions;
tweenDuration: number;
tweenEase: EasingReference;
reset(): void;
resetTween(): void;
resetTweenOptions(): void;
subscribe(this: void, run: Subscriber<DraggableOptionsStore>, invalidate?: Invalidator<DraggableOptionsStore>): Unsubscriber;
}
tween: boolean;
tweenOptions: QuickTweenOptions;
tweenDuration: number;
tweenEase: EasingReference;
reset(): void;
resetTween(): void;
resetTweenOptions(): void;
subscribe(this: void, run: Subscriber<DraggableOptionsStore>, invalidate?: Invalidator<DraggableOptionsStore>): Unsubscriber;
}
Hierarchy
- Readable<DraggableOptionsStore>
- DraggableOptionsStore (view full)
Index
Accessors
Methods
Properties
Accessors
tweenDuration
- get tweenDuration(): number
Returns number
Get tween duration.
- set tweenDuration(duration): void
Parameters
- duration: number
Set tween duration.
Returns void
- duration: number
tweenEase
- get tweenEase(): EasingReference
Returns EasingReference
Get easing function or easing function name.
- set tweenEase(ease): void
Parameters
- ease: EasingReference
Set easing function by name or direct function.
Returns void
- ease: EasingReference
Methods
reset
resetTween
resetTweenOptions
subscribe
- subscribe(this, run, invalidate?): Unsubscriber
Subscribe on value changes.
Parameters
- this: void
- run: Subscriber<DraggableOptionsStore>
subscription callback
Optional
invalidate: Invalidator<DraggableOptionsStore>cleanup callback
Returns Unsubscriber
Provides an interface of the draggable action options support / Readable store to make updating / setting draggable options much easier. When subscribing to the options instance returned by draggable.options the Subscriber handler receives the entire instance.