Weave.js

WeaveTextToolAction

Add text to the canvas

Overview

The WeaveTextToolAction class that allows users to insert text nodes onto the canvas by clicking. It provides a fast and intuitive way to add labels, notes, annotations, or any textual content within a collaborative visual environment.

Each interaction results in the creation of a WeaveTextNode, ready for direct editing and synchronized in real time with all connected users.

The class extends the WeaveAction class.

Name

This action name property value is textTool.

Import

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

Instantiation

new WeaveTextToolAction();