Back to Website
Show / Hide Table of Contents

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}
    }
  }
}
Package: ui-framework

Properties

after

The next commands to be executed after this command completes.

Declaration
after?: string | string[]
Property Value
Type Description
string | string[]

The next commands to be executed after this command completes.

scrollPosition

X and Y coordinates of the visible area.

Declaration
scrollPosition?: Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF
Property Value
Type Description
Aurigma.GraphicsMill.AjaxControls.VectorObjects.Math.PointF

X and Y coordinates of the visible area.

zoom

The zoom level (1 stands for 100%).

Declaration
zoom?: number
Property Value
Type Description
number

The zoom level (1 stands for 100%).

zoomMode

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

Declaration
zoomMode?: string
Property Value
Type Description
string

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

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