Move ol.LinkedListItem to ol/structs/LinkedList
This commit is contained in:
@@ -2,6 +2,15 @@
|
|||||||
* @module ol/structs/LinkedList
|
* @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.
|
* Creates an empty linked list structure.
|
||||||
*
|
*
|
||||||
@@ -14,19 +23,19 @@ const LinkedList = function(opt_circular) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.LinkedListItem|undefined}
|
* @type {module:ol/structs/LinkedList~Item}|undefined}
|
||||||
*/
|
*/
|
||||||
this.first_ = undefined;
|
this.first_ = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.LinkedListItem|undefined}
|
* @type {module:ol/structs/LinkedList~Item}|undefined}
|
||||||
*/
|
*/
|
||||||
this.last_ = undefined;
|
this.last_ = undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {ol.LinkedListItem|undefined}
|
* @type {module:ol/structs/LinkedList~Item}|undefined}
|
||||||
*/
|
*/
|
||||||
this.head_ = undefined;
|
this.head_ = undefined;
|
||||||
|
|
||||||
@@ -50,7 +59,7 @@ const LinkedList = function(opt_circular) {
|
|||||||
*/
|
*/
|
||||||
LinkedList.prototype.insertItem = function(data) {
|
LinkedList.prototype.insertItem = function(data) {
|
||||||
|
|
||||||
/** @type {ol.LinkedListItem} */
|
/** @type {module:ol/structs/LinkedList~Item}} */
|
||||||
const item = {
|
const item = {
|
||||||
prev: undefined,
|
prev: undefined,
|
||||||
next: undefined,
|
next: undefined,
|
||||||
|
|||||||
@@ -120,14 +120,6 @@ ol.CanvasTextState;
|
|||||||
ol.DeclutterGroup;
|
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
|
* 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
|
* returns an array of {@link module:ol/extent~Extent} with the extents to load. Usually this
|
||||||
|
|||||||
Reference in New Issue
Block a user