Skip to main content

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

Surface.pan() method#

Pans the content by dx and dy.

Signature:

pan(dx: number, dy: number, animate?: boolean): void;

Parameters#

ParameterTypeDescription
dxnumberAmount to pan in X direction
dynumberAmount to pan in Y direction
animatebooleanWhether or not to animate the pan. Defaults to false.

Returns:

void