Weave.js

WeaveZoomInToolAction

Increases one step the stage zoom level

Overview

The WeaveZoomInToolAction class that allows users to incrementally zoom in on the canvas Stage. It provides a simple, user-friendly way to enlarge the view, helping users focus on fine details within a complex visual environment.

This action works in coordination with the WeaveStageZoomPlugin plugin and ensures a smooth zooming experience without disrupting the layout or collaboration session.

The class extends the WeaveAction class.

Name

This action name property value is zoomInTool.

Import

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

Instantiation

new WeaveZoomInToolAction();

TypeScript types

type WeaveZoomInToolActionParams = {
  previousAction: string;
};

Trigger function params

trigger(cancelAction: () => void, params?: WeaveZoomInToolActionParams): void;

For WeaveZoomInToolActionParams:

PropTypeDefault
previousAction
string
-