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
Parameter | Type | Description |
---|---|---|
clamping | boolean |
Returns:
void