PiDraw API
    Preparing search index...

    Interface IFigureAnimation

    The animation of a figure: a point moving from from to to.

    interface IFigureAnimation {
        callback?: () => void;
        delay: number;
        duration: number;
        easing: "linear" | "inOut";
        from: XY | Point | null;
        loop: LoopStyle;
        to: XY | Point | null;
    }
    Index
    callback?: () => void

    Called when the animation ends.

    delay: number

    Before the animation starts, in seconds.

    duration: number

    In seconds.

    easing: "linear" | "inOut"

    How the point speeds up: the name of an easing (linear, inOut...).

    from: XY | Point | null

    Where the point starts: a point (followed while it moves) or a position in coordinates. null when not given.

    loop: LoopStyle
    to: XY | Point | null

    Where the point ends: a point or a position in coordinates. null when not given.