Skip to main content
EdgeSnapOptions
Options for edge snap.
NameTypeDescription
enabledbooleanWhether or not snap is enabled. Required.
requireMagnets?booleanIf 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?numberThreshold in pixels for what determines a small vs a large target. See EdgeSnapType for discussion.
threshold?numberThreshold in pixels for snapping to targets.
type?EdgeSnapTypeHow to snap - see docs for EdgeSnapType