Remove static members from Pointer
This commit is contained in:
@@ -8,6 +8,37 @@ import MapBrowserPointerEvent from '../MapBrowserPointerEvent.js';
|
|||||||
import Interaction from '../interaction/Interaction.js';
|
import Interaction from '../interaction/Interaction.js';
|
||||||
import {getValues} from '../obj.js';
|
import {getValues} from '../obj.js';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
||||||
|
* @this {ol.interaction.Pointer}
|
||||||
|
*/
|
||||||
|
const handleDragEvent = nullFunction;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
||||||
|
* @return {boolean} Capture dragging.
|
||||||
|
* @this {ol.interaction.Pointer}
|
||||||
|
*/
|
||||||
|
const handleUpEvent = FALSE;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
||||||
|
* @return {boolean} Capture dragging.
|
||||||
|
* @this {ol.interaction.Pointer}
|
||||||
|
*/
|
||||||
|
const handleDownEvent = FALSE;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
||||||
|
* @this {ol.interaction.Pointer}
|
||||||
|
*/
|
||||||
|
const handleMoveEvent = nullFunction;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
* Base class that calls user-defined functions on `down`, `move` and `up`
|
* Base class that calls user-defined functions on `down`, `move` and `up`
|
||||||
@@ -36,28 +67,28 @@ const PointerInteraction = function(opt_options) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.handleDownEvent_ = options.handleDownEvent ?
|
this.handleDownEvent_ = options.handleDownEvent ?
|
||||||
options.handleDownEvent : PointerInteraction.handleDownEvent;
|
options.handleDownEvent : handleDownEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {function(ol.MapBrowserPointerEvent)}
|
* @type {function(ol.MapBrowserPointerEvent)}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.handleDragEvent_ = options.handleDragEvent ?
|
this.handleDragEvent_ = options.handleDragEvent ?
|
||||||
options.handleDragEvent : PointerInteraction.handleDragEvent;
|
options.handleDragEvent : handleDragEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {function(ol.MapBrowserPointerEvent)}
|
* @type {function(ol.MapBrowserPointerEvent)}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.handleMoveEvent_ = options.handleMoveEvent ?
|
this.handleMoveEvent_ = options.handleMoveEvent ?
|
||||||
options.handleMoveEvent : PointerInteraction.handleMoveEvent;
|
options.handleMoveEvent : handleMoveEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {function(ol.MapBrowserPointerEvent):boolean}
|
* @type {function(ol.MapBrowserPointerEvent):boolean}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
this.handleUpEvent_ = options.handleUpEvent ?
|
this.handleUpEvent_ = options.handleUpEvent ?
|
||||||
options.handleUpEvent : PointerInteraction.handleUpEvent;
|
options.handleUpEvent : handleUpEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -134,36 +165,6 @@ PointerInteraction.prototype.updateTrackedPointers_ = function(mapBrowserEvent)
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
|
||||||
* @this {ol.interaction.Pointer}
|
|
||||||
*/
|
|
||||||
PointerInteraction.handleDragEvent = nullFunction;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
|
||||||
* @return {boolean} Capture dragging.
|
|
||||||
* @this {ol.interaction.Pointer}
|
|
||||||
*/
|
|
||||||
PointerInteraction.handleUpEvent = FALSE;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
|
||||||
* @return {boolean} Capture dragging.
|
|
||||||
* @this {ol.interaction.Pointer}
|
|
||||||
*/
|
|
||||||
PointerInteraction.handleDownEvent = FALSE;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {ol.MapBrowserPointerEvent} mapBrowserEvent Event.
|
|
||||||
* @this {ol.interaction.Pointer}
|
|
||||||
*/
|
|
||||||
PointerInteraction.handleMoveEvent = nullFunction;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handles the {@link ol.MapBrowserEvent map browser event} and may call into
|
* Handles the {@link ol.MapBrowserEvent map browser event} and may call into
|
||||||
* other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are
|
* other functions, if event sequences like e.g. 'drag' or 'down-up' etc. are
|
||||||
|
|||||||
Reference in New Issue
Block a user