Home > @jsplumbtoolkit/browser-ui > Surface > pan
Surface.pan() method
Pans the canvas by a given amount in X and Y.
Signature:
pan(dx: number, dy: number, doNotAnimate?: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
dx | number | Amount to pan in X direction |
dy | number | Amount to pan in Y direction |
doNotAnimate | boolean | By default this operation uses animation. |
Returns:
void