The keys of the template are used to find nodes in the scene so they require to be unique. The values of each key can be either INodeWritableProps or ITextNodeWritableProps and is used to manipulate the coordinates of the parent node when nesting.
Remark
Nesting has 1 special case, when nesting a node you need to wrap the props in a props object. For example:
This will create a new node with the key row and the props { x: 60, y: 200 }. The props are used to manipulate the coordinates of the parent node.
Without the props object the nested node will not be created or rendered.
Template is the type of the scene template.
Remark
The template is a JSON object that represents the scene. For example:
The keys of the template are used to find nodes in the scene so they require to be unique. The values of each key can be either
INodeWritablePropsorITextNodeWritablePropsand is used to manipulate the coordinates of the parent node when nesting.Remark
Nesting has 1 special case, when nesting a node you need to wrap the props in a
propsobject. For example:This will create a new node with the key
rowand the props{ x: 60, y: 200 }. The props are used to manipulate the coordinates of the parent node. Without the props object the nested node will not be created or rendered.