Way-Fi 1.6.0
Sets the margin to "snap" source and destination points to the nearest edge if they fall within a wall.
When a point falls inside a wall, it will be moved perpendicularly outside by this margin.
If Float.NaN is specified for a margin, snapping is disabled for that point type (source or destination). In this case, addSource and addDestination will fail if the point is inside a wall. Note that even with snapping enabled, these methods can still fail if the snapped point lands inside another wall.
Parameters
source
The margin distance for the source point.
destination
The margin distance for the destination point.