Autosize properties
Readonlychildrenonly used when rtt = true
OptionalglobalReadonlyisOptionallocalOptionalpreloadReadonlypropsOptionalrenderOptionalrenderOptionalsceneOptionalsceneReadonlystageOptionalstrictOptionaltextureAdd a texture to the current RenderOp.
Assigned Texture Index of the texture in the render op
This function calculates the clipping rectangle for a node.
The function then checks if the node is rotated. If the node requires clipping and is not rotated, a new clipping rectangle is created based on the node's global transform and dimensions. If a parent clipping rectangle exists, it is intersected with the node's clipping rectangle (if it exists), or replaces the node's clipping rectangle.
Finally, the node's parentClippingRect and clippingRect properties are updated.
Checks if the node is renderable based on world alpha, dimensions and out of bounds status.
Destroy the node and cleanup all resources
Optionaldata: anyChecks if the node has dimensions (width/height)
Checks if the node is out of the viewport bounds.
Optionallistener: (target: any, data: any) => voidOverride renderQuads to handle SDF vs Canvas rendering
Sets the renderable state and triggers changes if necessary.
The new renderable state
Override CoreNode's update method to handle text-specific updates
Override is renderable check for SDF text nodes
Changes the renderable state of the node.
A visual Node in the Renderer scene graph that renders text.
Remarks
A Text Node is a special type of Node that renders text using a specific text renderer, such as Web/Canvas or Signed Distance Field (SDF) text.
For non-text rendering, see INode.
Users of the Renderer API, should generally interact with ITextNode objects instead of CoreTextNode objects.