@fogrexon/glyph-arena-scene

Hierarchical scene graph nodes. See also package README.

Exports

Generated from the package's source when the docs are built — do not edit this table by hand.

NameKind
Foresttype
Nodetype
createForestfunction

createForest()

const forest = createForest();

const root = forest.create();
const child = forest.create();

forest.setParent(child, root);
forest.parent(child);
forest.children(root);
forest.destroy(child);
forest.dispose();

Methods

Node

Opaque node handle. Nodes from another forest are invalid in this forest.

Parenting

Invalid nodes

Missing nodes, nodes from another forest, destroyed nodes, and nodes after dispose are invalid:

After dispose, create() returns nodes that behave as missing.

ID reuse

Destroyed node ids may be reused by later create() calls.