Defines the structure for storing the state of an animation. Contains information about the state of layers and layer clips within the animation.

interface AnimationState {
    byLayer: {
        [id: string]: LayerState;
    };
    byLayerClip: {
        [id: string]: LayerClipState;
    };
    spotlightLayer?: string;
}

Properties

byLayer: {
    [id: string]: LayerState;
}

Stores the state of each layer by its ID.

byLayerClip: {
    [id: string]: LayerClipState;
}

Stores the state of each layer clip by its ID.

spotlightLayer?: string

ptional ID of the spotlight layer, if any.