Back to Website
Show / Hide Table of Contents

Class SetViewerSettings

A command that defines the canvas zoom. A command that defines the canvas zoom. For details, you can refer to ICanvasDefinitionSetViewerSettings.

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

For details, you can refer to IDesignEditorDefinitionSetViewerSettings.

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

Properties

Name

Declaration
static Name: "setViewerSettings" = "setViewerSettings"
Property Value
Type Description
"setViewerSettings"

name

Declaration
string name
Property Value
Type Description
string

Methods

execute(ICanvasDefinitionSetViewerSettings)

Executes this command.

Declaration
function execute(params: ICanvasDefinitionSetViewerSettings)
Parameters
Type Name Description
ICanvasDefinitionSetViewerSettings params

Parameters for the command.

Returns
Type Description
Promise<any>
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback