Use Object<Foo, Bar> instead of Object.<Foo, Bar>
This commit is contained in:
@@ -6,7 +6,7 @@ class EventSource {
|
||||
|
||||
/**
|
||||
* @param {module:ol/pointer/PointerEventHandler} dispatcher Event handler.
|
||||
* @param {!Object.<string, function(Event)>} mapping Event mapping.
|
||||
* @param {!Object<string, function(Event)>} mapping Event mapping.
|
||||
*/
|
||||
constructor(dispatcher, mapping) {
|
||||
|
||||
@@ -18,7 +18,7 @@ class EventSource {
|
||||
/**
|
||||
* @private
|
||||
* @const
|
||||
* @type {!Object.<string, function(Event)>}
|
||||
* @type {!Object<string, function(Event)>}
|
||||
*/
|
||||
this.mapping_ = mapping;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ class MouseSource extends EventSource {
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!Object.<string, Event|Object>}
|
||||
* @type {!Object<string, Event|Object>}
|
||||
*/
|
||||
this.pointerMap = dispatcher.pointerMap;
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ class MsSource extends EventSource {
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!Object.<string, MSPointerEvent|Object>}
|
||||
* @type {!Object<string, MSPointerEvent|Object>}
|
||||
*/
|
||||
this.pointerMap = dispatcher.pointerMap;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class PointerEvent extends Event {
|
||||
*
|
||||
* @param {string} type The type of the event to create.
|
||||
* @param {Event} originalEvent The event.
|
||||
* @param {Object.<string, ?>=} opt_eventDict An optional dictionary of
|
||||
* @param {Object<string, ?>=} opt_eventDict An optional dictionary of
|
||||
* initial event properties.
|
||||
*/
|
||||
constructor(type, originalEvent, opt_eventDict) {
|
||||
@@ -202,7 +202,7 @@ class PointerEvent extends Event {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {Object.<string, ?>} eventDict The event dictionary.
|
||||
* @param {Object<string, ?>} eventDict The event dictionary.
|
||||
* @return {number} Button indicator.
|
||||
*/
|
||||
getButtons_(eventDict) {
|
||||
@@ -243,7 +243,7 @@ class PointerEvent extends Event {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @param {Object.<string, ?>} eventDict The event dictionary.
|
||||
* @param {Object<string, ?>} eventDict The event dictionary.
|
||||
* @param {number} buttons Button indicator.
|
||||
* @return {number} The pressure.
|
||||
*/
|
||||
|
||||
@@ -100,12 +100,12 @@ class PointerEventHandler extends EventTarget {
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!Object.<string, Event|Object>}
|
||||
* @type {!Object<string, Event|Object>}
|
||||
*/
|
||||
this.pointerMap = {};
|
||||
|
||||
/**
|
||||
* @type {Object.<string, function(Event)>}
|
||||
* @type {Object<string, function(Event)>}
|
||||
* @private
|
||||
*/
|
||||
this.eventMap_ = {};
|
||||
|
||||
@@ -114,7 +114,7 @@ class TouchSource extends EventSource {
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!Object.<string, Event|Object>}
|
||||
* @type {!Object<string, Event|Object>}
|
||||
*/
|
||||
this.pointerMap = dispatcher.pointerMap;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user