Fix enum types

This commit is contained in:
ahocevar
2018-04-21 10:48:38 +02:00
parent 417dd85f83
commit c23a5086ae
20 changed files with 87 additions and 50 deletions
+4 -4
View File
@@ -31,7 +31,7 @@ import {createEditingStyle} from '../style/Style.js';
/**
* @typedef {Object} Options
* @property {module:ol/geom/GeometryType~GeometryType} type Geometry type of
* @property {module:ol/geom/GeometryType} type Geometry type of
* the geometries being drawn with this instance.
* @property {number} [clickTolerance=6] The maximum distance in pixels between
* "down" and "up" for a "up" event to be considered a "click" event and
@@ -222,10 +222,10 @@ const Draw = function(options) {
/**
* Geometry type.
* @type {module:ol/geom/GeometryType~GeometryType}
* @type {module:ol/geom/GeometryType}
* @private
*/
this.type_ = /** @type {module:ol/geom/GeometryType~GeometryType} */ (options.type);
this.type_ = /** @type {module:ol/geom/GeometryType} */ (options.type);
/**
* Drawing mode (derived from geometry type.
@@ -1008,7 +1008,7 @@ export function createBox() {
/**
* Get the drawing mode. The mode for mult-part geometries is the same as for
* their single-part cousins.
* @param {module:ol/geom/GeometryType~GeometryType} type Geometry type.
* @param {module:ol/geom/GeometryType} type Geometry type.
* @return {module:ol/interaction/Draw~Mode} Drawing mode.
*/
function getMode(type) {
+2 -2
View File
@@ -23,12 +23,12 @@ import {createEditingStyle} from '../style/Style.js';
* initial extent.
* @property {module:ol/style/Style~Style|Array.<module:ol/style/Style~Style>|module:ol/style~StyleFunction} [boxStyle]
* Style for the drawn extent box. Defaults to
* {@link module:ol/style/Style~createEditing()[module:ol/geom/GeometryType~GeometryType.POLYGON]}
* {@link module:ol/style/Style~createEditing()[module:ol/geom/GeometryType.POLYGON]}
* @property {number} [pixelTolerance=10] Pixel tolerance for considering the
* pointer close enough to a segment or vertex for editing.
* @property {module:ol/style/Style~Style|Array.<module:ol/style/Style~Style>|module:ol/style~StyleFunction} [pointerStyle]
* Style for the cursor used to draw the extent. Defaults to
* {@link module:ol/style/Style~createEditing()[module:ol/geom/GeometryType~GeometryType.POINT]}
* {@link module:ol/style/Style~createEditing()[module:ol/geom/GeometryType.POINT]}
* @property {boolean} [wrapX=false] Wrap the drawn extent across multiple maps
* in the X direction? Only affects visuals, not functionality.
*/