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(clamping: boolean): void;

Parameters

ParameterTypeDescription
clampingboolean

Returns:

void