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 (View Summary)

Constructors

Properties

_dirty: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<
    | "dispose"
    | "*"
    | "update"
    | "preRender"
    | "postRender"
    | "preFrame"
    | "postFrame"
    | "addPlugin"
    | "removePlugin"
    | "renderEnabled"
    | "renderDisabled",
    (e: IViewerEvent) => void,
> = {}
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 = undefined
OldPluginType?: string
PluginType: "PopmotionPlugin" = 'PopmotionPlugin'

Accessors

Methods