Skip to main content

au-widget-design-editor/Commands/set-viewer-settings

Classes

SetViewerSettings

A command that defines the canvas zoom.

For details, you can refer to the IDesignEditorDefinitionSetViewerSettings.

{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"setViewerSettings": {
"zoom": 0.1,
"zoomMode": 'bestFit',
"scrollPosition": {x: 0, y: 0}
}
}
}

Extends

Methods

execute()
execute(params): Promise<void>;

Executes this command.

Parameters
ParameterTypeDescription
paramsIDesignEditorDefinitionSetViewerSettingsParameters for the command.
Returns

Promise<void>

Overrides

DesignEditorWidgetCommand.execute

Was this page helpful?