Add @api stable to ol.events.condition built-ins
This commit is contained in:
+10
-10
@@ -21,7 +21,7 @@ ol.events.ConditionType;
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if only the alt key is pressed.
|
* @return {boolean} True if only the alt key is pressed.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.altKeyOnly = function(mapBrowserEvent) {
|
ol.events.condition.altKeyOnly = function(mapBrowserEvent) {
|
||||||
var browserEvent = mapBrowserEvent.browserEvent;
|
var browserEvent = mapBrowserEvent.browserEvent;
|
||||||
@@ -35,7 +35,7 @@ ol.events.condition.altKeyOnly = function(mapBrowserEvent) {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if only the alt and shift keys are pressed.
|
* @return {boolean} True if only the alt and shift keys are pressed.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.altShiftKeysOnly = function(mapBrowserEvent) {
|
ol.events.condition.altShiftKeysOnly = function(mapBrowserEvent) {
|
||||||
var browserEvent = mapBrowserEvent.browserEvent;
|
var browserEvent = mapBrowserEvent.browserEvent;
|
||||||
@@ -51,7 +51,7 @@ ol.events.condition.altShiftKeysOnly = function(mapBrowserEvent) {
|
|||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True.
|
* @return {boolean} True.
|
||||||
* @function
|
* @function
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.always = goog.functions.TRUE;
|
ol.events.condition.always = goog.functions.TRUE;
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ ol.events.condition.always = goog.functions.TRUE;
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if the event is a map `click` event.
|
* @return {boolean} True if the event is a map `click` event.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.click = function(mapBrowserEvent) {
|
ol.events.condition.click = function(mapBrowserEvent) {
|
||||||
return mapBrowserEvent.type == ol.MapBrowserEvent.EventType.CLICK;
|
return mapBrowserEvent.type == ol.MapBrowserEvent.EventType.CLICK;
|
||||||
@@ -81,7 +81,7 @@ ol.events.condition.mouseMove = function(mapBrowserEvent) {
|
|||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} False.
|
* @return {boolean} False.
|
||||||
* @function
|
* @function
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.never = goog.functions.FALSE;
|
ol.events.condition.never = goog.functions.FALSE;
|
||||||
|
|
||||||
@@ -89,7 +89,7 @@ ol.events.condition.never = goog.functions.FALSE;
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if the event is a map `singleclick` event.
|
* @return {boolean} True if the event is a map `singleclick` event.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.singleClick = function(mapBrowserEvent) {
|
ol.events.condition.singleClick = function(mapBrowserEvent) {
|
||||||
return mapBrowserEvent.type == ol.MapBrowserEvent.EventType.SINGLECLICK;
|
return mapBrowserEvent.type == ol.MapBrowserEvent.EventType.SINGLECLICK;
|
||||||
@@ -99,7 +99,7 @@ ol.events.condition.singleClick = function(mapBrowserEvent) {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True only if there no modifier keys are pressed.
|
* @return {boolean} True only if there no modifier keys are pressed.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.noModifierKeys = function(mapBrowserEvent) {
|
ol.events.condition.noModifierKeys = function(mapBrowserEvent) {
|
||||||
var browserEvent = mapBrowserEvent.browserEvent;
|
var browserEvent = mapBrowserEvent.browserEvent;
|
||||||
@@ -113,7 +113,7 @@ ol.events.condition.noModifierKeys = function(mapBrowserEvent) {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if only the platform modifier key is pressed.
|
* @return {boolean} True if only the platform modifier key is pressed.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.platformModifierKeyOnly = function(mapBrowserEvent) {
|
ol.events.condition.platformModifierKeyOnly = function(mapBrowserEvent) {
|
||||||
var browserEvent = mapBrowserEvent.browserEvent;
|
var browserEvent = mapBrowserEvent.browserEvent;
|
||||||
@@ -127,7 +127,7 @@ ol.events.condition.platformModifierKeyOnly = function(mapBrowserEvent) {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if only the shift key is pressed.
|
* @return {boolean} True if only the shift key is pressed.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.shiftKeyOnly = function(mapBrowserEvent) {
|
ol.events.condition.shiftKeyOnly = function(mapBrowserEvent) {
|
||||||
var browserEvent = mapBrowserEvent.browserEvent;
|
var browserEvent = mapBrowserEvent.browserEvent;
|
||||||
@@ -157,7 +157,7 @@ ol.events.condition.targetNotEditable = function(mapBrowserEvent) {
|
|||||||
/**
|
/**
|
||||||
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
* @param {ol.MapBrowserEvent} mapBrowserEvent Map browser event.
|
||||||
* @return {boolean} True if the event originates from a mouse device.
|
* @return {boolean} True if the event originates from a mouse device.
|
||||||
* @api
|
* @api stable
|
||||||
*/
|
*/
|
||||||
ol.events.condition.mouseOnly = function(mapBrowserEvent) {
|
ol.events.condition.mouseOnly = function(mapBrowserEvent) {
|
||||||
goog.asserts.assertInstanceof(mapBrowserEvent, ol.MapBrowserPointerEvent);
|
goog.asserts.assertInstanceof(mapBrowserEvent, ol.MapBrowserPointerEvent);
|
||||||
|
|||||||
Reference in New Issue
Block a user