ETS-backed scene graph for the design canvas.
Each scene is an ETS table containing Node structs keyed by their ID.
A special :root entry tracks the top-level node IDs.
Summary
Functions
Get all nodes as a flat list
Get all unique component names used in the scene
Count total nodes in the scene
Delete a node from the scene
Destroy the scene (delete ETS table)
Find nodes matching a predicate function
Get a node by ID
Get root-level children IDs
Get all JS hooks needed by components in the scene
Insert a node into the scene
Insert a PhiaUI component into the scene
Insert an HTML element into the scene
Move a node to a new parent at a given index
Create a new empty scene
Build the scene as a tree structure (nested maps)
Update a node's component attrs
Update a node's attributes
Types
@type scene_id() :: reference()
Functions
Get all nodes as a flat list
Get all unique component names used in the scene
Count total nodes in the scene
Delete a node from the scene
Destroy the scene (delete ETS table)
Find nodes matching a predicate function
Get a node by ID
Get root-level children IDs
Get all JS hooks needed by components in the scene
Insert a node into the scene
Insert a PhiaUI component into the scene
Insert an HTML element into the scene
Move a node to a new parent at a given index
Create a new empty scene
Build the scene as a tree structure (nested maps)
Update a node's component attrs
Update a node's attributes