Skip to main content

Home > @jsplumbtoolkit/browser-ui > SurfaceMagnetizeOptions > constrainToViewport

SurfaceMagnetizeOptions.constrainToViewport property

If true, vertices moved by the magnetizer will be constrained to move within the visible viewport, which is a function of the current zoom/pan of the surface. Otherwise, vertices will be able to be pushed out of the visible viewport.

Signature:

constrainToViewport?: boolean;