Move WKT typedefs out of src/ol/typedefs.js
This commit is contained in:
@@ -23,6 +23,12 @@ import SimpleGeometry from '../geom/SimpleGeometry.js';
|
|||||||
* multiple features on reading.
|
* multiple features on reading.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} Token
|
||||||
|
* @property {number} type
|
||||||
|
* @property {number|string} [value]
|
||||||
|
* @property {number} position
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
@@ -130,7 +136,7 @@ Lexer.prototype.nextChar_ = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch and return the next token.
|
* Fetch and return the next token.
|
||||||
* @return {!ol.WKTToken} Next string token.
|
* @return {!module:ol/format/WKT~Token} Next string token.
|
||||||
*/
|
*/
|
||||||
Lexer.prototype.nextToken = function() {
|
Lexer.prototype.nextToken = function() {
|
||||||
const c = this.nextChar_();
|
const c = this.nextChar_();
|
||||||
@@ -217,7 +223,7 @@ const Parser = function(lexer) {
|
|||||||
this.lexer_ = lexer;
|
this.lexer_ = lexer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.WKTToken}
|
* @type {module:ol/format/WKT~Token}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.token_;
|
this.token_;
|
||||||
|
|||||||
@@ -361,12 +361,6 @@ ol.WFSFeatureCollectionMetadata;
|
|||||||
ol.WFSTransactionResponse;
|
ol.WFSTransactionResponse;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @typedef {{type: number, value: (number|string|undefined), position: number}}
|
|
||||||
*/
|
|
||||||
ol.WKTToken;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {{minX: number, minY: number, maxX: number, maxY: number,
|
* @typedef {{minX: number, minY: number, maxX: number, maxY: number,
|
||||||
* value: (Object|undefined)}}
|
* value: (Object|undefined)}}
|
||||||
|
|||||||
Reference in New Issue
Block a user