Named exports from ol/functions
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
// FIXME should handle all geo-referenced data, not just vector data
|
||||
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {TRUE} from '../functions.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_Event_ from '../events/Event.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
@@ -148,7 +148,7 @@ _ol_interaction_DragAndDrop_.prototype.handleResult_ = function(file, event) {
|
||||
* @this {ol.interaction.DragAndDrop}
|
||||
* @api
|
||||
*/
|
||||
_ol_interaction_DragAndDrop_.handleEvent = _ol_functions_.TRUE;
|
||||
_ol_interaction_DragAndDrop_.handleEvent = TRUE;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ import _ol_ViewHint_ from '../ViewHint.js';
|
||||
import _ol_coordinate_ from '../coordinate.js';
|
||||
import {easeOut} from '../easing.js';
|
||||
import _ol_events_condition_ from '../events/condition.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {FALSE} from '../functions.js';
|
||||
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
||||
|
||||
/**
|
||||
@@ -171,5 +171,5 @@ _ol_interaction_DragPan_.handleDownEvent_ = function(mapBrowserEvent) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_DragPan_.prototype.shouldStopEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_DragPan_.prototype.shouldStopEvent = FALSE;
|
||||
export default _ol_interaction_DragPan_;
|
||||
|
||||
@@ -5,7 +5,7 @@ import {inherits} from '../index.js';
|
||||
import _ol_RotationConstraint_ from '../RotationConstraint.js';
|
||||
import _ol_ViewHint_ from '../ViewHint.js';
|
||||
import _ol_events_condition_ from '../events/condition.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {FALSE} from '../functions.js';
|
||||
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
|
||||
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
||||
|
||||
@@ -131,5 +131,5 @@ _ol_interaction_DragRotate_.handleDownEvent_ = function(mapBrowserEvent) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_DragRotate_.prototype.shouldStopEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_DragRotate_.prototype.shouldStopEvent = FALSE;
|
||||
export default _ol_interaction_DragRotate_;
|
||||
|
||||
@@ -10,7 +10,7 @@ import _ol_events_ from '../events.js';
|
||||
import _ol_events_Event_ from '../events/Event.js';
|
||||
import _ol_events_condition_ from '../events/condition.js';
|
||||
import {boundingExtent, getBottomLeft, getBottomRight, getTopLeft, getTopRight} from '../extent.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {TRUE, FALSE} from '../functions.js';
|
||||
import Circle from '../geom/Circle.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
import LineString from '../geom/LineString.js';
|
||||
@@ -129,7 +129,7 @@ var _ol_interaction_Draw_ = function(options) {
|
||||
* @private
|
||||
* @type {ol.EventsConditionType}
|
||||
*/
|
||||
this.finishCondition_ = options.finishCondition ? options.finishCondition : _ol_functions_.TRUE;
|
||||
this.finishCondition_ = options.finishCondition ? options.finishCondition : TRUE;
|
||||
|
||||
var geometryFunction = options.geometryFunction;
|
||||
if (!geometryFunction) {
|
||||
@@ -735,7 +735,7 @@ _ol_interaction_Draw_.prototype.extend = function(feature) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_Draw_.prototype.shouldStopEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_Draw_.prototype.shouldStopEvent = FALSE;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_ViewHint_ from '../ViewHint.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {FALSE} from '../functions.js';
|
||||
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
|
||||
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
||||
import _ol_RotationConstraint_ from '../RotationConstraint.js';
|
||||
@@ -170,5 +170,5 @@ _ol_interaction_PinchRotate_.handleDownEvent_ = function(mapBrowserEvent) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_PinchRotate_.prototype.shouldStopEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_PinchRotate_.prototype.shouldStopEvent = FALSE;
|
||||
export default _ol_interaction_PinchRotate_;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_ViewHint_ from '../ViewHint.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {FALSE} from '../functions.js';
|
||||
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
|
||||
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
||||
|
||||
@@ -169,5 +169,5 @@ _ol_interaction_PinchZoom_.handleDownEvent_ = function(mapBrowserEvent) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_PinchZoom_.prototype.shouldStopEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_PinchZoom_.prototype.shouldStopEvent = FALSE;
|
||||
export default _ol_interaction_PinchZoom_;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @module ol/interaction/Pointer
|
||||
*/
|
||||
import {inherits, nullFunction} from '../index.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {FALSE} from '../functions.js';
|
||||
import _ol_MapBrowserEventType_ from '../MapBrowserEventType.js';
|
||||
import _ol_MapBrowserPointerEvent_ from '../MapBrowserPointerEvent.js';
|
||||
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
|
||||
@@ -150,7 +150,7 @@ _ol_interaction_Pointer_.handleDragEvent = nullFunction;
|
||||
* @return {boolean} Capture dragging.
|
||||
* @this {ol.interaction.Pointer}
|
||||
*/
|
||||
_ol_interaction_Pointer_.handleUpEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_Pointer_.handleUpEvent = FALSE;
|
||||
|
||||
|
||||
/**
|
||||
@@ -158,7 +158,7 @@ _ol_interaction_Pointer_.handleUpEvent = _ol_functions_.FALSE;
|
||||
* @return {boolean} Capture dragging.
|
||||
* @this {ol.interaction.Pointer}
|
||||
*/
|
||||
_ol_interaction_Pointer_.handleDownEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_Pointer_.handleDownEvent = FALSE;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,7 @@ import _ol_array_ from '../array.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_Event_ from '../events/Event.js';
|
||||
import _ol_events_condition_ from '../events/condition.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {TRUE} from '../functions.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
import _ol_interaction_Interaction_ from '../interaction/Interaction.js';
|
||||
import _ol_layer_Vector_ from '../layer/Vector.js';
|
||||
@@ -79,8 +79,7 @@ var _ol_interaction_Select_ = function(opt_options) {
|
||||
* @private
|
||||
* @type {ol.SelectFilterFunction}
|
||||
*/
|
||||
this.filter_ = options.filter ? options.filter :
|
||||
_ol_functions_.TRUE;
|
||||
this.filter_ = options.filter ? options.filter : TRUE;
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -118,7 +117,7 @@ var _ol_interaction_Select_ = function(opt_options) {
|
||||
};
|
||||
}
|
||||
} else {
|
||||
layerFilter = _ol_functions_.TRUE;
|
||||
layerFilter = TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,7 @@ import _ol_coordinate_ from '../coordinate.js';
|
||||
import _ol_events_ from '../events.js';
|
||||
import _ol_events_EventType_ from '../events/EventType.js';
|
||||
import {boundingExtent, createEmpty} from '../extent.js';
|
||||
import _ol_functions_ from '../functions.js';
|
||||
import {TRUE, FALSE} from '../functions.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
import Polygon from '../geom/Polygon.js';
|
||||
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
||||
@@ -43,7 +43,7 @@ var _ol_interaction_Snap_ = function(opt_options) {
|
||||
|
||||
_ol_interaction_Pointer_.call(this, {
|
||||
handleEvent: _ol_interaction_Snap_.handleEvent_,
|
||||
handleDownEvent: _ol_functions_.TRUE,
|
||||
handleDownEvent: TRUE,
|
||||
handleUpEvent: _ol_interaction_Snap_.handleUpEvent_
|
||||
});
|
||||
|
||||
@@ -330,7 +330,7 @@ _ol_interaction_Snap_.prototype.setMap = function(map) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
_ol_interaction_Snap_.prototype.shouldStopEvent = _ol_functions_.FALSE;
|
||||
_ol_interaction_Snap_.prototype.shouldStopEvent = FALSE;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -6,7 +6,7 @@ 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 _ol_functions_ from '../functions.js';
|
||||
import {TRUE} from '../functions.js';
|
||||
import _ol_array_ from '../array.js';
|
||||
import _ol_interaction_Pointer_ from '../interaction/Pointer.js';
|
||||
import _ol_interaction_Property_ from '../interaction/Property.js';
|
||||
@@ -58,7 +58,7 @@ var _ol_interaction_Translate_ = function(opt_options) {
|
||||
};
|
||||
}
|
||||
} else {
|
||||
layerFilter = _ol_functions_.TRUE;
|
||||
layerFilter = TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user