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 full)

Constructors

Properties

_dirty: boolean = false
_fadeDisabled: boolean = false
_lastFrameTime: number = 0
_updaters: {
    time: number;
    u: ((timestamp) => void);
}[] = []

Type declaration

  • time: number
  • u: ((timestamp) => void)
      • (timestamp): void
      • Parameters

        • timestamp: number

        Returns void

_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

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
OldPluginType?: string
PluginType: "PopmotionPlugin" = 'PopmotionPlugin'

Accessors

Methods

Generated using TypeDoc