No olx and ol types for ol/interaction/Snap

This commit is contained in:
ahocevar
2018-03-16 17:12:14 +01:00
parent 9754334570
commit bc33d871e1
4 changed files with 58 additions and 112 deletions

View File

@@ -46,59 +46,6 @@ olx.interaction.TranslateOptions.prototype.layers;
olx.interaction.TranslateOptions.prototype.hitTolerance;
/**
* Options for snap
* @typedef {{
* features: (ol.Collection.<module:ol/Feature~Feature>|undefined),
* pixelTolerance: (number|undefined),
* source: (ol.source.Vector|undefined),
* edge: (boolean|undefined),
* vertex: (boolean|undefined)
* }}
*/
olx.interaction.SnapOptions;
/**
* Snap to these features. Either this option or source should be provided.
* @type {ol.Collection.<module:ol/Feature~Feature>|undefined}
* @api
*/
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
* vertex for snapping. Default is `10` pixels.
* @type {number|undefined}
* @api
*/
olx.interaction.SnapOptions.prototype.pixelTolerance;
/**
* Snap to features from this source. Either this option or features should be provided
* @type {ol.source.Vector|undefined}
* @api
*/
olx.interaction.SnapOptions.prototype.source;
/**
* @typedef {{opacity: (number|undefined),
* visible: (boolean|undefined),

View File

@@ -14,17 +14,6 @@
*/
/**
* @typedef {Object} interaction_SnapOptions
* @property {ol.Collection.<module:ol/Feature~Feature>|undefined} features Snap to these features. Either this option or source should be provided.
* @property {boolean|undefined} edge Snap to edges. Default is `true`.
* @property {boolean|undefined} vertex Snap to vertices. Default is `true`.
* @property {number|undefined} pixelTolerance Pixel tolerance for considering the pointer close enough to a segment or
* vertex for snapping. Default is `10` pixels.
* @property {ol.source.Vector|undefined} source Snap to features from this source. Either this option or features should be provided
*/
/**
* @typedef {Object} layer_BaseOptions
* @property {number|undefined} opacity Opacity (0, 1). Default is `1`.