API reference
Design
addAudioTrackaddElementAtCursoraddElementAtPointaddNativeElementaddPagecreateRichtextRangeeditContentgetCurrentPageContextgetDefaultPageDimensionsgetDesignTokeninitAppElementoverlay.registerOnCanOpenrequestExportselection.registerOnChangesetCurrentPageBackgroundui.startDragToCursorui.startDragToPointui.startDrag
Platform
appProcessappProcess.broadcastMessageappProcess.currentappProcess.current.getInfoappProcess.current.requestCloseappProcess.current.setOnDisposeappProcess.requestCloseappProcess.registerOnMessageappProcess.registerOnStateChangefeatures.isSupportedfeatures.registerOnSupportChangegetPlatformInforequestOpenExternalUrl
Allows to get the context of currently selected page.
Returns
Page context of currently selected page. This is a Promise
that resolves with the following object:
dimensions
PageDimensions | undefined
The dimensions of the page, in pixels.
This may be undefined
because some types of pages don't have dimensions, such as whiteboards.
Properties of dimensions
width
number
The width of the page, in pixels.
height
number
The height of the page, in pixels.