File: ContextNode.md | Updated: 11/15/2025
This node can be used as a context management component for another node. NodeBuilder performs its node building process in a specific context and this node allows the modify the context. A typical use case is to overwrite getUV() e.g.:
node.context( { getUV: () => customCoord } );
Constructs a new context node.
node | The node whose context should be modified.
---|---
value | The modified context data. Default is {}.
This flag can be used for type testing.
Default is true.
The node whose context should be modified.
The modified context data.
Default is {}.
This method is overwritten to ensure it returns the member type of ContextNode#node.
builder | The current node builder.
---|---
name | The member name.
Overrides: Node#getMemberType
Returns: The member type.
This method is overwritten to ensure it returns the type of ContextNode#node.
builder | The current node builder.
---|---
Overrides: Node#getNodeType
Returns: The node type.
This method is overwritten to ensure it returns the reference to ContextNode#node.
Overrides: Node#getScope
Returns: A reference to ContextNode#node.