Weave.js

Ellipse

Draw an ellipse (or circle) on the canvas

Ellipse on Weave.js showcase

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

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 Ellipse Tool that allows users to add Ellipse nodes to the application.