[]
        
(Showing Draft Content)

ZoomCommand

Class: ZoomCommand

Zoom command.

Example

viewer.executeCommand(new ZoomCommand( { mode: 0, factor: 0.5 }, { mode: 0, factor: 1.0 } ));

Implements

Constructors

Constructor

new ZoomCommand(settings, prevSettings?): ZoomCommand;

Constructor

Parameters

settings

ZoomSettings

new zoom settings.

prevSettings?

ZoomSettings

optional, previous zoom settings.

Returns

ZoomCommand

Properties

name

name: "Zoom";

Optional. The unique name of the command. Used by the undo.skipCommands option setting.

Implementation of

UndoCommandSupport.name

Methods

execute()

execute(viewer): Promise<void>;

Action implementation.

Parameters

viewer

ImageViewerAPI

Returns

Promise<void>

Implementation of

UndoCommandSupport.execute


undo()

undo(viewer): Promise<void>;

Undo action implementation.

Parameters

viewer

ImageViewerAPI

Returns

Promise<void>

Implementation of

UndoCommandSupport.undo