diff --git a/src/ol/color/color.js b/src/ol/color/color.js index 765cc22614..9d55d06529 100644 --- a/src/ol/color/color.js +++ b/src/ol/color/color.js @@ -32,7 +32,8 @@ ol.Color; /** * This RegExp matches # followed by 3 or 6 hex digits. - * @const {RegExp} + * @const + * @type {RegExp} * @private */ ol.color.hexColorRe_ = /^#(?:[0-9a-f]{3}){1,2}$/i; @@ -40,7 +41,8 @@ ol.color.hexColorRe_ = /^#(?:[0-9a-f]{3}){1,2}$/i; /** * @see goog.color.rgbColorRe_ - * @const {RegExp} + * @const + * @type {RegExp} * @private */ ol.color.rgbColorRe_ = @@ -49,7 +51,8 @@ ol.color.rgbColorRe_ = /** * @see goog.color.alpha.rgbaColorRe_ - * @const {RegExp} + * @const + * @type {RegExp} * @private */ ol.color.rgbaColorRe_ = diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index dea0348f19..d703970609 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -43,7 +43,8 @@ goog.inherits(ol.format.GeoJSON, ol.format.JSON); /** - * @const {Array.} + * @const + * @type {Array.} * @private */ ol.format.GeoJSON.EXTENSIONS_ = ['.geojson']; diff --git a/src/ol/format/igcformat.js b/src/ol/format/igcformat.js index 257d981770..cee1486e4a 100644 --- a/src/ol/format/igcformat.js +++ b/src/ol/format/igcformat.js @@ -44,14 +44,16 @@ goog.inherits(ol.format.IGC, ol.format.Text); /** - * @const {Array.} + * @const + * @type {Array.} * @private */ ol.format.IGC.EXTENSIONS_ = ['.igc']; /** - * @const {RegExp} + * @const + * @type {RegExp} * @private */ ol.format.IGC.B_RECORD_RE_ = @@ -59,14 +61,16 @@ ol.format.IGC.B_RECORD_RE_ = /** - * @const {RegExp} + * @const + * @type {RegExp} * @private */ ol.format.IGC.H_RECORD_RE_ = /^H.([A-Z]{3}).*?:(.*)/; /** - * @const {RegExp} + * @const + * @type {RegExp} * @private */ ol.format.IGC.HFDTE_RECORD_RE_ = /^HFDTE(\d{2})(\d{2})(\d{2})/; diff --git a/src/ol/format/kmlformat.js b/src/ol/format/kmlformat.js index cde7c22b9d..336d87e223 100644 --- a/src/ol/format/kmlformat.js +++ b/src/ol/format/kmlformat.js @@ -134,14 +134,16 @@ goog.inherits(ol.format.KML, ol.format.XML); /** - * @const {Array.} + * @const + * @type {Array.} * @private */ ol.format.KML.EXTENSIONS_ = ['.kml']; /** - * @const {Array.} + * @const + * @type {Array.} * @private */ ol.format.KML.GX_NAMESPACE_URIS_ = [ @@ -150,7 +152,8 @@ ol.format.KML.GX_NAMESPACE_URIS_ = [ /** - * @const {Array.} + * @const + * @type {Array.} * @private */ ol.format.KML.NAMESPACE_URIS_ = [ @@ -163,14 +166,16 @@ ol.format.KML.NAMESPACE_URIS_ = [ /** - * @const {ol.Color} + * @const + * @type {ol.Color} * @private */ ol.format.KML.DEFAULT_COLOR_ = [255, 255, 255, 1]; /** - * @const {ol.style.Fill} + * @const + * @type {ol.style.Fill} * @private */ ol.format.KML.DEFAULT_FILL_STYLE_ = new ol.style.Fill({ @@ -179,14 +184,16 @@ ol.format.KML.DEFAULT_FILL_STYLE_ = new ol.style.Fill({ /** - * @const {ol.Size} + * @const + * @type {ol.Size} * @private */ ol.format.KML.DEFAULT_IMAGE_STYLE_ANCHOR_ = [2, 20]; // FIXME maybe [8, 32] ? /** - * @const {ol.style.IconAnchorUnits} + * @const + * @type {ol.style.IconAnchorUnits} * @private */ ol.format.KML.DEFAULT_IMAGE_STYLE_ANCHOR_X_UNITS_ = @@ -194,7 +201,8 @@ ol.format.KML.DEFAULT_IMAGE_STYLE_ANCHOR_X_UNITS_ = /** - * @const {ol.style.IconAnchorUnits} + * @const + * @type {ol.style.IconAnchorUnits} * @private */ ol.format.KML.DEFAULT_IMAGE_STYLE_ANCHOR_Y_UNITS_ = @@ -202,14 +210,16 @@ ol.format.KML.DEFAULT_IMAGE_STYLE_ANCHOR_Y_UNITS_ = /** - * @const {ol.Size} + * @const + * @type {ol.Size} * @private */ ol.format.KML.DEFAULT_IMAGE_STYLE_SIZE_ = [32, 32]; /** - * @const {string} + * @const + * @type {string} * @private */ ol.format.KML.DEFAULT_IMAGE_STYLE_SRC_ = @@ -217,7 +227,8 @@ ol.format.KML.DEFAULT_IMAGE_STYLE_SRC_ = /** - * @const {ol.style.Image} + * @const + * @type {ol.style.Image} * @private */ ol.format.KML.DEFAULT_IMAGE_STYLE_ = new ol.style.Icon({ @@ -233,7 +244,8 @@ ol.format.KML.DEFAULT_IMAGE_STYLE_ = new ol.style.Icon({ /** - * @const {ol.style.Stroke} + * @const + * @type {ol.style.Stroke} * @private */ ol.format.KML.DEFAULT_STROKE_STYLE_ = new ol.style.Stroke({ @@ -243,7 +255,8 @@ ol.format.KML.DEFAULT_STROKE_STYLE_ = new ol.style.Stroke({ /** - * @const {ol.style.Style} + * @const + * @type {ol.style.Style} * @private */ ol.format.KML.DEFAULT_STYLE_ = new ol.style.Style({ @@ -256,14 +269,16 @@ ol.format.KML.DEFAULT_STYLE_ = new ol.style.Style({ /** - * @const {Array.} + * @const + * @type {Array.} * @private */ ol.format.KML.DEFAULT_STYLE_ARRAY_ = [ol.format.KML.DEFAULT_STYLE_]; /** - * @const {Object.} + * @const + * @type {Object.} * @private */ ol.format.KML.ICON_ANCHOR_UNITS_MAP_ = { @@ -1159,7 +1174,8 @@ ol.format.KML.whenParser_ = function(node, objectStack) { /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.DATA_PARSERS_ = ol.xml.makeParsersNS( @@ -1169,7 +1185,8 @@ ol.format.KML.DATA_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeParsersNS( @@ -1180,7 +1197,8 @@ ol.format.KML.EXTENDED_DATA_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeParsersNS( @@ -1190,7 +1208,8 @@ ol.format.KML.FLAT_LINEAR_RING_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeParsersNS( @@ -1201,7 +1220,8 @@ ol.format.KML.FLAT_LINEAR_RINGS_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeParsersNS( @@ -1214,7 +1234,8 @@ ol.format.KML.GX_TRACK_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeParsersNS( @@ -1224,7 +1245,8 @@ ol.format.KML.GEOMETRY_FLAT_COORDINATES_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.ICON_PARSERS_ = ol.xml.makeParsersNS( @@ -1234,7 +1256,8 @@ ol.format.KML.ICON_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeParsersNS( @@ -1247,7 +1270,8 @@ ol.format.KML.ICON_STYLE_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS( @@ -1257,7 +1281,8 @@ ol.format.KML.INNER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeParsersNS( @@ -1268,7 +1293,8 @@ ol.format.KML.LINE_STYLE_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS( @@ -1282,7 +1308,8 @@ ol.format.KML.MULTI_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS( @@ -1292,7 +1319,8 @@ ol.format.KML.GX_MULTITRACK_GEOMETRY_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS( @@ -1302,7 +1330,8 @@ ol.format.KML.OUTER_BOUNDARY_IS_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.PAIR_PARSERS_ = ol.xml.makeParsersNS( @@ -1314,7 +1343,8 @@ ol.format.KML.PAIR_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeParsersNS( @@ -1348,7 +1378,8 @@ ol.format.KML.PLACEMARK_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeParsersNS( @@ -1360,7 +1391,8 @@ ol.format.KML.POLY_STYLE_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeParsersNS( @@ -1370,7 +1402,8 @@ ol.format.KML.SCHEMA_DATA_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.STYLE_PARSERS_ = ol.xml.makeParsersNS( @@ -1382,7 +1415,8 @@ ol.format.KML.STYLE_PARSERS_ = ol.xml.makeParsersNS( /** - * @const {Object.>} + * @const + * @type {Object.>} * @private */ ol.format.KML.STYLE_MAP_PARSERS_ = ol.xml.makeParsersNS( diff --git a/src/ol/interaction/dragboxinteraction.js b/src/ol/interaction/dragboxinteraction.js index d04e8a4e29..e83e240867 100644 --- a/src/ol/interaction/dragboxinteraction.js +++ b/src/ol/interaction/dragboxinteraction.js @@ -19,7 +19,8 @@ ol.DRAG_BOX_HYSTERESIS_PIXELS = 8; /** - * @const {number} + * @const + * @type {number} */ ol.DRAG_BOX_HYSTERESIS_PIXELS_SQUARED = ol.DRAG_BOX_HYSTERESIS_PIXELS * diff --git a/src/ol/render/canvas/canvas.js b/src/ol/render/canvas/canvas.js index c46bc7866a..8144f14e9d 100644 --- a/src/ol/render/canvas/canvas.js +++ b/src/ol/render/canvas/canvas.js @@ -4,60 +4,70 @@ goog.require('ol.color'); /** - * @const {string} + * @const + * @type {string} */ ol.render.canvas.defaultFont = '10px sans-serif'; /** - * @const {ol.Color} + * @const + * @type {ol.Color} */ ol.render.canvas.defaultFillStyle = ol.color.fromString('black'); /** - * @const {string} + * @const + * @type {string} */ ol.render.canvas.defaultLineCap = 'round'; /** - * @const {Array.} + * @const + * @type {Array.} */ ol.render.canvas.defaultLineDash = []; /** - * @const {string} + * @const + * @type {string} */ ol.render.canvas.defaultLineJoin = 'round'; /** - * @const {number} + * @const + * @type {number} */ ol.render.canvas.defaultMiterLimit = 10; /** - * @const {ol.Color} + * @const + * @type {ol.Color} */ ol.render.canvas.defaultStrokeStyle = ol.color.fromString('black'); /** - * @const {string} + * @const + * @type {string} */ ol.render.canvas.defaultTextAlign = 'start'; /** - * @const {string} + * @const + * @type {string} */ ol.render.canvas.defaultTextBaseline = 'alphabetic'; /** - * @const {number} + * @const + * @type {number} */ ol.render.canvas.defaultLineWidth = 1; diff --git a/src/ol/render/ireplay.js b/src/ol/render/ireplay.js index d854d44e38..25df824ab0 100644 --- a/src/ol/render/ireplay.js +++ b/src/ol/render/ireplay.js @@ -15,7 +15,8 @@ ol.render.ReplayType = { /** - * @const {Array.} + * @const + * @type {Array.} */ ol.render.REPLAY_ORDER = [ ol.render.ReplayType.POLYGON,