Move ol.LinkedListItem to ol/structs/LinkedList

This commit is contained in:
Michael Kuenzli
2018-04-18 16:09:17 +02:00
parent 9aa3cd612f
commit 11da20e744
2 changed files with 13 additions and 12 deletions

View File

@@ -2,6 +2,15 @@
* @module ol/structs/LinkedList
*/
/**
* @typedef {Object} Item
* @property {module:ol/structs/LinkedList~Item} [prev]
* @property {module:ol/structs/LinkedList~Item} [next]
* @property {?} data
*/
/**
* Creates an empty linked list structure.
*
@@ -14,19 +23,19 @@ const LinkedList = function(opt_circular) {
/**
* @private
* @type {ol.LinkedListItem|undefined}
* @type {module:ol/structs/LinkedList~Item}|undefined}
*/
this.first_ = undefined;
/**
* @private
* @type {ol.LinkedListItem|undefined}
* @type {module:ol/structs/LinkedList~Item}|undefined}
*/
this.last_ = undefined;
/**
* @private
* @type {ol.LinkedListItem|undefined}
* @type {module:ol/structs/LinkedList~Item}|undefined}
*/
this.head_ = undefined;
@@ -50,7 +59,7 @@ const LinkedList = function(opt_circular) {
*/
LinkedList.prototype.insertItem = function(data) {
/** @type {ol.LinkedListItem} */
/** @type {module:ol/structs/LinkedList~Item}} */
const item = {
prev: undefined,
next: undefined,

View File

@@ -120,14 +120,6 @@ ol.CanvasTextState;
ol.DeclutterGroup;
/**
* @typedef {{prev: (ol.LinkedListItem|undefined),
* next: (ol.LinkedListItem|undefined),
* data: ?}}
*/
ol.LinkedListItem;
/**
* A function that takes an {@link module:ol/extent~Extent} and a resolution as arguments, and
* returns an array of {@link module:ol/extent~Extent} with the extents to load. Usually this