Skip to content

createNodeLink#transform

Summary

createNodeLink#transform places nodes and edges together. Use it to position or parent the graph while preserving node indices and local positions.

Syntax

readonly NodeLink.transform: Transform
graph.transform.setPosition(2, 0, 0);

Returns

Transform - The live local-to-world transform used by rendering and world bounds. The graph disposes it when destroyed.

Notes

Set graph.visible to false to hide the graph without removing it from the scene. Assign graph.name for scene lookup. Visibility defaults to true and the name defaults to null.

See Also