weasel API - v0.8.0
    Preparing search index...

    Interface TweenPoseOptions<TPose>

    interface TweenPoseOptions<TPose> {
        easing?: EasingFn;
        geometry?: PoseProjection<TPose>;
        id: string;
        ms: number;
        onDone?: () => void;
        opLabel?: string;
        recordOp?: boolean;
        to: TPose;
    }

    Type Parameters

    • TPose
    Index

    Properties

    easing?: EasingFn
    geometry?: PoseProjection<TPose>

    Pose descriptor with a lerp(from, to, t) method. Defaults to RECT_POSE_DESCRIPTOR, which interpolates x/y/width/height linearly.

    id: string
    ms: number
    onDone?: () => void
    opLabel?: string

    Label for the recorded op. Default: 'animate'.

    recordOp?: boolean

    When true (default), emit a transform op before the tween so undo restores the pre-animation pose.

    to: TPose