TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Interface: IDesignEditorDefinitionSetViewerSettings

Provides properties to define the canvas zoom.

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

Hierarchy

Index

Properties

Properties

Optional after

after? : string | string[]

Inherited from IDesignEditorCommandDefinition.after

The next commands to be executed after this command completes.


Optional scrollPosition

scrollPosition? : Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF

X and Y coordinates of the visible area.


Optional showPreloader

showPreloader? : boolean

Inherited from IDesignEditorCommandDefinition.showPreloader

If true, displays the preloader while executing this command.


Optional zoom

zoom? : number

The zoom level (1 stands for 100%).


Optional zoomMode

zoomMode? : string

none, bestFit, bestFitShrinkOnly, fitToWidth, fitToHeight, zoomControl, fitToWidthShrinkOnly, fitToHeightShrinkOnly