The Stroke node represents a customizable free-line on the canvas. It supports features like stroke color, width, dash patterns.
Usage
Import the Node
Start by importing the node:
import { WeaveStrokeNode } from "@inditextech/weave-sdk";
Register the Node
Then register the node on the Weave class instance.
const instance = new Weave({
...
nodes: [
...,
new WeaveStrokeNode(), (1)
]
})
| 1 | Added in this step. |