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, doNotAnimate?: boolean): void;

Parameters#

ParameterTypeDescription
dxnumberAmount to pan in X direction
dynumberAmount to pan in Y direction
doNotAnimatebooleanBy default this operation uses animation.

Returns:

void