figureone
    Preparing search index...

    Interface OBJ_AnimationStep

    Animation Step options object

    • onFinish (cancelled: boolean) => void | null — called when animation is finished - a true parameter is passed to the callback if the animation was cancelled
    • completeOnCancel boolean | nulltrue to skip to end of animation on cancel (null)
    • removeOnFinish booleantrue to remove the animation from the animation manager when it is finished (true)
    • name string — animation name identifier (a random string)
    • duration number — in seconds (0)
    • delay number — delay before animation starts in seconds (0)
    • precision number — precision to do calculations to (8)
    • timeKeeper TimeKeeper | null — animations need to be tied to a time reference. If this is not supplied, then the default browser time reference performance.now will be used and methods with TypeWhen parameters will allow only 'now' and 'nextFrame' and not 'lastFrame', 'syncNow'. When the animation step is created from an element in a figure (using element.animations or element.animations.new()), then the animation step will automatically inherit the figure's TimeKeeper.