More precise Event typing
This commit is contained in:
@@ -256,7 +256,7 @@ Attribution.prototype.updateElement_ = function(frameState) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} event The event to handle
|
||||
* @param {MouseEvent} event The event to handle
|
||||
* @private
|
||||
*/
|
||||
Attribution.prototype.handleClick_ = function(event) {
|
||||
|
||||
@@ -136,7 +136,7 @@ inherits(FullScreen, Control);
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} event The event to handle
|
||||
* @param {MouseEvent} event The event to handle
|
||||
* @private
|
||||
*/
|
||||
FullScreen.prototype.handleClick_ = function(event) {
|
||||
|
||||
@@ -498,7 +498,7 @@ OverviewMap.prototype.calculateCoordinateRotate_ = function(
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} event The event to handle
|
||||
* @param {MouseEvent} event The event to handle
|
||||
* @private
|
||||
*/
|
||||
OverviewMap.prototype.handleClick_ = function(event) {
|
||||
|
||||
@@ -113,7 +113,7 @@ inherits(Rotate, Control);
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} event The event to handle
|
||||
* @param {MouseEvent} event The event to handle
|
||||
* @private
|
||||
*/
|
||||
Rotate.prototype.handleClick_ = function(event) {
|
||||
|
||||
@@ -98,7 +98,7 @@ inherits(Zoom, Control);
|
||||
|
||||
/**
|
||||
* @param {number} delta Zoom delta.
|
||||
* @param {Event} event The event to handle
|
||||
* @param {MouseEvent} event The event to handle
|
||||
* @private
|
||||
*/
|
||||
Zoom.prototype.handleClick_ = function(delta, event) {
|
||||
|
||||
@@ -227,7 +227,7 @@ export function render(mapEvent) {
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} event The browser event to handle.
|
||||
* @param {MouseEvent} event The browser event to handle.
|
||||
* @private
|
||||
*/
|
||||
ZoomSlider.prototype.handleContainerClick_ = function(event) {
|
||||
|
||||
@@ -68,7 +68,7 @@ inherits(ZoomToExtent, Control);
|
||||
|
||||
|
||||
/**
|
||||
* @param {Event} event The event to handle
|
||||
* @param {MouseEvent} event The event to handle
|
||||
* @private
|
||||
*/
|
||||
ZoomToExtent.prototype.handleClick_ = function(event) {
|
||||
|
||||
Reference in New Issue
Block a user