Gets the id of the pc-asset supplying the clip's track.
The asset id.
Sets the id of the pc-asset supplying the clip's track: a container, an animation
.glb, or an animclip JSON. When empty, the track comes from the container of the
<pc-model> enclosing the parent <pc-anim>.
The asset id.
The nearest ancestor <pc-app> element, or null if this element has no <pc-app>
ancestor. The search starts at the parent, so an element never resolves to itself.
The closest app element, or null.
The nearest ancestor element that fronts an entity — <pc-entity>, <pc-model> or
<pc-node> — or null if this element has no such ancestor. The search starts at the
parent, so an element never resolves to itself.
The closest entity-fronting element, or null.
Gets whether the clip loops.
Whether the clip loops.
Sets whether the clip loops. A non-looping clip holds its last pose when it ends — the
engine reports no completion. Defaults to true.
Whether the clip loops.
Gets the name of the clip.
The clip name.
Sets the name of the clip: the name it is played by, and the track looked up in the
clip's source. Names must be unique within a <pc-anim> and must not contain ..
The clip name.
Gets the playback speed of the clip.
The playback speed.
Sets the playback speed of the clip, where negative values play it backwards. Applies immediately, preserving the playhead. Defaults to 1.
The playback speed.
Protected_Called when the element is fully initialized and ready. Subclasses should call this when
they're ready. Resolves the ready promise and dispatches a bubbling, composed ready
event. Signals at most once per readiness cycle: a repeat call before _resetReady
has re-armed the promise does nothing.
Protected_Returns the ready promise to its pending state. Subclasses should call this when the
resource their readiness announced is torn down (typically from disconnectedCallback),
so that a later re-initialization can signal readiness again. Does nothing while the
promise is still pending — an in-flight waiter carries over to the next readiness cycle
rather than being stranded on a promise nothing will ever resolve.
Returns a promise that resolves with this element when it's ready. This is the low-level primitive underlying whenReady, which is the recommended way to wait for elements.
Readiness tracks the element's current lifecycle: once a ready element is torn down (for example by removing it from the document), this returns a fresh promise that resolves when the element is next ready. A promise obtained earlier stays resolved — call this again after re-inserting an element rather than reusing a promise from before its removal.
A promise that resolves with this element when it's ready.
The AnimClipElement interface provides properties and methods for manipulating
<pc-anim-clip>elements. The AnimClipElement interface also inherits the properties and methods of the HTMLElement interface.A clip declares one named animation on its parent
<pc-anim>.nameis both the clip's name and the track looked up in the clip's source: an explicitasset(acontainer, ananimation.glb, or ananimclipJSON), or, without one, the container of the<pc-model>enclosing the parent<pc-anim>. A source holding a single track supplies it whatever it is named; in a multi-track source the track namednameis chosen, falling back to the first with a warning. The element becomes ready once its resolved track is assigned.