This module is part of the TSL core and usually not used in app level code.
SplitNode represents a property access operation which means it is
used to implement any .xyzw, .rgba and stpq usage on node objects.
For example:
const redValue = color.r;
export {}Constructor
new SplitNode(node, components?)| Parameter | Type | Default Value |
|---|---|---|
| node | Node | — |
| components? | string | x |
Constructs a new split node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| node | Node | — | |
| components | string | — | |
| isSplitNode | boolean | — | |
| Method | Type | |
|---|---|---|
| getVectorLength | () => number | |
| getComponentType | (builder: NodeBuilder) => string | |
| generateNodeType | (builder: NodeBuilder) => string | |
| getScope | () => Node | |
| generate | (builder: any, output: any) => any | |
| serialize | (data: any) => void | |
| deserialize | (data: any) => void | |
Extends
Node