Skip to main content

EdgeSnapOptions

Options for edge snap.

Properties​

enabled​

enabled: boolean

Whether or not snap is enabled. Required.


requireMagnets?​

optional requireMagnets: boolean

If true, snapping will only operate on elements in the DOM that have been marked as magnets via the ATTRIBUTE_VJS_MAGNET attribute. Otherwise snapping will operate on all targets.


sizeThreshold?​

optional sizeThreshold: number

Threshold in pixels for what determines a small vs a large target. See EdgeSnapType for discussion.


threshold?​

optional threshold: number

Threshold in pixels for snapping to targets.


type?​

optional type: EdgeSnapType

How to snap - see docs for EdgeSnapType