Named exports from ol/obj
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @module ol/structs/PriorityQueue
|
||||
*/
|
||||
import {assert} from '../asserts.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import {clear} from '../obj.js';
|
||||
|
||||
/**
|
||||
* Priority queue.
|
||||
@@ -67,7 +67,7 @@ PriorityQueue.DROP = Infinity;
|
||||
PriorityQueue.prototype.clear = function() {
|
||||
this.elements_.length = 0;
|
||||
this.priorities_.length = 0;
|
||||
_ol_obj_.clear(this.queuedElements_);
|
||||
clear(this.queuedElements_);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import {getUid} from '../index.js';
|
||||
import rbush from 'rbush';
|
||||
import {createOrUpdate, equals} from '../extent.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import {isEmpty} from '../obj.js';
|
||||
|
||||
/**
|
||||
* Wrapper around the RBush by Vladimir Agafonkin.
|
||||
@@ -193,7 +193,7 @@ RBush.prototype.forEach_ = function(values, callback, opt_this) {
|
||||
* @return {boolean} Is empty.
|
||||
*/
|
||||
RBush.prototype.isEmpty = function() {
|
||||
return _ol_obj_.isEmpty(this.items_);
|
||||
return isEmpty(this.items_);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user