UI Framework ReferenceICanvasDefinitionSetViewerSettings

Interface: ICanvasDefinitionSetViewerSettings

Provides properties to define the canvas zoom.

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





Optional after

after? : string | string[]

Inherited from ICanvasCommandDefinition.after

Defined in src/widgets/au-widget-canvas/IAuWidgetCanvas.ts:30

The next commands to be executed after this command completes.

Optional scrollPosition

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

Defined in src/widgets/au-widget-canvas/IAuWidgetCanvas.ts:139

X and Y coordinates of the visible area.

Optional zoom

zoom? : number

Defined in src/widgets/au-widget-canvas/IAuWidgetCanvas.ts:137

The zoom level (1 stands for 100%).

Optional zoomMode

zoomMode? : string

Defined in src/widgets/au-widget-canvas/IAuWidgetCanvas.ts:135

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