Table of contents

Public interface

When moving or resizing shapes, the bounds of the shape can snap to key geometry on other nearby shapes. Customize how a shape snaps to others with ShapeUtil.getBoundsSnapGeometry.

Signature
interface BoundsSnapGeometry {}
Source

packages/editor/src/lib/editor/managers/SnapManager/BoundsSnaps.ts


Properties

points

Public propertysignature

Points that this shape will snap to. By default, this will be the corners and center of the shapes bounding box. To disable snapping to a specific point, use an empty array.

Signature
points?: VecModel[]
References

VecModel


BaseBoxShapeUtilBoundsSnapPoint