Add @api stable to ol.MapBrowserEvent
This commit is contained in:
@@ -45,19 +45,19 @@ ol.MapBrowserEvent = function(type, map, browserEvent, opt_frameState) {
|
|||||||
/**
|
/**
|
||||||
* @const
|
* @const
|
||||||
* @type {Event}
|
* @type {Event}
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
this.originalEvent = browserEvent.getBrowserEvent();
|
this.originalEvent = browserEvent.getBrowserEvent();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Pixel}
|
* @type {ol.Pixel}
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
this.pixel = map.getEventPixel(this.originalEvent);
|
this.pixel = map.getEventPixel(this.originalEvent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {ol.Coordinate}
|
* @type {ol.Coordinate}
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
this.coordinate = map.getCoordinateFromPixel(this.pixel);
|
this.coordinate = map.getCoordinateFromPixel(this.pixel);
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ goog.inherits(ol.MapBrowserEvent, ol.MapEvent);
|
|||||||
* Prevents the default browser action.
|
* Prevents the default browser action.
|
||||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/event.preventDefault
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.MapBrowserEvent.prototype.preventDefault = function() {
|
ol.MapBrowserEvent.prototype.preventDefault = function() {
|
||||||
goog.base(this, 'preventDefault');
|
goog.base(this, 'preventDefault');
|
||||||
@@ -81,7 +81,7 @@ ol.MapBrowserEvent.prototype.preventDefault = function() {
|
|||||||
* Prevents further propagation of the current event.
|
* Prevents further propagation of the current event.
|
||||||
* @see https://developer.mozilla.org/en-US/docs/Web/API/event.stopPropagation
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/event.stopPropagation
|
||||||
* @override
|
* @override
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.MapBrowserEvent.prototype.stopPropagation = function() {
|
ol.MapBrowserEvent.prototype.stopPropagation = function() {
|
||||||
goog.base(this, 'stopPropagation');
|
goog.base(this, 'stopPropagation');
|
||||||
|
|||||||
Reference in New Issue
Block a user