[]
        
(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(zoom, prevZoom): ZoomCommand;

Parameters

zoom

ZoomSettings

new zoom settings.

prevZoom

ZoomSettings

Returns

ZoomCommand

Properties

name

name: string;

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

GcImageViewer

Returns

Promise<void>

Implementation of

UndoCommandSupport.execute


undo()

undo(viewer): Promise<void>;

Undo action implementation.

Parameters

viewer

GcImageViewer

Returns

Promise<void>

Implementation of

UndoCommandSupport.undo