prerelease Prerelease 5.2.2 Latest 5.2.1
Weave.js
prerelease Prerelease 5.2.2 Latest 5.2.1

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:

Property Type Required Description

previousAction

string

Required

The action to trigger after the zoom-in action is completed.