snap to vertices or edges

This commit is contained in:
drnextgis
2016-03-20 03:04:58 +06:00
parent 7990bb3bf6
commit d41bfde25d
3 changed files with 99 additions and 13 deletions

View File

@@ -3098,7 +3098,9 @@ olx.interaction.SelectOptions.prototype.wrapX;
* @typedef {{
* features: (ol.Collection.<ol.Feature>|undefined),
* pixelTolerance: (number|undefined),
* source: (ol.source.Vector|undefined)
* source: (ol.source.Vector|undefined),
* edge: (boolean|undefined),
* vertex: (boolean|undefined)
* }}
* @api
*/
@@ -3112,6 +3114,21 @@ olx.interaction.SnapOptions;
*/
olx.interaction.SnapOptions.prototype.features;
/**
* Snap to edges. Default is `true`.
* @type {boolean|undefined}
* @api
*/
olx.interaction.SnapOptions.prototype.edge;
/**
* Snap to vertices. Default is `true`.
* @type {boolean|undefined}
* @api
*/
olx.interaction.SnapOptions.prototype.vertex;
/**
* Pixel tolerance for considering the pointer close enough to a segment or