Uses another clip as a mask source for this clip.
Clip whose sprite should be used as the mask source.
Optionaloptions: MaskOptionsOptional mask behavior.
The created mask filter, or undefined if the source clip has no sprite.
Optionalproperties: Record<string, any>Removes all custom metadata stored on the clip.
Nothing.
Creates a serialized copy of the clip with a new runtime instance.
A cloned clip instance.
Releases clip-owned runtime resources, masks, transitions, effects, and cached lookup state.
Nothing.
Cancels or discards any in-progress asynchronous clip work.
Nothing.
Generates a new clip ID and updates dependent runtime objects that store that ID.
Nothing.
Returns a copy of all custom metadata stored on the clip.
A copied metadata map, or undefined if no custom data has been stored.
Returns the raw Lottie animation JSON currently loaded in the runtime animation instance.
The animation data object, or undefined when the animation is not initialized yet.
Returns a stored metadata value for the clip.
Metadata key to look up.
The stored value, or undefined if the key is not present.
Returns the full clip duration before trims are applied.
The clip duration in seconds.
Returns the clip end time in timeline space.
The clip end time in seconds.
Returns the available Lottie property groups.
Property groups used to organize editable properties in the UI.
Returns the clip ID.
The clip ID.
Indicates whether the clip is currently part of any transition.
true if the clip is inside an incoming or outgoing transition; otherwise false.
Indicates whether the clip is still processing asynchronous work.
false in the base implementation. Subclasses override this for clip-specific processing.
Returns the ID of the layer that currently owns the clip.
The owning layer ID.
Returns the first visible playback time of the clip after left trim is applied.
The left playback bound in seconds.
Returns the amount trimmed from the left edge of the clip.
Left trim in seconds.
Returns the media asset ID currently bound to the clip.
The media asset ID, or undefined for clips without media.
Returns the user-visible clip name.
The clip name.
Returns the current Lottie playback speed multiplier.
Playback speed multiplier.
Returns the full property map keyed by property id.
Editable Lottie property descriptors.
Returns one editable property descriptor by id.
Property descriptor id.
The property descriptor, or undefined if it is not exposed.
Reads the current value of an exposed Lottie property, falling back to the live animation state when needed.
Property descriptor id.
The resolved property value, or undefined when the property cannot be found.
Returns the final visible playback time of the clip after right trim is applied.
The right playback bound in seconds.
Returns the amount trimmed from the right edge of the clip.
Right trim in seconds.
Returns the clip start time in timeline space.
The clip start time in seconds.
Returns the subtitles asset ID currently assigned to the clip.
The subtitles asset ID, or undefined if none is assigned.
Returns the stored subtitles offset for the clip.
The subtitles offset in seconds.
Returns the incoming transition ID associated with the clip.
The incoming transition ID, or null if none is set.
Returns the outgoing transition ID associated with the clip.
The outgoing transition ID, or null if none is set.
Returns the playable duration after both trims are applied.
The trimmed duration in seconds.
Returns the clip type identifier.
The clip type.
Indicates whether the clip is marked as visible.
true if the clip is renderable; otherwise false.
Indicates whether the clip has a stored metadata value for the provided key.
Metadata key to test.
true if the key exists; otherwise false.
Indicates whether the clip has a non-empty user-visible name.
true if a name is set; otherwise false.
Indicates whether the clip exposes a sprite that can be added to the render stage.
true in the base implementation. Sprite-less subclasses can override this.
Tests whether a screen-space point falls inside the clip's local bounds.
Screen-space cursor coordinates.
OptionalignoreVisibility: booleanWhen true, performs the hit test even if the sprite is not currently visible.
true if the point hits the clip; otherwise false.
Attaches the clip to a layer render container and initializes runtime-only resources.
Layer ID that owns this clip.
A promise that resolves after initialization completes.
Indicates whether the clip is active on the specified timeline frame.
Timeline time in seconds.
true if the current frame falls within the clip playback bounds; otherwise false.
Indicates whether the clip has enough runtime state to render and update.
true when the clip is idle or loaded; otherwise false.
Moves the clip forward or backward on the timeline by the provided offset.
Time delta in seconds.
Nothing.
Starts clip-specific preload work ahead of playback or rendering.
Current timeline time in seconds.
Nothing.
Removes a previously attached clip mask.
Mask source clip to detach.
Nothing.
Removes any subtitles association from the clip.
Nothing.
Replaces the in-memory Lottie animation data and rebuilds the runtime renderer around it.
This is intended for editor workflows that mutate the composition definition after the clip is already loaded.
New Lottie animation JSON payload.
A promise that resolves after the new animation is ready for rendering.
Resets every animated clip property back to its non-animated base value.
Nothing.
Resets a single animated property back to its base clip/style value.
Registered animation property key.
Nothing.
Serializes the Lottie clip, including URLs, editable properties, groups, and playback speed.
Serialized Lottie clip payload.
Replaces all custom clip metadata with a copy of the provided map.
Metadata entries to store.
Nothing.
Applies a single animated property value to the clip runtime state.
Registered animation property key.
Value to apply.
Nothing.
Sets the clip blend mode and applies the matching PIXI blend mode.
Blend mode to apply.
Nothing.
Stores arbitrary metadata on the clip.
Metadata key.
Metadata value.
Whether an existing key may be overwritten.
true if the value was stored; otherwise false when overwrite is disabled and the key already exists.
Marks whether the clip is currently inside an incoming transition.
Whether the clip participates in an incoming transition.
Nothing.
Marks whether the clip is currently inside an outgoing transition.
Whether the clip participates in an outgoing transition.
Nothing.
Updates the owning layer ID tracked by the clip.
Owning layer ID.
Nothing.
Sets the user-visible clip name.
Name to assign.
Nothing.
Updates the Lottie playback speed and retimes trims/start-time so the clip stays consistent on the timeline.
New playback speed multiplier.
When true, keeps the current visible left edge anchored in timeline space.
When true, attempts to preserve the current trimmed visible duration.
Sets the value of an exposed Lottie property and applies the change to the current animation renderer.
Supported property types also create undo records so editor changes can be reverted.
Property descriptor id from the clip's property manifest.
New property value.
Associates a subtitles asset with the clip and stores its playback offset.
Subtitles asset ID to attach.
Global subtitles offset in seconds.
Nothing.
Replaces the subtitles asset ID assigned to the clip without changing the stored offset.
Subtitles asset ID to assign.
Nothing.
Sets the stored subtitles offset for the clip.
Subtitles offset in seconds.
Nothing.
Sets the incoming transition ID currently associated with the clip.
Incoming transition ID, or null to clear it.
Nothing.
Sets the outgoing transition ID currently associated with the clip.
Outgoing transition ID, or null to clear it.
Nothing.
Sets whether the clip sprite is renderable.
Whether the clip should render.
Nothing.
Sets the texture wrap mode used by the clip.
Wrap mode to apply.
Nothing.
Updates clip animations, keyframed properties, style state, and effect state for the current frame.
Current timeline time in seconds.
Nothing.
OptionalnewMediaId: stringOptionaloptions: ReplaceMediaOptionsStaticdeserializeReconstructs a Lottie clip from serialized state.
Serialized Lottie clip payload.
Deserialized Lottie clip instance.
Clip implementation for Lottie animations rendered into a canvas-backed Pixi texture.
In addition to normal clip timing/styling, this class exposes a property editing surface for text, fills, gradients, and images defined inside the Lottie composition.