Creates a new instance of VirtualSGNode
.
Internal ID used to identify nodes in debugger views. DO NOT USE THIS ID FOR ANYTHING ELSE.
Private
_Internal object ID (not used on some platforms).
The bound view associated with the node (if any).
Change handler for the node (not implemented).
The child nodes of this node.
The HTML div element associated with the node (if applicable).
Indicates whether the node is focusable.
The currently focused child node (if any).
A record of field observers, keyed by field names.
Gets the ID of the node.
Sets the ID of the node.
The new ID value.
Adds field to node
Adds multiple fields
Adds or replaces a field with the specified key and value.
The field key.
The field value.
Retrieves the bounding rectangle relative to an ancestor node.
The ancestor node.
The bounding rectangle.
Gets sub-item bounding rect relative to ancestor
Appends fields from another instance.
The instance containing fields to append.
Appends a child node to this node.
The child node to append.
true
if the child was appended successfully, otherwise false
.
Appends multiple child nodes
Gets bounding rect
Clears all fields from the node.
Clones node
Counts the number of fields in the node.
The number of fields.
Creates multiple child nodes
Deletes a field by its key.
The field key to delete.
true
if the field was deleted, otherwise false
.
Checks if a field exists by its key.
The field key to check.
true
if the field exists, otherwise false
.
Gets all child nodes
Gets all child node metadata
Retrieves the number of child nodes.
The number of child nodes.
Gets field value
Gets all fields
Gets field type
Gets all field types
Gets HTTP agent
Gets parent node
Private
getGets root nodes
Gets root node metadata
Gets scene node
Checks if field exists
Checks if node has focus
Inserts multiple child nodes at index
Checks if node is in focus chain
Checks if nodes are same
Checks if node is subtype
Retrieves all field entries as key-value pairs.
An array of key-value pairs.
Retrieves all field keys.
An array of field keys.
Gets local bounding rect
Looks up a field by its key.
The field key to look up.
The field value, or undefined
if the field does not exist.
Looks up a field by its key, ignoring case.
The field key to look up.
The field value, or undefined
if the field does not exist.
Mounts the renderable to the DOM or parent node.
Adds an observer to a specific field.
The name of the field to observe.
The message port or function to associate with the observer.
Optional
infoFields: string[]Optional fields to observe for additional information.
true
if the observer was added successfully, otherwise false
.
Observes field changes with scope
Optional
infoFields: string[]Gets parent subtype
Queues field updates
Removes child node at index
Removes multiple child nodes at index
Removes field
Removes multiple fields
Renders the current state of the renderable.
Replaces multiple child nodes at index
Gets scene bounding rect
Sets field value
Sets multiple field values
Sets node focus
Sets HTTP agent
Optional
index: numberShows or hides debug bounds for this renderable.
Whether to show debug bounds.
Signals beacon
Gets node subtype
Gets thread info
Unmounts the renderable from the DOM or parent node.
Stops observing field
Stops observing scoped field
Updates node fields
VirtualSGNode
is a web-based implementation of theISGNNode
interface. It provides functionality for managing fields, children, observers, and rendering logic for SG nodes.