Weave.js

WeaveStarToolAction

Add a star to the canvas

Overview

The WeaveStarToolAction class that allows users to create star shapes on the canvas by clicking and dragging. It provides a smooth, intuitive way to add structured, resizable star elements .

Each interaction results in the creation of a WeaveStarNode, added to the shared state and synchronized across all users.

The class extends the WeaveAction class.

Name

This action name property value is starTool.

Import

import { WeaveStarToolAction } from "@inditextech/weave-sdk";

Instantiation

new WeaveStarToolAction();