setViewerSettings
This command defines the canvas zoom and the scroll position of the visible area.
Params
zoom: the zoom level, where1stands for 100%.zoomMode: defines how the product fits the canvas:"none","bestFit","bestFitShrinkOnly","fitToWidth","fitToHeight","zoomControl","fitToWidthShrinkOnly", or"fitToHeightShrinkOnly".scrollPosition: the X and Y coordinates of the visible area.
For the complete list of parameters, you can refer to IDesignEditorDefinitionSetViewerSettings.
Example
{
"type": "design-editor",
"name": "editor",
"params": {
"initial": { ... },
"setViewerSettings": {
"zoom": 0.1,
"zoomMode": "bestFit",
"scrollPosition": { "x": 0, "y": 0 }
}
}
}