Skip to main content

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

Surface.setClamping() method#

Sets whether or not the widget clamps the movement of the canvas during pan/zoom to ensure that the managed content never disappears from view.

Signature:

setClamping(c: boolean): void;

Parameters#

ParameterTypeDescription
cbooleanWhether or not to clamp movement.

Returns:

void