Add pixelTolerance to olx.interaction.ExtentOptions

This commit is contained in:
marcosox
2017-10-16 15:46:12 +02:00
parent d40dd695cb
commit 850aaf96f2
2 changed files with 10 additions and 1 deletions

View File

@@ -3138,6 +3138,7 @@ olx.interaction.DrawOptions.prototype.wrapX;
/**
* @typedef {{extent: (ol.Extent|undefined),
* boxStyle: (ol.style.Style|Array.<ol.style.Style>|ol.StyleFunction|undefined),
* pixelTolerance: (number|undefined),
* pointerStyle: (ol.style.Style|Array.<ol.style.Style>|ol.StyleFunction|undefined),
* wrapX: (boolean|undefined)}}
* @api
@@ -3159,6 +3160,14 @@ olx.interaction.ExtentOptions.prototype.extent;
*/
olx.interaction.ExtentOptions.prototype.boxStyle;
/**
* Pixel tolerance for considering the pointer close enough to a segment or
* vertex for editing. Default is `10`.
* @type {number|undefined}
* @api
*/
olx.interaction.ExtentOptions.prototype.pixelTolerance;
/**
* Style for the cursor used to draw the extent.
* Defaults to ol.style.Style.createDefaultEditing()[ol.geom.GeometryType.POINT]