Creates a new instance of VirtualSGNode.
Internal ID used to identify nodes in debugger views. DO NOT USE THIS ID FOR ANYTHING ELSE.
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
Functions
Returns true if a reference can be retrieved for the field.
Clears all fields from the node.
Clones node
Counts the number of fields in the node.
The number of fields.
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
Gets the referenced object for the field (no copy).
Gets 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
Gets local sub-item 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.
Moves (extracts) data from a field and clears the field.
Moves (transfers ownership of) data into a field; returns number of bytes moved (approximate for web).
Adds an observer to a specific field.
The name of the field to observe.
The message port or function to associate with the observer.
OptionalinfoFields: string[]Optional fields to observe for additional information.
true if the observer was added successfully, otherwise false.
Gets parent subtype
Queues field updates
Removes child node at index
Removes multiple child nodes at index
Removes field
Removes multiple fields
Replaces multiple child nodes at index
Gets scene bounding rect
Gets scene sub-item bounding rect
Sets field value
Sets multiple field values
Sets node focus
Sets HTTP agent
Optionalindex: numberStores a reference to an object in a field without copying.
Signals beacon
Gets sub-item bounding rect
Gets node subtype
Gets thread info
Stops observing field
Stops observing scoped field
Updates node fields
VirtualSGNodeis a web-based implementation of theISGNNodeinterface. It provides functionality for managing fields, children, observers, and rendering logic for SG nodes.