Weave.js

Connector

Draw a connected line between nodes

Connector on the Weave.js showcase

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(), 
  ]
})

Use the node

Once the node is registered you can use it on Actions or Plugins or even other Nodes.

We provide an action named Connector Tool that allows users to add Connector nodes to the application in a simple and intuitive way.