Element
The Element interface represents a game element with additional functionality beyond basic nodes. Elements can have facets, class lists, and other game-specific features.
Properties
classList | ||
| An array of CSS class names applied to this element. | ||
Methods
getFacet(name: string )
Retrieves a facet with the specified name (matched against
the child's tag) from this element. Only meaningful when
this.isFaceted === true (declared at construction time).
| Name | Type | Description |
|---|---|---|
| name | The facet's tag name (e.g. 'front', 'back', 'hand'). |

