The Ellipse node is a simple, versatile primitive shape used to render ellipse elements on the canvas. Built on top of Konva’s Ellipse, it supports customizable properties such as position, axis radius, fill color, stroke, radius (on both axis), and more.
They can also respond to interactions like dragging, resizing, or selection.
Usage
Import the Node
Start by importing the node:
import { WeaveEllipseNode } from "@inditextech/weave-sdk";
Register the Node
Then register the node on the Weave class instance.
const instance = new Weave({
...
nodes: [
...,
new WeaveEllipseNode(), (1)
]
})
| 1 | Added in this step. |
Use the node
We provide an action named Ellipse Tool that allows users to add Ellipse nodes to the application.