Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > getPan

Surface.getPan() method#

Gets the current [left,top] of the panned content.

Signature:

getPan(): PointXY;

Returns:

PointXY

Position, in pixels, of the panned content, where 0,0 is the origin of the viewport.