Used by plugin creators to allow their content to be animated. A plugin can animate canvas, WebGl, svg or reduce the complexity of a CSS animation. The story uses uid to manage animators.

interface VirtualAnimator {
    selector: string;
    frameRendered?(args?: BeamToIXArgs): void;
    getProp(name: string, args?: BeamToIXArgs): any;
    setProp(name: string, value: any, args?: BeamToIXArgs): void;
    waitFor?(waitFor: WaitFor, onDone: DoneFunc, args?: BeamToIXArgs): void;
}

Hierarchy (view full)

Implemented by

Properties

selector: string

Methods

  • Called after the frame is rendered, and before moves to the next frame. This method is called even if no property changed. It's an optional method, but future version might require its implementation.

    Parameters

    • Optionalargs: BeamToIXArgs

    Returns void

  • Parameters

    • name: string
    • Optionalargs: BeamToIXArgs

    Returns any

  • Parameters

    • name: string
    • value: any
    • Optionalargs: BeamToIXArgs

    Returns void

  • Parameters

    • waitFor: WaitFor
    • onDone: DoneFunc
    • Optionalargs: BeamToIXArgs

    Returns void