Zoom command.
viewer.executeCommand(new ZoomCommand( { mode: 0, factor: 0.5 }, { mode: 0, factor: 1.0 } )); Copy
viewer.executeCommand(new ZoomCommand( { mode: 0, factor: 0.5 }, { mode: 0, factor: 1.0 } ));
Constructor
new zoom settings.
Optional
optional, previous zoom settings.
Action implementation.
Undo action implementation.
Optional. The unique name of the command. Used by the undo.skipCommands option setting.
Zoom command.
Example