Rename _ol_events_Event_ to Event

This commit is contained in:
Marc Jansen
2017-12-15 09:37:05 +01:00
committed by Frederic Junod
parent 9622c64bc6
commit 1cc682e488
27 changed files with 85 additions and 85 deletions

View File

@@ -6,7 +6,7 @@
import {inherits} from '../index.js';
import {TRUE} from '../functions.js';
import _ol_events_ from '../events.js';
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import _ol_events_EventType_ from '../events/EventType.js';
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
import {get as getProjection} from '../proj.js';
@@ -253,7 +253,7 @@ _ol_interaction_DragAndDrop_.EventType_ = {
*/
_ol_interaction_DragAndDrop_.Event = function(type, file, opt_features, opt_projection) {
_ol_events_Event_.call(this, type);
Event.call(this, type);
/**
* The features parsed from dropped data.
@@ -277,5 +277,5 @@ _ol_interaction_DragAndDrop_.Event = function(type, file, opt_features, opt_proj
this.projection = opt_projection;
};
inherits(_ol_interaction_DragAndDrop_.Event, _ol_events_Event_);
inherits(_ol_interaction_DragAndDrop_.Event, Event);
export default _ol_interaction_DragAndDrop_;

View File

@@ -2,7 +2,7 @@
* @module ol/interaction/DragBox
*/
// FIXME draw drag box
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import {inherits, nullFunction} from '../index.js';
import _ol_events_condition_ from '../events/condition.js';
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
@@ -213,7 +213,7 @@ _ol_interaction_DragBox_.EventType_ = {
* @implements {oli.DragBoxEvent}
*/
_ol_interaction_DragBox_.Event = function(type, coordinate, mapBrowserEvent) {
_ol_events_Event_.call(this, type);
Event.call(this, type);
/**
* The coordinate of the drag event.
@@ -231,5 +231,5 @@ _ol_interaction_DragBox_.Event = function(type, coordinate, mapBrowserEvent) {
this.mapBrowserEvent = mapBrowserEvent;
};
inherits(_ol_interaction_DragBox_.Event, _ol_events_Event_);
inherits(_ol_interaction_DragBox_.Event, Event);
export default _ol_interaction_DragBox_;

View File

@@ -7,7 +7,7 @@ import _ol_MapBrowserEventType_ from '../MapBrowserEventType.js';
import _ol_Object_ from '../Object.js';
import _ol_coordinate_ from '../coordinate.js';
import _ol_events_ from '../events.js';
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import _ol_events_condition_ from '../events/condition.js';
import {boundingExtent, getBottomLeft, getBottomRight, getTopLeft, getTopRight} from '../extent.js';
import {TRUE, FALSE} from '../functions.js';
@@ -889,7 +889,7 @@ _ol_interaction_Draw_.Mode_ = {
*/
_ol_interaction_Draw_.Event = function(type, feature) {
_ol_events_Event_.call(this, type);
Event.call(this, type);
/**
* The feature being drawn.
@@ -899,5 +899,5 @@ _ol_interaction_Draw_.Event = function(type, feature) {
this.feature = feature;
};
inherits(_ol_interaction_Draw_.Event, _ol_events_Event_);
inherits(_ol_interaction_Draw_.Event, Event);
export default _ol_interaction_Draw_;

View File

@@ -6,7 +6,7 @@ import _ol_Feature_ from '../Feature.js';
import _ol_MapBrowserEventType_ from '../MapBrowserEventType.js';
import _ol_MapBrowserPointerEvent_ from '../MapBrowserPointerEvent.js';
import _ol_coordinate_ from '../coordinate.js';
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import {boundingExtent, getArea} from '../extent.js';
import GeometryType from '../geom/GeometryType.js';
import Point from '../geom/Point.js';
@@ -454,7 +454,7 @@ _ol_interaction_Extent_.prototype.setExtent = function(extent) {
* @extends {ol.events.Event}
*/
_ol_interaction_Extent_.Event = function(extent) {
_ol_events_Event_.call(this, _ol_interaction_ExtentEventType_.EXTENTCHANGED);
Event.call(this, _ol_interaction_ExtentEventType_.EXTENTCHANGED);
/**
* The current extent.
@@ -464,5 +464,5 @@ _ol_interaction_Extent_.Event = function(extent) {
this.extent = extent;
};
inherits(_ol_interaction_Extent_.Event, _ol_events_Event_);
inherits(_ol_interaction_Extent_.Event, Event);
export default _ol_interaction_Extent_;

View File

@@ -10,7 +10,7 @@ import _ol_MapBrowserPointerEvent_ from '../MapBrowserPointerEvent.js';
import _ol_array_ from '../array.js';
import _ol_coordinate_ from '../coordinate.js';
import _ol_events_ from '../events.js';
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import _ol_events_EventType_ from '../events/EventType.js';
import _ol_events_condition_ from '../events/condition.js';
import {boundingExtent, buffer, createOrUpdateFromCoordinate} from '../extent.js';
@@ -1215,7 +1215,7 @@ _ol_interaction_Modify_.getDefaultStyleFunction = function() {
*/
_ol_interaction_Modify_.Event = function(type, features, mapBrowserPointerEvent) {
_ol_events_Event_.call(this, type);
Event.call(this, type);
/**
* The features being modified.
@@ -1231,5 +1231,5 @@ _ol_interaction_Modify_.Event = function(type, features, mapBrowserPointerEvent)
*/
this.mapBrowserEvent = mapBrowserPointerEvent;
};
inherits(_ol_interaction_Modify_.Event, _ol_events_Event_);
inherits(_ol_interaction_Modify_.Event, Event);
export default _ol_interaction_Modify_;

View File

@@ -5,7 +5,7 @@ import {getUid, inherits} from '../index.js';
import _ol_CollectionEventType_ from '../CollectionEventType.js';
import _ol_array_ from '../array.js';
import _ol_events_ from '../events.js';
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import _ol_events_condition_ from '../events/condition.js';
import {TRUE} from '../functions.js';
import GeometryType from '../geom/GeometryType.js';
@@ -391,7 +391,7 @@ _ol_interaction_Select_.prototype.removeFeatureLayerAssociation_ = function(feat
* @constructor
*/
_ol_interaction_Select_.Event = function(type, selected, deselected, mapBrowserEvent) {
_ol_events_Event_.call(this, type);
Event.call(this, type);
/**
* Selected features array.
@@ -414,7 +414,7 @@ _ol_interaction_Select_.Event = function(type, selected, deselected, mapBrowserE
*/
this.mapBrowserEvent = mapBrowserEvent;
};
inherits(_ol_interaction_Select_.Event, _ol_events_Event_);
inherits(_ol_interaction_Select_.Event, Event);
/**

View File

@@ -5,7 +5,7 @@ import {inherits} from '../index.js';
import _ol_Collection_ from '../Collection.js';
import _ol_Object_ from '../Object.js';
import _ol_events_ from '../events.js';
import _ol_events_Event_ from '../events/Event.js';
import Event from '../events/Event.js';
import {TRUE} from '../functions.js';
import _ol_array_ from '../array.js';
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
@@ -276,7 +276,7 @@ _ol_interaction_Translate_.prototype.updateState_ = function(oldMap) {
*/
_ol_interaction_Translate_.Event = function(type, features, coordinate) {
_ol_events_Event_.call(this, type);
Event.call(this, type);
/**
* The features being translated.
@@ -293,5 +293,5 @@ _ol_interaction_Translate_.Event = function(type, features, coordinate) {
*/
this.coordinate = coordinate;
};
inherits(_ol_interaction_Translate_.Event, _ol_events_Event_);
inherits(_ol_interaction_Translate_.Event, Event);
export default _ol_interaction_Translate_;