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

Accessors

Methods

  • Type Parameters

    • V

    Parameters

    • options: AnimationOptions<V> & {
          key?: string;
          target?: any;
      }
    • Optional animations: AnimationResult[]

    Returns Promise<string>

  • Type Parameters

    • T

    Parameters

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

    Returns Promise<string>

Generated using TypeDoc