Rename _ol_interaction_Pointer_ to PointerInteraction

This commit is contained in:
Tim Schaub
2018-01-11 10:39:54 -07:00
parent 8a74d6b8db
commit dce1790886
13 changed files with 66 additions and 66 deletions

View File

@@ -11,7 +11,7 @@ import {boundingExtent, createEmpty} from '../extent.js';
import {TRUE, FALSE} from '../functions.js';
import GeometryType from '../geom/GeometryType.js';
import {fromCircle} from '../geom/Polygon.js';
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
import PointerInteraction from '../interaction/Pointer.js';
import _ol_obj_ from '../obj.js';
import VectorSource from '../source/Vector.js';
import VectorEventType from '../source/VectorEventType.js';
@@ -41,7 +41,7 @@ import RBush from '../structs/RBush.js';
*/
var _ol_interaction_Snap_ = function(opt_options) {
_ol_interaction_Pointer_.call(this, {
PointerInteraction.call(this, {
handleEvent: _ol_interaction_Snap_.handleEvent_,
handleDownEvent: TRUE,
handleUpEvent: _ol_interaction_Snap_.handleUpEvent_
@@ -149,7 +149,7 @@ var _ol_interaction_Snap_ = function(opt_options) {
};
};
inherits(_ol_interaction_Snap_, _ol_interaction_Pointer_);
inherits(_ol_interaction_Snap_, PointerInteraction);
/**
@@ -304,7 +304,7 @@ _ol_interaction_Snap_.prototype.setMap = function(map) {
keys.length = 0;
features.forEach(this.forEachFeatureRemove_.bind(this));
}
_ol_interaction_Pointer_.prototype.setMap.call(this, map);
PointerInteraction.prototype.setMap.call(this, map);
if (map) {
if (this.features_) {
@@ -600,7 +600,7 @@ _ol_interaction_Snap_.handleEvent_ = function(evt) {
evt.coordinate = result.vertex.slice(0, 2);
evt.pixel = result.vertexPixel;
}
return _ol_interaction_Pointer_.handleEvent.call(this, evt);
return PointerInteraction.handleEvent.call(this, evt);
};