Classes
Type Definitions
-
Options{Object}
-
Properties:
Name Type Argument Default Description features
Collection<Feature> <optional>
Snap to these features. Either this option or source should be provided.
edge
boolean <optional>
true Snap to edges.
vertex
boolean <optional>
true Snap to vertices.
pixelTolerance
number <optional>
10 Pixel tolerance for considering the pointer close enough to a segment or vertex for snapping.
source
VectorSource <optional>
Snap to features from this source. Either this option or features should be provided
-
Result{Object}
-
Properties:
Name Type Description vertex
Coordinate | null Vertex.
vertexPixel
Pixel | null VertexPixel.
-
SegmentData{Object}
-
Properties:
Name Type Description feature
Feature Feature.
segment
Array<Coordinate> Segment.