No need for @type when using @const
This commit is contained in:
@@ -32,8 +32,7 @@ ol.ENABLE_WEBGL = true;
|
|||||||
/**
|
/**
|
||||||
* The ratio between physical pixels and device-independent pixels
|
* The ratio between physical pixels and device-independent pixels
|
||||||
* (dips) on the device (`window.devicePixelRatio`).
|
* (dips) on the device (`window.devicePixelRatio`).
|
||||||
* @const
|
* @const {number}
|
||||||
* @type {number}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1;
|
ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1;
|
||||||
@@ -41,8 +40,7 @@ ol.BrowserFeature.DEVICE_PIXEL_RATIO = goog.global.devicePixelRatio || 1;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* True if browser supports Canvas.
|
* True if browser supports Canvas.
|
||||||
* @const
|
* @const {boolean}
|
||||||
* @type {boolean}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.HAS_CANVAS = ol.ENABLE_CANVAS && (
|
ol.BrowserFeature.HAS_CANVAS = ol.ENABLE_CANVAS && (
|
||||||
@@ -65,8 +63,7 @@ ol.BrowserFeature.HAS_CANVAS = ol.ENABLE_CANVAS && (
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates if DeviceOrientation is supported in the user's browser.
|
* Indicates if DeviceOrientation is supported in the user's browser.
|
||||||
* @const
|
* @const {boolean}
|
||||||
* @type {boolean}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
|
ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
|
||||||
@@ -75,8 +72,7 @@ ol.BrowserFeature.HAS_DEVICE_ORIENTATION =
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* True if browser supports DOM.
|
* True if browser supports DOM.
|
||||||
* @const
|
* @const {boolean}
|
||||||
* @type {boolean}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM;
|
ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM;
|
||||||
@@ -84,8 +80,7 @@ ol.BrowserFeature.HAS_DOM = ol.ENABLE_DOM;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Is HTML5 geolocation supported in the current browser?
|
* Is HTML5 geolocation supported in the current browser?
|
||||||
* @const
|
* @const {boolean}
|
||||||
* @type {boolean}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator;
|
ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator;
|
||||||
@@ -93,8 +88,7 @@ ol.BrowserFeature.HAS_GEOLOCATION = 'geolocation' in goog.global.navigator;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* True if browser supports touch events.
|
* True if browser supports touch events.
|
||||||
* @const
|
* @const {boolean}
|
||||||
* @type {boolean}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
|
ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
|
||||||
@@ -105,8 +99,7 @@ ol.BrowserFeature.HAS_TOUCH = ol.ASSUME_TOUCH ||
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* True if browser supports WebGL.
|
* True if browser supports WebGL.
|
||||||
* @const
|
* @const {boolean}
|
||||||
* @type {boolean}
|
|
||||||
* @todo stability experimental
|
* @todo stability experimental
|
||||||
*/
|
*/
|
||||||
ol.BrowserFeature.HAS_WEBGL = ol.ENABLE_WEBGL && (
|
ol.BrowserFeature.HAS_WEBGL = ol.ENABLE_WEBGL && (
|
||||||
|
|||||||
Reference in New Issue
Block a user