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 <pc-entity> element, or null if this element has no <pc-entity>
ancestor. The search starts at the parent, so an element never resolves to itself.
The closest entity element, or null.
Gets the enabled state of the entity.
Whether the entity is enabled.
Sets the enabled state of the entity.
Whether the entity is enabled.
Gets the name of the entity.
The name of the entity.
Sets the name of the entity.
The name of the entity.
Gets the tags of the entity.
The tags of the entity.
Sets the tags of the entity.
The tags of the entity.
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.
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.
A promise that resolves with this element when it's ready.
The EntityElement interface provides properties and methods for manipulating
<pc-entity>elements. The EntityElement interface also inherits the properties and methods of the HTMLElement interface.The pointer events below are dispatched by the containing
<pc-app>element when the pointer intersects this entity's geometry. They are only generated while the entity has a listener for them, registered either with addEventListener or with the matching inlineonpointer*attribute.Attribute
onpointerenter - Script to run when the pointer moves onto the entity.
Attribute
onpointerleave - Script to run when the pointer moves off the entity.
Attribute
onpointermove - Script to run when the pointer moves over the entity.
Attribute
onpointerdown - Script to run when a pointer button is pressed over the entity.
Attribute
onpointerup - Script to run when a pointer button is released over the entity.
Fires
pointerenter - Fired when the pointer moves onto the entity.
Fires
pointerleave - Fired when the pointer moves off the entity.
Fires
pointermove - Fired when the pointer moves over the entity.
Fires
pointerdown - Fired when a pointer button is pressed over the entity.
Fires
pointerup - Fired when a pointer button is released over the entity.