The Connector node is a complex node used to render a line between two elements anchors, if the elements move the line also does automatically.
Usage
Import the Node
Start by importing the node:
import { WeaveConnectorNode } from "@inditextech/weave-sdk";
Register the Node
Then register the node on the Weave class instance.
const instance = new Weave({
...
nodes: [
...,
new WeaveConnectorNode(), (1)
]
})
| 1 | Added in this step. |
Use the node
We provide an action named Connector Tool that allows users to add Connector nodes to the application in a simple and intuitive way.