EdgeSnapOptions
Options for edge snap.
Properties
enabled
enabled:
boolean
Whether or not snap is enabled. Required.
requireMagnets?
optionalrequireMagnets: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?
optionalsizeThreshold:number
Threshold in pixels for what determines a small vs a large target. See EdgeSnapType for discussion.
threshold?
optionalthreshold:number
Threshold in pixels for snapping to targets.
type?
optionaltype:EdgeSnapType
How to snap - see docs for EdgeSnapType