The CanvasController is responsible for all Canvas-related functionality. Methods inside this controller can be called by window.SDK.canvas.{method-name}

Hierarchy

  • CanvasController

Methods

  • 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

    Returns

    Parameters

    • Optional id: null | string

      the id of a specific page

    • Optional left: null | number
    • Optional top: null | number
    • Optional width: null | number
    • Optional height: null | number

    Returns Promise<EditorResponse<null>>

Generated using TypeDoc