Weave.js

WeaveZoomOutToolAction

Tool to export the stage as an image

Overview

The WeaveZoomOutToolAction class that allows users to incrementally zoom out from the canvas Stage. It enables users to widen their view, making it easier to see more of the canvas at once and navigate large collaborative spaces efficiently.

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 zoomOutTool.

Import

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

Instantiation

new WeaveZoomOutToolAction();

TypeScript types

type WeaveZoomOutToolActionParams = {
  previousAction: string;
};

Trigger function params

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

For WeaveZoomOutToolActionParams:

PropTypeDefault
previousAction
string
-