Class PopmotionPlugin

Popmotion plugin

Provides animation capabilities to the viewer using the popmotion library: https://popmotion.io/

Overrides the driver in popmotion to sync with the viewer and provide ways to keep track and stop animations.

Hierarchy

Constructors

Properties

_dirty: boolean = false
_fadeDisabled: boolean = false
_lastFrameTime: number = 0
_updaters: {
    time: number;
    u: ((timestamp) => void);
}[] = []
_viewer?: ThreeViewer
animations: Record<string, AnimationResult> = {}
constructor: typeof AViewerPluginSync & typeof AViewerPlugin
defaultDriver: Driver = ...
dependencies: never[] = []
disableFrameFade: boolean = true

Disable the frame fade plugin while animation is running

enabled: boolean = true
fromJSON: any = undefined
toJSON: any = undefined
uiConfig?: UiObjectConfig<any, string, any> = undefined
PluginType: "PopmotionPlugin" = 'PopmotionPlugin'

Accessors

Methods

  • Type Parameters

    • T

    Parameters

    • target: T
    • key: keyof T
    • options: AnimationOptions<T[keyof T]>

    Returns AnimationResult

  • Type Parameters

    • T

    Parameters

    • target: T
    • key: keyof T
    • options: AnimationOptions<T[keyof T]>
    • Optional animations: AnimationResult[]

    Returns Promise<string>

Generated using TypeDoc