Named exports from ol/obj
This commit is contained in:
@@ -6,7 +6,7 @@ import {FALSE} from '../functions.js';
|
||||
import MapBrowserEventType from '../MapBrowserEventType.js';
|
||||
import MapBrowserPointerEvent from '../MapBrowserPointerEvent.js';
|
||||
import Interaction from '../interaction/Interaction.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import {getValues} from '../obj.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -133,7 +133,7 @@ PointerInteraction.prototype.updateTrackedPointers_ = function(mapBrowserEvent)
|
||||
// update only when there was a pointerdown event for this pointer
|
||||
this.trackedPointers_[id] = event;
|
||||
}
|
||||
this.targetPointers = _ol_obj_.getValues(this.trackedPointers_);
|
||||
this.targetPointers = getValues(this.trackedPointers_);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import {TRUE} from '../functions.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
import Interaction from '../interaction/Interaction.js';
|
||||
import VectorLayer from '../layer/Vector.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import {clear} from '../obj.js';
|
||||
import VectorSource from '../source/Vector.js';
|
||||
import Style from '../style/Style.js';
|
||||
|
||||
@@ -215,7 +215,7 @@ Select.handleEvent = function(mapBrowserEvent) {
|
||||
// Replace the currently selected feature(s) with the feature(s) at the
|
||||
// pixel, or clear the selected feature(s) if there is no feature at
|
||||
// the pixel.
|
||||
_ol_obj_.clear(this.featureLayerAssociation_);
|
||||
clear(this.featureLayerAssociation_);
|
||||
map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
|
||||
(
|
||||
/**
|
||||
|
||||
@@ -12,7 +12,7 @@ import {TRUE, FALSE} from '../functions.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
import {fromCircle} from '../geom/Polygon.js';
|
||||
import PointerInteraction from '../interaction/Pointer.js';
|
||||
import _ol_obj_ from '../obj.js';
|
||||
import {getValues} from '../obj.js';
|
||||
import VectorSource from '../source/Vector.js';
|
||||
import VectorEventType from '../source/VectorEventType.js';
|
||||
import RBush from '../structs/RBush.js';
|
||||
@@ -611,7 +611,7 @@ Snap.handleEvent_ = function(evt) {
|
||||
* @private
|
||||
*/
|
||||
Snap.handleUpEvent_ = function(evt) {
|
||||
const featuresToUpdate = _ol_obj_.getValues(this.pendingFeatures_);
|
||||
const featuresToUpdate = getValues(this.pendingFeatures_);
|
||||
if (featuresToUpdate.length) {
|
||||
featuresToUpdate.forEach(this.updateFeature_.bind(this));
|
||||
this.pendingFeatures_ = {};
|
||||
|
||||
Reference in New Issue
Block a user