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.

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;
}
Hierarchy

Accessors

  • get tweenDuration(): number
  • Returns number

    Get tween duration.

  • set tweenDuration(duration): void
  • Parameters

    • duration: number

      Set tween duration.

    Returns void

Methods

  • Resets all options data to initial values.

    Returns void

  • Resets tween enabled state to initial value.

    Returns void

  • Resets tween options to initial values.

    Returns void

Properties

tween: boolean

Tweening enabled state.

tweenOptions: QuickTweenOptions

Quick tween options for easing function and duration.