@express-document-sdk

Class: ExpressViewport

Represents the area of the canvas that is currently visible on-screen.

Extends

Constructors

Constructor

new ExpressViewport(): ExpressViewport;

Returns

ExpressViewport

Inherited from

ProxyLiveObject.constructor

Methods

bringIntoView()

bringIntoView(node): void;

Adjusts the viewport to make the node's bounds visible on-screen, assuming all bounds are within the artboard bounds. Makes the node's ArtboardNode or PageNode visible if they were not already visible (which may result in Context.selection being cleared). It is strongly recommended to further draw user's attention to the node, set it as the Context.selection following this call.

After this call, the value of Context.insertionParent will always be the node containing ArtboardNode.

Note that the node might still not appear visible if:

Parameters

Parameter
Type
node
VisualNode

Returns

void