Build a snapping function with terra-draw's Snapping.toCustom shape backed
by the SDK snapping engine (REQ-004).
terra-draw exposes per-mode snapping on its linestring, polygon, and
polyline modes; pass the result as snapping.toCustom when constructing
those modes and every drawn vertex snaps against the SnapIndex
with the SDK's deterministic candidate ordering. Point, rectangle, circle,
and freehand modes do not accept a snapping option in terra-draw — for
those, terra-draw's pointer pipeline has no custom-snapping seam, so only
terra-draw-native behavior applies.
Build a snapping function with terra-draw's
Snapping.toCustomshape backed by the SDK snapping engine (REQ-004).terra-draw exposes per-mode snapping on its linestring, polygon, and polyline modes; pass the result as
snapping.toCustomwhen constructing those modes and every drawn vertex snaps against the SnapIndex with the SDK's deterministic candidate ordering. Point, rectangle, circle, and freehand modes do not accept asnappingoption in terra-draw — for those, terra-draw's pointer pipeline has no custom-snapping seam, so only terra-draw-native behavior applies.