This method gets the scale factor of the canvas
scale factor in percents
This method sets a new view mode
view mode of the editor
This method sets the scale factor to the canvas and re-centers the page
scale factor in percents
This method fits the page to the given rectangle or the viewport available
Optional parameters left
, top
, width
and height
are needed to define the rectangle to fit the page to
If any or all of them aren't provided the page will fit the whole viewport available
Optional
id: null | stringthe id of a specific page
Optional
left: null | numberOptional
top: null | numberOptional
width: null | numberOptional
height: null | numberGenerated using TypeDoc
The CanvasController is responsible for all Canvas-related functionality. Methods inside this controller can be called by
window.SDK.canvas.{method-name}