ol 7.0.0-dev.1660306204497 → 7.0.0-dev.1660487589130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (537) hide show
  1. package/Collection.d.ts +4 -4
  2. package/Collection.d.ts.map +1 -1
  3. package/Collection.js +8 -8
  4. package/Feature.d.ts +4 -4
  5. package/Feature.d.ts.map +1 -1
  6. package/Feature.js +10 -12
  7. package/Geolocation.d.ts +2 -2
  8. package/Geolocation.d.ts.map +1 -1
  9. package/Geolocation.js +3 -3
  10. package/ImageCanvas.d.ts +2 -2
  11. package/ImageCanvas.d.ts.map +1 -1
  12. package/ImageCanvas.js +4 -5
  13. package/ImageTile.d.ts +2 -2
  14. package/ImageTile.d.ts.map +1 -1
  15. package/ImageTile.js +3 -10
  16. package/Map.d.ts +12 -12
  17. package/Map.d.ts.map +1 -1
  18. package/Map.js +23 -23
  19. package/MapBrowserEvent.d.ts +4 -4
  20. package/MapBrowserEvent.d.ts.map +1 -1
  21. package/MapBrowserEvent.js +7 -14
  22. package/MapEvent.d.ts +2 -2
  23. package/MapEvent.d.ts.map +1 -1
  24. package/MapEvent.js +3 -3
  25. package/Object.d.ts +8 -8
  26. package/Object.d.ts.map +1 -1
  27. package/Object.js +13 -13
  28. package/Overlay.d.ts +2 -2
  29. package/Overlay.d.ts.map +1 -1
  30. package/Overlay.js +3 -3
  31. package/Tile.d.ts +2 -2
  32. package/Tile.d.ts.map +1 -1
  33. package/Tile.js +3 -3
  34. package/TileCache.d.ts +1 -1
  35. package/TileCache.d.ts.map +1 -1
  36. package/VectorTile.d.ts +2 -2
  37. package/VectorTile.d.ts.map +1 -1
  38. package/VectorTile.js +3 -3
  39. package/View.d.ts +55 -55
  40. package/View.d.ts.map +1 -1
  41. package/View.js +96 -103
  42. package/array.d.ts +5 -5
  43. package/array.d.ts.map +1 -1
  44. package/array.js +8 -8
  45. package/centerconstraint.js +6 -6
  46. package/control/Attribution.d.ts +2 -2
  47. package/control/Attribution.d.ts.map +1 -1
  48. package/control/Attribution.js +3 -3
  49. package/control/FullScreen.d.ts +2 -2
  50. package/control/FullScreen.d.ts.map +1 -1
  51. package/control/FullScreen.js +3 -3
  52. package/control/MousePosition.d.ts +2 -2
  53. package/control/MousePosition.d.ts.map +1 -1
  54. package/control/MousePosition.js +3 -3
  55. package/control/OverviewMap.d.ts +2 -2
  56. package/control/OverviewMap.d.ts.map +1 -1
  57. package/control/OverviewMap.js +3 -3
  58. package/control/Rotate.d.ts +2 -2
  59. package/control/Rotate.d.ts.map +1 -1
  60. package/control/Rotate.js +3 -3
  61. package/control/ScaleLine.d.ts +2 -2
  62. package/control/ScaleLine.d.ts.map +1 -1
  63. package/control/ScaleLine.js +3 -3
  64. package/control/Zoom.d.ts +2 -2
  65. package/control/Zoom.d.ts.map +1 -1
  66. package/control/Zoom.js +3 -3
  67. package/control/ZoomSlider.d.ts +2 -2
  68. package/control/ZoomSlider.d.ts.map +1 -1
  69. package/control/ZoomSlider.js +3 -3
  70. package/control/ZoomToExtent.d.ts +2 -2
  71. package/control/ZoomToExtent.d.ts.map +1 -1
  72. package/control/ZoomToExtent.js +3 -3
  73. package/control/defaults.d.ts +2 -2
  74. package/control/defaults.d.ts.map +1 -1
  75. package/control/defaults.js +3 -3
  76. package/coordinate.d.ts +12 -12
  77. package/coordinate.d.ts.map +1 -1
  78. package/coordinate.js +20 -21
  79. package/dom.d.ts +5 -5
  80. package/dom.d.ts.map +1 -1
  81. package/dom.js +13 -18
  82. package/events/Target.d.ts +4 -4
  83. package/events/Target.d.ts.map +1 -1
  84. package/events/Target.js +7 -7
  85. package/events.d.ts +5 -5
  86. package/events.d.ts.map +1 -1
  87. package/events.js +9 -9
  88. package/extent.d.ts +25 -25
  89. package/extent.d.ts.map +1 -1
  90. package/extent.js +66 -72
  91. package/format/EsriJSON.d.ts +11 -11
  92. package/format/EsriJSON.d.ts.map +1 -1
  93. package/format/EsriJSON.js +45 -50
  94. package/format/Feature.d.ts +18 -18
  95. package/format/Feature.d.ts.map +1 -1
  96. package/format/Feature.js +33 -41
  97. package/format/GML.d.ts +1 -1
  98. package/format/GML.js +3 -3
  99. package/format/GML2.d.ts +5 -5
  100. package/format/GML2.d.ts.map +1 -1
  101. package/format/GML2.js +15 -18
  102. package/format/GML3.d.ts +7 -7
  103. package/format/GML3.d.ts.map +1 -1
  104. package/format/GML3.js +26 -29
  105. package/format/GML32.d.ts.map +1 -1
  106. package/format/GML32.js +3 -5
  107. package/format/GMLBase.d.ts +6 -6
  108. package/format/GMLBase.d.ts.map +1 -1
  109. package/format/GMLBase.js +14 -14
  110. package/format/GPX.d.ts +2 -2
  111. package/format/GPX.d.ts.map +1 -1
  112. package/format/GPX.js +15 -17
  113. package/format/GeoJSON.d.ts +10 -10
  114. package/format/GeoJSON.d.ts.map +1 -1
  115. package/format/GeoJSON.js +60 -65
  116. package/format/IGC.d.ts +2 -2
  117. package/format/IGC.d.ts.map +1 -1
  118. package/format/IGC.js +9 -9
  119. package/format/IIIFInfo.d.ts +2 -2
  120. package/format/IIIFInfo.d.ts.map +1 -1
  121. package/format/IIIFInfo.js +3 -3
  122. package/format/JSONFeature.d.ts +22 -22
  123. package/format/JSONFeature.d.ts.map +1 -1
  124. package/format/JSONFeature.js +30 -30
  125. package/format/KML.d.ts +2 -2
  126. package/format/KML.d.ts.map +1 -1
  127. package/format/KML.js +22 -22
  128. package/format/MVT.d.ts +5 -5
  129. package/format/MVT.d.ts.map +1 -1
  130. package/format/MVT.js +7 -9
  131. package/format/OSMXML.js +3 -3
  132. package/format/Polyline.d.ts +16 -16
  133. package/format/Polyline.d.ts.map +1 -1
  134. package/format/Polyline.js +33 -37
  135. package/format/TextFeature.d.ts +22 -22
  136. package/format/TextFeature.d.ts.map +1 -1
  137. package/format/TextFeature.js +30 -30
  138. package/format/TopoJSON.d.ts +2 -2
  139. package/format/TopoJSON.d.ts.map +1 -1
  140. package/format/TopoJSON.js +13 -13
  141. package/format/WFS.d.ts +7 -7
  142. package/format/WFS.d.ts.map +1 -1
  143. package/format/WFS.js +15 -18
  144. package/format/WKB.d.ts +8 -8
  145. package/format/WKB.d.ts.map +1 -1
  146. package/format/WKB.js +21 -21
  147. package/format/WKT.d.ts +2 -2
  148. package/format/WKT.d.ts.map +1 -1
  149. package/format/WKT.js +25 -25
  150. package/format/WMSGetFeatureInfo.d.ts +2 -2
  151. package/format/WMSGetFeatureInfo.d.ts.map +1 -1
  152. package/format/WMSGetFeatureInfo.js +9 -9
  153. package/format/XMLFeature.d.ts +28 -28
  154. package/format/XMLFeature.d.ts.map +1 -1
  155. package/format/XMLFeature.js +44 -47
  156. package/format/filter/Bbox.d.ts +2 -2
  157. package/format/filter/Bbox.d.ts.map +1 -1
  158. package/format/filter/Bbox.js +3 -3
  159. package/format/filter/ComparisonBinary.d.ts +2 -2
  160. package/format/filter/ComparisonBinary.d.ts.map +1 -1
  161. package/format/filter/ComparisonBinary.js +3 -3
  162. package/format/filter/Contains.d.ts +2 -2
  163. package/format/filter/Contains.d.ts.map +1 -1
  164. package/format/filter/Contains.js +3 -3
  165. package/format/filter/DWithin.d.ts +2 -2
  166. package/format/filter/DWithin.d.ts.map +1 -1
  167. package/format/filter/DWithin.js +3 -3
  168. package/format/filter/Disjoint.d.ts +2 -2
  169. package/format/filter/Disjoint.d.ts.map +1 -1
  170. package/format/filter/Disjoint.js +3 -3
  171. package/format/filter/EqualTo.d.ts +2 -2
  172. package/format/filter/EqualTo.d.ts.map +1 -1
  173. package/format/filter/EqualTo.js +3 -3
  174. package/format/filter/Intersects.d.ts +2 -2
  175. package/format/filter/Intersects.d.ts.map +1 -1
  176. package/format/filter/Intersects.js +3 -3
  177. package/format/filter/IsLike.d.ts +5 -5
  178. package/format/filter/IsLike.d.ts.map +1 -1
  179. package/format/filter/IsLike.js +12 -12
  180. package/format/filter/NotEqualTo.d.ts +2 -2
  181. package/format/filter/NotEqualTo.d.ts.map +1 -1
  182. package/format/filter/NotEqualTo.js +3 -3
  183. package/format/filter/Spatial.d.ts +2 -2
  184. package/format/filter/Spatial.d.ts.map +1 -1
  185. package/format/filter/Spatial.js +3 -3
  186. package/format/filter/Within.d.ts +2 -2
  187. package/format/filter/Within.d.ts.map +1 -1
  188. package/format/filter/Within.js +3 -3
  189. package/format/filter.d.ts +21 -21
  190. package/format/filter.d.ts.map +1 -1
  191. package/format/filter.js +36 -36
  192. package/geom/Circle.d.ts +8 -8
  193. package/geom/Circle.d.ts.map +1 -1
  194. package/geom/Circle.js +13 -13
  195. package/geom/Geometry.d.ts +10 -10
  196. package/geom/Geometry.d.ts.map +1 -1
  197. package/geom/Geometry.js +16 -16
  198. package/geom/GeometryCollection.d.ts +2 -2
  199. package/geom/GeometryCollection.d.ts.map +1 -1
  200. package/geom/GeometryCollection.js +7 -8
  201. package/geom/LineString.d.ts +11 -11
  202. package/geom/LineString.d.ts.map +1 -1
  203. package/geom/LineString.js +17 -17
  204. package/geom/LinearRing.d.ts +5 -5
  205. package/geom/LinearRing.d.ts.map +1 -1
  206. package/geom/LinearRing.js +9 -9
  207. package/geom/MultiLineString.d.ts +14 -14
  208. package/geom/MultiLineString.d.ts.map +1 -1
  209. package/geom/MultiLineString.js +21 -21
  210. package/geom/MultiPoint.d.ts +5 -5
  211. package/geom/MultiPoint.d.ts.map +1 -1
  212. package/geom/MultiPoint.js +9 -9
  213. package/geom/MultiPolygon.d.ts +8 -8
  214. package/geom/MultiPolygon.d.ts.map +1 -1
  215. package/geom/MultiPolygon.js +22 -22
  216. package/geom/Point.d.ts +2 -2
  217. package/geom/Point.d.ts.map +1 -1
  218. package/geom/Point.js +6 -6
  219. package/geom/Polygon.d.ts +16 -16
  220. package/geom/Polygon.d.ts.map +1 -1
  221. package/geom/Polygon.js +28 -28
  222. package/geom/SimpleGeometry.d.ts +4 -4
  223. package/geom/SimpleGeometry.d.ts.map +1 -1
  224. package/geom/SimpleGeometry.js +8 -10
  225. package/geom/flat/closest.d.ts +6 -6
  226. package/geom/flat/closest.d.ts.map +1 -1
  227. package/geom/flat/closest.js +9 -9
  228. package/geom/flat/deflate.d.ts +4 -4
  229. package/geom/flat/deflate.d.ts.map +1 -1
  230. package/geom/flat/deflate.js +6 -6
  231. package/geom/flat/flip.d.ts +3 -3
  232. package/geom/flat/flip.d.ts.map +1 -1
  233. package/geom/flat/flip.js +6 -14
  234. package/geom/flat/inflate.d.ts +6 -6
  235. package/geom/flat/inflate.d.ts.map +1 -1
  236. package/geom/flat/inflate.js +9 -10
  237. package/geom/flat/interiorpoint.d.ts +2 -2
  238. package/geom/flat/interiorpoint.d.ts.map +1 -1
  239. package/geom/flat/interiorpoint.js +5 -5
  240. package/geom/flat/interpolate.d.ts +3 -3
  241. package/geom/flat/interpolate.d.ts.map +1 -1
  242. package/geom/flat/interpolate.js +6 -6
  243. package/geom/flat/orient.d.ts +12 -12
  244. package/geom/flat/orient.d.ts.map +1 -1
  245. package/geom/flat/orient.js +16 -18
  246. package/geom/flat/simplify.d.ts +2 -2
  247. package/geom/flat/simplify.d.ts.map +1 -1
  248. package/geom/flat/simplify.js +4 -6
  249. package/geom/flat/transform.d.ts +8 -8
  250. package/geom/flat/transform.d.ts.map +1 -1
  251. package/geom/flat/transform.js +16 -16
  252. package/interaction/DoubleClickZoom.d.ts +2 -2
  253. package/interaction/DoubleClickZoom.d.ts.map +1 -1
  254. package/interaction/DoubleClickZoom.js +3 -3
  255. package/interaction/DragAndDrop.d.ts +5 -5
  256. package/interaction/DragAndDrop.d.ts.map +1 -1
  257. package/interaction/DragAndDrop.js +8 -8
  258. package/interaction/DragBox.d.ts +2 -2
  259. package/interaction/DragBox.d.ts.map +1 -1
  260. package/interaction/DragBox.js +3 -3
  261. package/interaction/DragPan.d.ts +2 -2
  262. package/interaction/DragPan.d.ts.map +1 -1
  263. package/interaction/DragPan.js +3 -3
  264. package/interaction/DragRotate.d.ts +2 -2
  265. package/interaction/DragRotate.d.ts.map +1 -1
  266. package/interaction/DragRotate.js +3 -3
  267. package/interaction/DragRotateAndZoom.d.ts +2 -2
  268. package/interaction/DragRotateAndZoom.d.ts.map +1 -1
  269. package/interaction/DragRotateAndZoom.js +3 -3
  270. package/interaction/DragZoom.d.ts +2 -2
  271. package/interaction/DragZoom.d.ts.map +1 -1
  272. package/interaction/DragZoom.js +3 -3
  273. package/interaction/Draw.d.ts +3 -3
  274. package/interaction/Draw.d.ts.map +1 -1
  275. package/interaction/Draw.js +15 -13
  276. package/interaction/Extent.d.ts +2 -2
  277. package/interaction/Extent.d.ts.map +1 -1
  278. package/interaction/Extent.js +13 -13
  279. package/interaction/Interaction.d.ts +7 -7
  280. package/interaction/Interaction.d.ts.map +1 -1
  281. package/interaction/Interaction.js +12 -12
  282. package/interaction/KeyboardPan.d.ts +2 -2
  283. package/interaction/KeyboardPan.d.ts.map +1 -1
  284. package/interaction/KeyboardPan.js +3 -3
  285. package/interaction/KeyboardZoom.d.ts +2 -2
  286. package/interaction/KeyboardZoom.d.ts.map +1 -1
  287. package/interaction/KeyboardZoom.js +3 -3
  288. package/interaction/Link.d.ts +2 -2
  289. package/interaction/Link.d.ts.map +1 -1
  290. package/interaction/Link.js +4 -4
  291. package/interaction/Modify.d.ts +1 -1
  292. package/interaction/Modify.js +3 -3
  293. package/interaction/MouseWheelZoom.d.ts +2 -2
  294. package/interaction/MouseWheelZoom.d.ts.map +1 -1
  295. package/interaction/MouseWheelZoom.js +3 -3
  296. package/interaction/PinchRotate.d.ts +2 -2
  297. package/interaction/PinchRotate.d.ts.map +1 -1
  298. package/interaction/PinchRotate.js +3 -3
  299. package/interaction/PinchZoom.d.ts +2 -2
  300. package/interaction/PinchZoom.d.ts.map +1 -1
  301. package/interaction/PinchZoom.js +3 -3
  302. package/interaction/Pointer.d.ts +2 -2
  303. package/interaction/Pointer.d.ts.map +1 -1
  304. package/interaction/Pointer.js +3 -3
  305. package/interaction/Select.d.ts +2 -2
  306. package/interaction/Select.d.ts.map +1 -1
  307. package/interaction/Select.js +3 -3
  308. package/interaction/Snap.d.ts +6 -6
  309. package/interaction/Snap.d.ts.map +1 -1
  310. package/interaction/Snap.js +9 -9
  311. package/interaction/Translate.d.ts +2 -2
  312. package/interaction/Translate.d.ts.map +1 -1
  313. package/interaction/Translate.js +3 -3
  314. package/interaction/defaults.d.ts +2 -2
  315. package/interaction/defaults.d.ts.map +1 -1
  316. package/interaction/defaults.js +3 -3
  317. package/layer/Base.d.ts +8 -8
  318. package/layer/Base.d.ts.map +1 -1
  319. package/layer/Base.js +10 -10
  320. package/layer/BaseImage.d.ts +2 -2
  321. package/layer/BaseImage.d.ts.map +1 -1
  322. package/layer/BaseImage.js +3 -3
  323. package/layer/BaseTile.d.ts +2 -2
  324. package/layer/BaseTile.d.ts.map +1 -1
  325. package/layer/BaseTile.js +3 -3
  326. package/layer/BaseVector.d.ts +4 -4
  327. package/layer/BaseVector.d.ts.map +1 -1
  328. package/layer/BaseVector.js +21 -21
  329. package/layer/Graticule.d.ts +2 -2
  330. package/layer/Graticule.d.ts.map +1 -1
  331. package/layer/Graticule.js +6 -10
  332. package/layer/Group.d.ts +2 -2
  333. package/layer/Group.d.ts.map +1 -1
  334. package/layer/Group.js +11 -11
  335. package/layer/Heatmap.d.ts +2 -2
  336. package/layer/Heatmap.d.ts.map +1 -1
  337. package/layer/Heatmap.js +3 -3
  338. package/layer/Image.d.ts +2 -2
  339. package/layer/Image.d.ts.map +1 -1
  340. package/layer/Image.js +3 -3
  341. package/layer/Layer.js +6 -6
  342. package/layer/Tile.d.ts +2 -2
  343. package/layer/Tile.d.ts.map +1 -1
  344. package/layer/Tile.js +3 -3
  345. package/layer/Vector.d.ts +2 -2
  346. package/layer/Vector.d.ts.map +1 -1
  347. package/layer/Vector.js +3 -3
  348. package/layer/VectorImage.d.ts +2 -2
  349. package/layer/VectorImage.d.ts.map +1 -1
  350. package/layer/VectorImage.js +3 -3
  351. package/layer/VectorTile.d.ts +3 -3
  352. package/layer/VectorTile.d.ts.map +1 -1
  353. package/layer/VectorTile.js +4 -4
  354. package/layer/WebGLTile.d.ts +2 -2
  355. package/layer/WebGLTile.d.ts.map +1 -1
  356. package/layer/WebGLTile.js +3 -3
  357. package/net.d.ts +3 -3
  358. package/net.d.ts.map +1 -1
  359. package/net.js +6 -6
  360. package/package.json +1 -1
  361. package/proj/epsg3857.d.ts +6 -6
  362. package/proj/epsg3857.d.ts.map +1 -1
  363. package/proj/epsg3857.js +8 -10
  364. package/proj/epsg4326.js +3 -3
  365. package/proj.d.ts +16 -16
  366. package/proj.d.ts.map +1 -1
  367. package/proj.js +38 -39
  368. package/render/Event.d.ts +4 -4
  369. package/render/Event.d.ts.map +1 -1
  370. package/render/Event.js +7 -7
  371. package/render/Feature.d.ts +4 -4
  372. package/render/Feature.d.ts.map +1 -1
  373. package/render/Feature.js +6 -6
  374. package/render/VectorContext.d.ts +4 -4
  375. package/render/VectorContext.d.ts.map +1 -1
  376. package/render/VectorContext.js +4 -4
  377. package/render/canvas/Executor.d.ts +8 -8
  378. package/render/canvas/Executor.d.ts.map +1 -1
  379. package/render/canvas/Executor.js +31 -33
  380. package/render/canvas/ExecutorGroup.d.ts +5 -5
  381. package/render/canvas/ExecutorGroup.d.ts.map +1 -1
  382. package/render/canvas/ExecutorGroup.js +10 -10
  383. package/render/canvas/ImageBuilder.d.ts +2 -2
  384. package/render/canvas/ImageBuilder.d.ts.map +1 -1
  385. package/render/canvas/ImageBuilder.js +3 -3
  386. package/render/canvas/Immediate.d.ts +3 -3
  387. package/render/canvas/Immediate.d.ts.map +1 -1
  388. package/render/canvas/Immediate.js +6 -6
  389. package/render/canvas/TextBuilder.d.ts +2 -2
  390. package/render/canvas/TextBuilder.d.ts.map +1 -1
  391. package/render/canvas/TextBuilder.js +3 -3
  392. package/render/webgl/utils.d.ts +2 -2
  393. package/render/webgl/utils.d.ts.map +1 -1
  394. package/render/webgl/utils.js +3 -3
  395. package/render.d.ts +2 -2
  396. package/render.d.ts.map +1 -1
  397. package/render.js +3 -3
  398. package/renderer/canvas/Layer.d.ts +2 -2
  399. package/renderer/canvas/Layer.d.ts.map +1 -1
  400. package/renderer/canvas/Layer.js +6 -6
  401. package/renderer/canvas/TileLayer.d.ts +2 -2
  402. package/renderer/canvas/TileLayer.d.ts.map +1 -1
  403. package/renderer/canvas/TileLayer.js +4 -4
  404. package/renderer/canvas/VectorLayer.d.ts +5 -5
  405. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  406. package/renderer/canvas/VectorLayer.js +11 -11
  407. package/renderer/canvas/VectorTileLayer.d.ts +2 -2
  408. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  409. package/renderer/canvas/VectorTileLayer.js +4 -4
  410. package/renderer/vector.d.ts +3 -3
  411. package/renderer/vector.d.ts.map +1 -1
  412. package/renderer/vector.js +42 -42
  413. package/renderer/webgl/Layer.d.ts +2 -2
  414. package/renderer/webgl/Layer.d.ts.map +1 -1
  415. package/renderer/webgl/Layer.js +3 -3
  416. package/reproj/Tile.d.ts +4 -4
  417. package/reproj/Tile.d.ts.map +1 -1
  418. package/reproj/Tile.js +9 -9
  419. package/reproj/Triangulation.d.ts +2 -2
  420. package/reproj/Triangulation.d.ts.map +1 -1
  421. package/reproj/Triangulation.js +4 -7
  422. package/reproj.d.ts +3 -3
  423. package/reproj.d.ts.map +1 -1
  424. package/reproj.js +8 -8
  425. package/resolutionconstraint.d.ts +13 -13
  426. package/resolutionconstraint.d.ts.map +1 -1
  427. package/resolutionconstraint.js +44 -43
  428. package/rotationconstraint.d.ts +2 -2
  429. package/rotationconstraint.d.ts.map +1 -1
  430. package/rotationconstraint.js +9 -9
  431. package/size.d.ts +6 -6
  432. package/size.d.ts.map +1 -1
  433. package/size.js +21 -21
  434. package/source/Cluster.js +3 -3
  435. package/source/IIIF.d.ts +2 -2
  436. package/source/IIIF.d.ts.map +1 -1
  437. package/source/IIIF.js +26 -26
  438. package/source/ImageArcGISRest.d.ts +2 -2
  439. package/source/ImageArcGISRest.d.ts.map +1 -1
  440. package/source/ImageArcGISRest.js +3 -3
  441. package/source/ImageCanvas.d.ts +2 -2
  442. package/source/ImageCanvas.d.ts.map +1 -1
  443. package/source/ImageCanvas.js +3 -3
  444. package/source/ImageWMS.d.ts +7 -7
  445. package/source/ImageWMS.d.ts.map +1 -1
  446. package/source/ImageWMS.js +5 -5
  447. package/source/OSM.d.ts +2 -2
  448. package/source/OSM.d.ts.map +1 -1
  449. package/source/OSM.js +3 -3
  450. package/source/Raster.d.ts +2 -2
  451. package/source/Raster.d.ts.map +1 -1
  452. package/source/Raster.js +3 -3
  453. package/source/Tile.d.ts +2 -2
  454. package/source/Tile.d.ts.map +1 -1
  455. package/source/Tile.js +3 -4
  456. package/source/TileArcGISRest.d.ts +2 -2
  457. package/source/TileArcGISRest.d.ts.map +1 -1
  458. package/source/TileArcGISRest.js +3 -3
  459. package/source/TileDebug.d.ts +2 -2
  460. package/source/TileDebug.d.ts.map +1 -1
  461. package/source/TileDebug.js +3 -3
  462. package/source/TileWMS.d.ts +2 -2
  463. package/source/TileWMS.d.ts.map +1 -1
  464. package/source/TileWMS.js +3 -3
  465. package/source/UTFGrid.d.ts +6 -6
  466. package/source/UTFGrid.d.ts.map +1 -1
  467. package/source/UTFGrid.js +9 -14
  468. package/source/Vector.d.ts +13 -13
  469. package/source/Vector.d.ts.map +1 -1
  470. package/source/Vector.js +21 -22
  471. package/source/XYZ.d.ts +2 -2
  472. package/source/XYZ.d.ts.map +1 -1
  473. package/source/XYZ.js +3 -3
  474. package/source/Zoomify.d.ts +4 -4
  475. package/source/Zoomify.d.ts.map +1 -1
  476. package/source/Zoomify.js +5 -7
  477. package/sphere.d.ts +8 -8
  478. package/sphere.d.ts.map +1 -1
  479. package/sphere.js +14 -14
  480. package/string.d.ts +2 -2
  481. package/string.d.ts.map +1 -1
  482. package/string.js +3 -3
  483. package/structs/LRUCache.d.ts +4 -4
  484. package/structs/LRUCache.d.ts.map +1 -1
  485. package/structs/LRUCache.js +5 -6
  486. package/structs/LinkedList.d.ts +2 -2
  487. package/structs/LinkedList.d.ts.map +1 -1
  488. package/structs/LinkedList.js +3 -3
  489. package/structs/RBush.d.ts +4 -4
  490. package/structs/RBush.d.ts.map +1 -1
  491. package/structs/RBush.js +6 -12
  492. package/style/Circle.d.ts +2 -2
  493. package/style/Circle.d.ts.map +1 -1
  494. package/style/Circle.js +3 -3
  495. package/style/Fill.d.ts +2 -2
  496. package/style/Fill.d.ts.map +1 -1
  497. package/style/Fill.js +3 -3
  498. package/style/Icon.d.ts +2 -2
  499. package/style/Icon.d.ts.map +1 -1
  500. package/style/Icon.js +3 -3
  501. package/style/Stroke.d.ts +2 -2
  502. package/style/Stroke.d.ts.map +1 -1
  503. package/style/Stroke.js +3 -3
  504. package/style/Style.d.ts +2 -2
  505. package/style/Style.d.ts.map +1 -1
  506. package/style/Style.js +3 -3
  507. package/style/Text.d.ts +2 -2
  508. package/style/Text.d.ts.map +1 -1
  509. package/style/Text.js +3 -3
  510. package/style/expressions.js +7 -7
  511. package/tilecoord.d.ts +2 -2
  512. package/tilecoord.d.ts.map +1 -1
  513. package/tilecoord.js +7 -7
  514. package/tilegrid/TileGrid.d.ts +14 -14
  515. package/tilegrid/TileGrid.js +28 -28
  516. package/tilegrid/WMTS.d.ts +3 -3
  517. package/tilegrid/WMTS.d.ts.map +1 -1
  518. package/tilegrid/WMTS.js +6 -6
  519. package/tilegrid.d.ts +10 -10
  520. package/tilegrid.d.ts.map +1 -1
  521. package/tilegrid.js +24 -36
  522. package/util.js +1 -1
  523. package/webgl/Buffer.d.ts +2 -2
  524. package/webgl/Buffer.d.ts.map +1 -1
  525. package/webgl/Buffer.js +3 -3
  526. package/webgl/Helper.d.ts +9 -9
  527. package/webgl/Helper.d.ts.map +1 -1
  528. package/webgl/Helper.js +15 -28
  529. package/webgl/RenderTarget.d.ts +2 -2
  530. package/webgl/RenderTarget.d.ts.map +1 -1
  531. package/webgl/RenderTarget.js +3 -3
  532. package/webgl.d.ts +2 -2
  533. package/webgl.d.ts.map +1 -1
  534. package/webgl.js +4 -4
  535. package/xml.d.ts +37 -37
  536. package/xml.d.ts.map +1 -1
  537. package/xml.js +63 -82
package/View.js CHANGED
@@ -288,7 +288,7 @@ const DEFAULT_MIN_ZOOM = 0;
288
288
  * A consequence of this is that, when applying a delta on the view state, one
289
289
  * should use `adjustCenter`, `adjustRotation`, `adjustZoom` and `adjustResolution`
290
290
  * rather than the corresponding setters. This will let view do its internal
291
- * computations. Besides, the `adjust*` methods also take an `opt_anchor`
291
+ * computations. Besides, the `adjust*` methods also take an `anchor`
292
292
  * argument which allows specifying an origin for the transformation.
293
293
  *
294
294
  * ### Interacting with the view
@@ -303,9 +303,9 @@ const DEFAULT_MIN_ZOOM = 0;
303
303
  */
304
304
  class View extends BaseObject {
305
305
  /**
306
- * @param {ViewOptions} [opt_options] View options.
306
+ * @param {ViewOptions} [options] View options.
307
307
  */
308
- constructor(opt_options) {
308
+ constructor(options) {
309
309
  super();
310
310
 
311
311
  /***
@@ -323,7 +323,7 @@ class View extends BaseObject {
323
323
  */
324
324
  this.un;
325
325
 
326
- const options = Object.assign({}, opt_options);
326
+ options = Object.assign({}, options);
327
327
 
328
328
  /**
329
329
  * @private
@@ -896,19 +896,17 @@ class View extends BaseObject {
896
896
  /**
897
897
  * Returns the current viewport size.
898
898
  * @private
899
- * @param {number} [opt_rotation] Take into account the rotation of the viewport when giving the size
899
+ * @param {number} [rotation] Take into account the rotation of the viewport when giving the size
900
900
  * @return {import("./size.js").Size} Viewport size or `[100, 100]` when no viewport is found.
901
901
  */
902
- getViewportSize_(opt_rotation) {
902
+ getViewportSize_(rotation) {
903
903
  const size = this.viewportSize_;
904
- if (opt_rotation) {
904
+ if (rotation) {
905
905
  const w = size[0];
906
906
  const h = size[1];
907
907
  return [
908
- Math.abs(w * Math.cos(opt_rotation)) +
909
- Math.abs(h * Math.sin(opt_rotation)),
910
- Math.abs(w * Math.sin(opt_rotation)) +
911
- Math.abs(h * Math.cos(opt_rotation)),
908
+ Math.abs(w * Math.cos(rotation)) + Math.abs(h * Math.sin(rotation)),
909
+ Math.abs(w * Math.sin(rotation)) + Math.abs(h * Math.cos(rotation)),
912
910
  ];
913
911
  } else {
914
912
  return size;
@@ -920,12 +918,10 @@ class View extends BaseObject {
920
918
  * to avoid performance hit and layout reflow.
921
919
  * This should be done on map size change.
922
920
  * Note: the constraints are not resolved during an animation to avoid stopping it
923
- * @param {import("./size.js").Size} [opt_size] Viewport size; if undefined, [100, 100] is assumed
921
+ * @param {import("./size.js").Size} [size] Viewport size; if undefined, [100, 100] is assumed
924
922
  */
925
- setViewportSize(opt_size) {
926
- this.viewportSize_ = Array.isArray(opt_size)
927
- ? opt_size.slice()
928
- : [100, 100];
923
+ setViewportSize(size) {
924
+ this.viewportSize_ = Array.isArray(size) ? size.slice() : [100, 100];
929
925
  if (!this.getAnimating()) {
930
926
  this.resolveConstraints(0);
931
927
  }
@@ -970,14 +966,14 @@ class View extends BaseObject {
970
966
  }
971
967
 
972
968
  /**
973
- * @param {Array<number>} [opt_hints] Destination array.
969
+ * @param {Array<number>} [hints] Destination array.
974
970
  * @return {Array<number>} Hint.
975
971
  */
976
- getHints(opt_hints) {
977
- if (opt_hints !== undefined) {
978
- opt_hints[0] = this.hints_[0];
979
- opt_hints[1] = this.hints_[1];
980
- return opt_hints;
972
+ getHints(hints) {
973
+ if (hints !== undefined) {
974
+ hints[0] = this.hints_[0];
975
+ hints[1] = this.hints_[1];
976
+ return hints;
981
977
  } else {
982
978
  return this.hints_.slice();
983
979
  }
@@ -988,23 +984,23 @@ class View extends BaseObject {
988
984
  * The size is the pixel dimensions of the box into which the calculated extent
989
985
  * should fit. In most cases you want to get the extent of the entire map,
990
986
  * that is `map.getSize()`.
991
- * @param {import("./size.js").Size} [opt_size] Box pixel size. If not provided, the size
987
+ * @param {import("./size.js").Size} [size] Box pixel size. If not provided, the size
992
988
  * of the map that uses this view will be used.
993
989
  * @return {import("./extent.js").Extent} Extent.
994
990
  * @api
995
991
  */
996
- calculateExtent(opt_size) {
997
- const extent = this.calculateExtentInternal(opt_size);
992
+ calculateExtent(size) {
993
+ const extent = this.calculateExtentInternal(size);
998
994
  return toUserExtent(extent, this.getProjection());
999
995
  }
1000
996
 
1001
997
  /**
1002
- * @param {import("./size.js").Size} [opt_size] Box pixel size. If not provided,
998
+ * @param {import("./size.js").Size} [size] Box pixel size. If not provided,
1003
999
  * the map's last known viewport size will be used.
1004
1000
  * @return {import("./extent.js").Extent} Extent.
1005
1001
  */
1006
- calculateExtentInternal(opt_size) {
1007
- const size = opt_size || this.getViewportSizeMinusPadding_();
1002
+ calculateExtentInternal(size) {
1003
+ size = size || this.getViewportSizeMinusPadding_();
1008
1004
  const center = /** @type {!import("./coordinate.js").Coordinate} */ (
1009
1005
  this.getCenterInternal()
1010
1006
  );
@@ -1116,27 +1112,27 @@ class View extends BaseObject {
1116
1112
  /**
1117
1113
  * Get the resolution for a provided extent (in map units) and size (in pixels).
1118
1114
  * @param {import("./extent.js").Extent} extent Extent.
1119
- * @param {import("./size.js").Size} [opt_size] Box pixel size.
1115
+ * @param {import("./size.js").Size} [size] Box pixel size.
1120
1116
  * @return {number} The resolution at which the provided extent will render at
1121
1117
  * the given size.
1122
1118
  * @api
1123
1119
  */
1124
- getResolutionForExtent(extent, opt_size) {
1120
+ getResolutionForExtent(extent, size) {
1125
1121
  return this.getResolutionForExtentInternal(
1126
1122
  fromUserExtent(extent, this.getProjection()),
1127
- opt_size
1123
+ size
1128
1124
  );
1129
1125
  }
1130
1126
 
1131
1127
  /**
1132
1128
  * Get the resolution for a provided extent (in map units) and size (in pixels).
1133
1129
  * @param {import("./extent.js").Extent} extent Extent.
1134
- * @param {import("./size.js").Size} [opt_size] Box pixel size.
1130
+ * @param {import("./size.js").Size} [size] Box pixel size.
1135
1131
  * @return {number} The resolution at which the provided extent will render at
1136
1132
  * the given size.
1137
1133
  */
1138
- getResolutionForExtentInternal(extent, opt_size) {
1139
- const size = opt_size || this.getViewportSizeMinusPadding_();
1134
+ getResolutionForExtentInternal(extent, size) {
1135
+ size = size || this.getViewportSizeMinusPadding_();
1140
1136
  const xResolution = getWidth(extent) / size[0];
1141
1137
  const yResolution = getHeight(extent) / size[1];
1142
1138
  return Math.max(xResolution, yResolution);
@@ -1145,11 +1141,11 @@ class View extends BaseObject {
1145
1141
  /**
1146
1142
  * Return a function that returns a value between 0 and 1 for a
1147
1143
  * resolution. Exponential scaling is assumed.
1148
- * @param {number} [opt_power] Power.
1144
+ * @param {number} [power] Power.
1149
1145
  * @return {function(number): number} Resolution for value function.
1150
1146
  */
1151
- getResolutionForValueFunction(opt_power) {
1152
- const power = opt_power || 2;
1147
+ getResolutionForValueFunction(power) {
1148
+ power = power || 2;
1153
1149
  const maxResolution = this.getConstrainedResolution(this.maxResolution_);
1154
1150
  const minResolution = this.minResolution_;
1155
1151
  const max = Math.log(maxResolution / minResolution) / Math.log(power);
@@ -1178,11 +1174,11 @@ class View extends BaseObject {
1178
1174
  /**
1179
1175
  * Return a function that returns a resolution for a value between
1180
1176
  * 0 and 1. Exponential scaling is assumed.
1181
- * @param {number} [opt_power] Power.
1177
+ * @param {number} [power] Power.
1182
1178
  * @return {function(number): number} Value for resolution function.
1183
1179
  */
1184
- getValueForResolutionFunction(opt_power) {
1185
- const logPower = Math.log(opt_power || 2);
1180
+ getValueForResolutionFunction(power) {
1181
+ const logPower = Math.log(power || 2);
1186
1182
  const maxResolution = this.getConstrainedResolution(this.maxResolution_);
1187
1183
  const minResolution = this.minResolution_;
1188
1184
  const max = Math.log(maxResolution / minResolution) / logPower;
@@ -1201,11 +1197,11 @@ class View extends BaseObject {
1201
1197
  /**
1202
1198
  * Returns the size of the viewport minus padding.
1203
1199
  * @private
1204
- * @param {number} [opt_rotation] Take into account the rotation of the viewport when giving the size
1200
+ * @param {number} [rotation] Take into account the rotation of the viewport when giving the size
1205
1201
  * @return {import("./size.js").Size} Viewport size reduced by the padding.
1206
1202
  */
1207
- getViewportSizeMinusPadding_(opt_rotation) {
1208
- let size = this.getViewportSize_(opt_rotation);
1203
+ getViewportSizeMinusPadding_(rotation) {
1204
+ let size = this.getViewportSize_(rotation);
1209
1205
  const padding = this.padding_;
1210
1206
  if (padding) {
1211
1207
  size = [
@@ -1326,10 +1322,10 @@ class View extends BaseObject {
1326
1322
  * Takes care of the map angle.
1327
1323
  * @param {import("./geom/SimpleGeometry.js").default|import("./extent.js").Extent} geometryOrExtent The geometry or
1328
1324
  * extent to fit the view to.
1329
- * @param {FitOptions} [opt_options] Options.
1325
+ * @param {FitOptions} [options] Options.
1330
1326
  * @api
1331
1327
  */
1332
- fit(geometryOrExtent, opt_options) {
1328
+ fit(geometryOrExtent, options) {
1333
1329
  /** @type {import("./geom/SimpleGeometry.js").default} */
1334
1330
  let geometry;
1335
1331
  assert(
@@ -1362,7 +1358,7 @@ class View extends BaseObject {
1362
1358
  }
1363
1359
  }
1364
1360
 
1365
- this.fitInternal(geometry, opt_options);
1361
+ this.fitInternal(geometry, options);
1366
1362
  }
1367
1363
 
1368
1364
  /**
@@ -1393,10 +1389,10 @@ class View extends BaseObject {
1393
1389
 
1394
1390
  /**
1395
1391
  * @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
1396
- * @param {FitOptions} [opt_options] Options.
1392
+ * @param {FitOptions} [options] Options.
1397
1393
  */
1398
- fitInternal(geometry, opt_options) {
1399
- const options = opt_options || {};
1394
+ fitInternal(geometry, options) {
1395
+ options = options || {};
1400
1396
  let size = options.size;
1401
1397
  if (!size) {
1402
1398
  size = this.getViewportSizeMinusPadding_();
@@ -1551,12 +1547,11 @@ class View extends BaseObject {
1551
1547
  * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
1552
1548
  * constraint will apply.
1553
1549
  * @param {number} ratio The ratio to apply on the view resolution.
1554
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The origin of the transformation.
1550
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1555
1551
  * @api
1556
1552
  */
1557
- adjustResolution(ratio, opt_anchor) {
1558
- const anchor =
1559
- opt_anchor && fromUserCoordinate(opt_anchor, this.getProjection());
1553
+ adjustResolution(ratio, anchor) {
1554
+ anchor = anchor && fromUserCoordinate(anchor, this.getProjection());
1560
1555
  this.adjustResolutionInternal(ratio, anchor);
1561
1556
  }
1562
1557
 
@@ -1564,9 +1559,9 @@ class View extends BaseObject {
1564
1559
  * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
1565
1560
  * constraint will apply.
1566
1561
  * @param {number} ratio The ratio to apply on the view resolution.
1567
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The origin of the transformation.
1562
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1568
1563
  */
1569
- adjustResolutionInternal(ratio, opt_anchor) {
1564
+ adjustResolutionInternal(ratio, anchor) {
1570
1565
  const isMoving = this.getAnimating() || this.getInteracting();
1571
1566
  const size = this.getViewportSize_(this.getRotation());
1572
1567
  const newResolution = this.constraints_.resolution(
@@ -1576,8 +1571,8 @@ class View extends BaseObject {
1576
1571
  isMoving
1577
1572
  );
1578
1573
 
1579
- if (opt_anchor) {
1580
- this.targetCenter_ = this.calculateCenterZoom(newResolution, opt_anchor);
1574
+ if (anchor) {
1575
+ this.targetCenter_ = this.calculateCenterZoom(newResolution, anchor);
1581
1576
  }
1582
1577
 
1583
1578
  this.targetResolution_ *= ratio;
@@ -1588,39 +1583,39 @@ class View extends BaseObject {
1588
1583
  * Adds a value to the view zoom level, optionally using an anchor. Any resolution
1589
1584
  * constraint will apply.
1590
1585
  * @param {number} delta Relative value to add to the zoom level.
1591
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The origin of the transformation.
1586
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1592
1587
  * @api
1593
1588
  */
1594
- adjustZoom(delta, opt_anchor) {
1595
- this.adjustResolution(Math.pow(this.zoomFactor_, -delta), opt_anchor);
1589
+ adjustZoom(delta, anchor) {
1590
+ this.adjustResolution(Math.pow(this.zoomFactor_, -delta), anchor);
1596
1591
  }
1597
1592
 
1598
1593
  /**
1599
1594
  * Adds a value to the view rotation, optionally using an anchor. Any rotation
1600
1595
  * constraint will apply.
1601
1596
  * @param {number} delta Relative value to add to the zoom rotation, in radians.
1602
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The rotation center.
1597
+ * @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
1603
1598
  * @api
1604
1599
  */
1605
- adjustRotation(delta, opt_anchor) {
1606
- if (opt_anchor) {
1607
- opt_anchor = fromUserCoordinate(opt_anchor, this.getProjection());
1600
+ adjustRotation(delta, anchor) {
1601
+ if (anchor) {
1602
+ anchor = fromUserCoordinate(anchor, this.getProjection());
1608
1603
  }
1609
- this.adjustRotationInternal(delta, opt_anchor);
1604
+ this.adjustRotationInternal(delta, anchor);
1610
1605
  }
1611
1606
 
1612
1607
  /**
1613
1608
  * @param {number} delta Relative value to add to the zoom rotation, in radians.
1614
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The rotation center.
1609
+ * @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
1615
1610
  */
1616
- adjustRotationInternal(delta, opt_anchor) {
1611
+ adjustRotationInternal(delta, anchor) {
1617
1612
  const isMoving = this.getAnimating() || this.getInteracting();
1618
1613
  const newRotation = this.constraints_.rotation(
1619
1614
  this.targetRotation_ + delta,
1620
1615
  isMoving
1621
1616
  );
1622
- if (opt_anchor) {
1623
- this.targetCenter_ = this.calculateCenterRotate(newRotation, opt_anchor);
1617
+ if (anchor) {
1618
+ this.targetCenter_ = this.calculateCenterRotate(newRotation, anchor);
1624
1619
  }
1625
1620
  this.targetRotation_ += delta;
1626
1621
  this.applyTargetState_();
@@ -1693,13 +1688,13 @@ class View extends BaseObject {
1693
1688
  * Recompute rotation/resolution/center based on target values.
1694
1689
  * Note: we have to compute rotation first, then resolution and center considering that
1695
1690
  * parameters can influence one another in case a view extent constraint is present.
1696
- * @param {boolean} [opt_doNotCancelAnims] Do not cancel animations.
1697
- * @param {boolean} [opt_forceMoving] Apply constraints as if the view is moving.
1691
+ * @param {boolean} [doNotCancelAnims] Do not cancel animations.
1692
+ * @param {boolean} [forceMoving] Apply constraints as if the view is moving.
1698
1693
  * @private
1699
1694
  */
1700
- applyTargetState_(opt_doNotCancelAnims, opt_forceMoving) {
1695
+ applyTargetState_(doNotCancelAnims, forceMoving) {
1701
1696
  const isMoving =
1702
- this.getAnimating() || this.getInteracting() || opt_forceMoving;
1697
+ this.getAnimating() || this.getInteracting() || forceMoving;
1703
1698
 
1704
1699
  // compute rotation
1705
1700
  const newRotation = this.constraints_.rotation(
@@ -1741,7 +1736,7 @@ class View extends BaseObject {
1741
1736
  this.set(ViewProperty.CENTER, newCenter);
1742
1737
  }
1743
1738
 
1744
- if (this.getAnimating() && !opt_doNotCancelAnims) {
1739
+ if (this.getAnimating() && !doNotCancelAnims) {
1745
1740
  this.cancelAnimations();
1746
1741
  }
1747
1742
  this.cancelAnchor_ = undefined;
@@ -1752,13 +1747,13 @@ class View extends BaseObject {
1752
1747
  * This is typically done on interaction end.
1753
1748
  * Note: calling this with a duration of 0 will apply the constrained values straight away,
1754
1749
  * without animation.
1755
- * @param {number} [opt_duration] The animation duration in ms.
1756
- * @param {number} [opt_resolutionDirection] Which direction to zoom.
1757
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The origin of the transformation.
1750
+ * @param {number} [duration] The animation duration in ms.
1751
+ * @param {number} [resolutionDirection] Which direction to zoom.
1752
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1758
1753
  */
1759
- resolveConstraints(opt_duration, opt_resolutionDirection, opt_anchor) {
1760
- const duration = opt_duration !== undefined ? opt_duration : 200;
1761
- const direction = opt_resolutionDirection || 0;
1754
+ resolveConstraints(duration, resolutionDirection, anchor) {
1755
+ duration = duration !== undefined ? duration : 200;
1756
+ const direction = resolutionDirection || 0;
1762
1757
 
1763
1758
  const newRotation = this.constraints_.rotation(this.targetRotation_);
1764
1759
  const size = this.getViewportSize_(newRotation);
@@ -1788,8 +1783,7 @@ class View extends BaseObject {
1788
1783
  return;
1789
1784
  }
1790
1785
 
1791
- const anchor =
1792
- opt_anchor || (duration === 0 ? this.cancelAnchor_ : undefined);
1786
+ anchor = anchor || (duration === 0 ? this.cancelAnchor_ : undefined);
1793
1787
  this.cancelAnchor_ = undefined;
1794
1788
 
1795
1789
  if (
@@ -1828,42 +1822,41 @@ class View extends BaseObject {
1828
1822
  /**
1829
1823
  * Notify the View that an interaction has ended. The view state will be resolved
1830
1824
  * to a stable one if needed (depending on its constraints).
1831
- * @param {number} [opt_duration] Animation duration in ms.
1832
- * @param {number} [opt_resolutionDirection] Which direction to zoom.
1833
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The origin of the transformation.
1825
+ * @param {number} [duration] Animation duration in ms.
1826
+ * @param {number} [resolutionDirection] Which direction to zoom.
1827
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1834
1828
  * @api
1835
1829
  */
1836
- endInteraction(opt_duration, opt_resolutionDirection, opt_anchor) {
1837
- const anchor =
1838
- opt_anchor && fromUserCoordinate(opt_anchor, this.getProjection());
1839
- this.endInteractionInternal(opt_duration, opt_resolutionDirection, anchor);
1830
+ endInteraction(duration, resolutionDirection, anchor) {
1831
+ anchor = anchor && fromUserCoordinate(anchor, this.getProjection());
1832
+ this.endInteractionInternal(duration, resolutionDirection, anchor);
1840
1833
  }
1841
1834
 
1842
1835
  /**
1843
1836
  * Notify the View that an interaction has ended. The view state will be resolved
1844
1837
  * to a stable one if needed (depending on its constraints).
1845
- * @param {number} [opt_duration] Animation duration in ms.
1846
- * @param {number} [opt_resolutionDirection] Which direction to zoom.
1847
- * @param {import("./coordinate.js").Coordinate} [opt_anchor] The origin of the transformation.
1838
+ * @param {number} [duration] Animation duration in ms.
1839
+ * @param {number} [resolutionDirection] Which direction to zoom.
1840
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1848
1841
  */
1849
- endInteractionInternal(opt_duration, opt_resolutionDirection, opt_anchor) {
1842
+ endInteractionInternal(duration, resolutionDirection, anchor) {
1850
1843
  this.setHint(ViewHint.INTERACTING, -1);
1851
1844
 
1852
- this.resolveConstraints(opt_duration, opt_resolutionDirection, opt_anchor);
1845
+ this.resolveConstraints(duration, resolutionDirection, anchor);
1853
1846
  }
1854
1847
 
1855
1848
  /**
1856
1849
  * Get a valid position for the view center according to the current constraints.
1857
1850
  * @param {import("./coordinate.js").Coordinate|undefined} targetCenter Target center position.
1858
- * @param {number} [opt_targetResolution] Target resolution. If not supplied, the current one will be used.
1851
+ * @param {number} [targetResolution] Target resolution. If not supplied, the current one will be used.
1859
1852
  * This is useful to guess a valid center position at a different zoom level.
1860
1853
  * @return {import("./coordinate.js").Coordinate|undefined} Valid center position.
1861
1854
  */
1862
- getConstrainedCenter(targetCenter, opt_targetResolution) {
1855
+ getConstrainedCenter(targetCenter, targetResolution) {
1863
1856
  const size = this.getViewportSize_(this.getRotation());
1864
1857
  return this.constraints_.center(
1865
1858
  targetCenter,
1866
- opt_targetResolution || this.getResolution(),
1859
+ targetResolution || this.getResolution(),
1867
1860
  size
1868
1861
  );
1869
1862
  }
@@ -1871,30 +1864,30 @@ class View extends BaseObject {
1871
1864
  /**
1872
1865
  * Get a valid zoom level according to the current view constraints.
1873
1866
  * @param {number|undefined} targetZoom Target zoom.
1874
- * @param {number} [opt_direction=0] Indicate which resolution should be used
1867
+ * @param {number} [direction=0] Indicate which resolution should be used
1875
1868
  * by a renderer if the view resolution does not match any resolution of the tile source.
1876
1869
  * If 0, the nearest resolution will be used. If 1, the nearest lower resolution
1877
1870
  * will be used. If -1, the nearest higher resolution will be used.
1878
1871
  * @return {number|undefined} Valid zoom level.
1879
1872
  */
1880
- getConstrainedZoom(targetZoom, opt_direction) {
1873
+ getConstrainedZoom(targetZoom, direction) {
1881
1874
  const targetRes = this.getResolutionForZoom(targetZoom);
1882
1875
  return this.getZoomForResolution(
1883
- this.getConstrainedResolution(targetRes, opt_direction)
1876
+ this.getConstrainedResolution(targetRes, direction)
1884
1877
  );
1885
1878
  }
1886
1879
 
1887
1880
  /**
1888
1881
  * Get a valid resolution according to the current view constraints.
1889
1882
  * @param {number|undefined} targetResolution Target resolution.
1890
- * @param {number} [opt_direction=0] Indicate which resolution should be used
1883
+ * @param {number} [direction=0] Indicate which resolution should be used
1891
1884
  * by a renderer if the view resolution does not match any resolution of the tile source.
1892
1885
  * If 0, the nearest resolution will be used. If 1, the nearest lower resolution
1893
1886
  * will be used. If -1, the nearest higher resolution will be used.
1894
1887
  * @return {number|undefined} Valid resolution.
1895
1888
  */
1896
- getConstrainedResolution(targetResolution, opt_direction) {
1897
- const direction = opt_direction || 0;
1889
+ getConstrainedResolution(targetResolution, direction) {
1890
+ direction = direction || 0;
1898
1891
  const size = this.getViewportSize_(this.getRotation());
1899
1892
 
1900
1893
  return this.constraints_.resolution(targetResolution, direction, size);
package/array.d.ts CHANGED
@@ -7,10 +7,10 @@
7
7
  *
8
8
  * @param {Array<*>} haystack Items to search through.
9
9
  * @param {*} needle The item to look for.
10
- * @param {Function} [opt_comparator] Comparator function.
10
+ * @param {Function} [comparator] Comparator function.
11
11
  * @return {number} The index of the item if found, -1 if not.
12
12
  */
13
- export function binarySearch(haystack: Array<any>, needle: any, opt_comparator?: Function | undefined): number;
13
+ export function binarySearch(haystack: Array<any>, needle: any, comparator?: Function | undefined): number;
14
14
  /**
15
15
  * Compare function for array sort that is safe for numbers.
16
16
  * @param {*} a The first object to be compared.
@@ -77,11 +77,11 @@ export function equals(arr1: any[] | Uint8ClampedArray, arr2: any[] | Uint8Clamp
77
77
  export function stableSort(arr: Array<any>, compareFnc: (arg0: any, arg1: any) => number): void;
78
78
  /**
79
79
  * @param {Array<*>} arr The array to test.
80
- * @param {Function} [opt_func] Comparison function.
81
- * @param {boolean} [opt_strict] Strictly sorted (default false).
80
+ * @param {Function} [func] Comparison function.
81
+ * @param {boolean} [strict] Strictly sorted (default false).
82
82
  * @return {boolean} Return index.
83
83
  */
84
- export function isSorted(arr: Array<any>, opt_func?: Function | undefined, opt_strict?: boolean | undefined): boolean;
84
+ export function isSorted(arr: Array<any>, func?: Function | undefined, strict?: boolean | undefined): boolean;
85
85
  /**
86
86
  * {@link module :ol/tilegrid/TileGrid~TileGrid#getZForResolution} can use a function
87
87
  * of this type to determine which nearest resolution to use.
package/array.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["array.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,uCALW,UAAQ,uDAGP,MAAM,CA2BjB;AAED;;;;;;GAMG;AACH,2DAHY,MAAM,CAKjB;AAED;;;;;;;;;;;;GAYG;AAEH;;;;;;;;GAQG;AACH,uCARW,MAAM,MAAM,CAAC,UACb,MAAM,aACN,MAAM,GAAC,wBAAwB,GAI9B,MAAM,CA2CjB;AAED;;;;GAIG;AACH,qCAJW,UAAQ,SACR,MAAM,OACN,MAAM,QAUhB;AAED;;;;GAIG;AACH,yEAMC;AAED;;;;;GAKG;AACH,yDAFY,OAAO,CASlB;AAED;;;;GAIG;AACH,6BAJW,QAAM,iBAAiB,QACvB,QAAM,iBAAiB,GACtB,OAAO,CAalB;AAED;;;;;;GAMG;AACH,gCAJW,UAAQ,wCACS,MAAM,QAgBjC;AAED;;;;;GAKG;AACH,8BALW,UAAQ,sEAGP,OAAO,CAWlB;;;;;;;;;;;;8CA1JqB,MAAM,QAAE,MAAM,QAAE,MAAM,KAAG,MAAM"}
1
+ {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["array.js"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;;;GAQG;AACH,uCALW,UAAQ,mDAGP,MAAM,CA2BjB;AAED;;;;;;GAMG;AACH,2DAHY,MAAM,CAKjB;AAED;;;;;;;;;;;;GAYG;AAEH;;;;;;;;GAQG;AACH,uCARW,MAAM,MAAM,CAAC,UACb,MAAM,aACN,MAAM,GAAC,wBAAwB,GAI9B,MAAM,CA2CjB;AAED;;;;GAIG;AACH,qCAJW,UAAQ,SACR,MAAM,OACN,MAAM,QAUhB;AAED;;;;GAIG;AACH,yEAMC;AAED;;;;;GAKG;AACH,yDAFY,OAAO,CASlB;AAED;;;;GAIG;AACH,6BAJW,QAAM,iBAAiB,QACvB,QAAM,iBAAiB,GACtB,OAAO,CAalB;AAED;;;;;;GAMG;AACH,gCAJW,UAAQ,wCACS,MAAM,QAgBjC;AAED;;;;;GAKG;AACH,8BALW,UAAQ,8DAGP,OAAO,CAWlB;;;;;;;;;;;;8CA1JqB,MAAM,QAAE,MAAM,QAAE,MAAM,KAAG,MAAM"}
package/array.js CHANGED
@@ -8,12 +8,12 @@
8
8
  *
9
9
  * @param {Array<*>} haystack Items to search through.
10
10
  * @param {*} needle The item to look for.
11
- * @param {Function} [opt_comparator] Comparator function.
11
+ * @param {Function} [comparator] Comparator function.
12
12
  * @return {number} The index of the item if found, -1 if not.
13
13
  */
14
- export function binarySearch(haystack, needle, opt_comparator) {
14
+ export function binarySearch(haystack, needle, comparator) {
15
15
  let mid, cmp;
16
- const comparator = opt_comparator || numberSafeCompareFunction;
16
+ comparator = comparator || numberSafeCompareFunction;
17
17
  let low = 0;
18
18
  let high = haystack.length;
19
19
  let found = false;
@@ -200,17 +200,17 @@ export function stableSort(arr, compareFnc) {
200
200
 
201
201
  /**
202
202
  * @param {Array<*>} arr The array to test.
203
- * @param {Function} [opt_func] Comparison function.
204
- * @param {boolean} [opt_strict] Strictly sorted (default false).
203
+ * @param {Function} [func] Comparison function.
204
+ * @param {boolean} [strict] Strictly sorted (default false).
205
205
  * @return {boolean} Return index.
206
206
  */
207
- export function isSorted(arr, opt_func, opt_strict) {
208
- const compare = opt_func || numberSafeCompareFunction;
207
+ export function isSorted(arr, func, strict) {
208
+ const compare = func || numberSafeCompareFunction;
209
209
  return arr.every(function (currentVal, index) {
210
210
  if (index === 0) {
211
211
  return true;
212
212
  }
213
213
  const res = compare(arr[index - 1], currentVal);
214
- return !(res > 0 || (opt_strict && res === 0));
214
+ return !(res > 0 || (strict && res === 0));
215
215
  });
216
216
  }
@@ -20,11 +20,11 @@ export function createExtent(extent, onlyCenter, smooth) {
20
20
  * @param {import("./coordinate.js").Coordinate|undefined} center Center.
21
21
  * @param {number|undefined} resolution Resolution.
22
22
  * @param {import("./size.js").Size} size Viewport size; unused if `onlyCenter` was specified.
23
- * @param {boolean} [opt_isMoving] True if an interaction or animation is in progress.
24
- * @param {Array<number>} [opt_centerShift] Shift between map center and viewport center.
23
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
24
+ * @param {Array<number>} [centerShift] Shift between map center and viewport center.
25
25
  * @return {import("./coordinate.js").Coordinate|undefined} Center.
26
26
  */
27
- function (center, resolution, size, opt_isMoving, opt_centerShift) {
27
+ function (center, resolution, size, isMoving, centerShift) {
28
28
  if (!center) {
29
29
  return undefined;
30
30
  }
@@ -33,8 +33,8 @@ export function createExtent(extent, onlyCenter, smooth) {
33
33
  }
34
34
  const viewWidth = onlyCenter ? 0 : size[0] * resolution;
35
35
  const viewHeight = onlyCenter ? 0 : size[1] * resolution;
36
- const shiftX = opt_centerShift ? opt_centerShift[0] : 0;
37
- const shiftY = opt_centerShift ? opt_centerShift[1] : 0;
36
+ const shiftX = centerShift ? centerShift[0] : 0;
37
+ const shiftY = centerShift ? centerShift[1] : 0;
38
38
  let minX = extent[0] + viewWidth / 2 + shiftX;
39
39
  let maxX = extent[2] - viewWidth / 2 + shiftX;
40
40
  let minY = extent[1] + viewHeight / 2 + shiftY;
@@ -55,7 +55,7 @@ export function createExtent(extent, onlyCenter, smooth) {
55
55
  let y = clamp(center[1], minY, maxY);
56
56
 
57
57
  // during an interaction, allow some overscroll
58
- if (opt_isMoving && smooth && resolution) {
58
+ if (isMoving && smooth && resolution) {
59
59
  const ratio = 30 * resolution;
60
60
  x +=
61
61
  -ratio * Math.log(1 + Math.max(0, minX - center[0]) / ratio) +
@@ -91,9 +91,9 @@ export type Options = {
91
91
  */
92
92
  declare class Attribution extends Control {
93
93
  /**
94
- * @param {Options} [opt_options] Attribution options.
94
+ * @param {Options} [options] Attribution options.
95
95
  */
96
- constructor(opt_options?: Options | undefined);
96
+ constructor(options?: Options | undefined);
97
97
  /**
98
98
  * @private
99
99
  * @type {HTMLElement}
@@ -1 +1 @@
1
- {"version":3,"file":"Attribution.d.ts","sourceRoot":"","sources":["Attribution.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgCuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAtB7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,+CAsIC;IA7HC;;;OAGG;IACH,mBAA8C;IAE9C;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,uBAAqC;IAErC;;;OAGG;IACH,6BAA6D;IAE7D;;;OAGG;IACH,qBACgE;IA0B9D;;;OAGG;IACH,uBAAoD;IAUpD;;;OAGG;IACH,eAA4C;IAU9C;;;OAGG;IACH,sBAAqD;IAyBrD;;;;OAIG;IACH,8BAA+B;IAE/B;;;OAGG;IACH,yBAA4B;IAG9B;;;;;OAKG;IACH,mCA2DC;IAED;;;OAGG;IACH,uBA+BC;IAED;;;OAGG;IACH,qBAIC;IAED;;OAEG;IACH,sBASC;IAED;;;;OAIG;IACH,kBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAHW,OAAO,QAYjB;IAED;;;;;;OAMG;IACH,wBAHW,OAAO,QASjB;IAED;;;;;OAKG;IACH,gBAHY,OAAO,CAKlB;CAUF"}
1
+ {"version":3,"file":"Attribution.d.ts","sourceRoot":"","sources":["Attribution.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgCuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAtB7D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH;;;;;;;;GAQG;AACH;IACE;;OAEG;IACH,2CAsIC;IA7HC;;;OAGG;IACH,mBAA8C;IAE9C;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,uBAAqC;IAErC;;;OAGG;IACH,6BAA6D;IAE7D;;;OAGG;IACH,qBACgE;IA0B9D;;;OAGG;IACH,uBAAoD;IAUpD;;;OAGG;IACH,eAA4C;IAU9C;;;OAGG;IACH,sBAAqD;IAyBrD;;;;OAIG;IACH,8BAA+B;IAE/B;;;OAGG;IACH,yBAA4B;IAG9B;;;;;OAKG;IACH,mCA2DC;IAED;;;OAGG;IACH,uBA+BC;IAED;;;OAGG;IACH,qBAIC;IAED;;OAEG;IACH,sBASC;IAED;;;;OAIG;IACH,kBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAHW,OAAO,QAYjB;IAED;;;;;;OAMG;IACH,wBAHW,OAAO,QASjB;IAED;;;;;OAKG;IACH,gBAHY,OAAO,CAKlB;CAUF"}
@@ -46,10 +46,10 @@ import {removeChildren, replaceNode} from '../dom.js';
46
46
  */
47
47
  class Attribution extends Control {
48
48
  /**
49
- * @param {Options} [opt_options] Attribution options.
49
+ * @param {Options} [options] Attribution options.
50
50
  */
51
- constructor(opt_options) {
52
- const options = opt_options ? opt_options : {};
51
+ constructor(options) {
52
+ options = options ? options : {};
53
53
 
54
54
  super({
55
55
  element: document.createElement('div'),
@@ -94,9 +94,9 @@ export type Options = {
94
94
  */
95
95
  declare class FullScreen extends Control {
96
96
  /**
97
- * @param {Options} [opt_options] Options.
97
+ * @param {Options} [options] Options.
98
98
  */
99
- constructor(opt_options?: Options | undefined);
99
+ constructor(options?: Options | undefined);
100
100
  /***
101
101
  * @type {FullScreenOnSignature<import("../events").EventsKey>}
102
102
  */
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreen.d.ts","sourceRoot":"","sources":["FullScreen.js"],"names":[],"mappings":";;;;4CAqCa,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,GAClF,iBAAuB,GAAC,iBAAiB,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACxF,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpH,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAClF,iBAAuB,GAAC,iBAAiB,GAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANtF;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,+CAqHC;IA7GC;;OAEG;IACH,IAFU,sBAAsB,OAAO,WAAW,EAAE,SAAS,CAAC,CAEvD;IAEP;;OAEG;IACH,MAFU,sBAAsB,OAAO,WAAW,EAAE,SAAS,CAAC,CAErD;IAET;;OAEG;IACH,IAFU,sBAAsB,IAAI,CAAC,CAE9B;IAEP;;;OAGG;IACH,cAA8D;IAE9D;;;OAGG;IACH,gBAA6B;IAE7B;;;OAGG;IACH,wBAA4B;IAE5B;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,2BAA4B;IAE5B;;;OAGG;IACH,yBAGoC;IAEpC;;;OAGG;IACH,2BAGqC;IAIrC;;;OAGG;IACH,mBACoE;IAKpE;;;OAGG;IACH,yBAGiB;IAIjB;;;OAGG;IACH,gBAA+C;IAejD;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,0BA2BC;IAED;;OAEG;IACH,gCAkBC;IAED;;;;OAIG;IACH,sBAQC;IA8BD;;OAEG;IACH,+BAuBC;CACF"}
1
+ {"version":3,"file":"FullScreen.d.ts","sourceRoot":"","sources":["FullScreen.js"],"names":[],"mappings":";;;;4CAqCa,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,GAClF,iBAAuB,GAAC,iBAAiB,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACxF,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GACpH,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAClF,iBAAuB,GAAC,iBAAiB,GAAC,OAAO,oBAAoB,EAAE,KAAK,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANtF;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,2CAqHC;IA7GC;;OAEG;IACH,IAFU,sBAAsB,OAAO,WAAW,EAAE,SAAS,CAAC,CAEvD;IAEP;;OAEG;IACH,MAFU,sBAAsB,OAAO,WAAW,EAAE,SAAS,CAAC,CAErD;IAET;;OAEG;IACH,IAFU,sBAAsB,IAAI,CAAC,CAE9B;IAEP;;;OAGG;IACH,cAA8D;IAE9D;;;OAGG;IACH,gBAA6B;IAE7B;;;OAGG;IACH,wBAA4B;IAE5B;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,sBACwE;IAExE;;;OAGG;IACH,2BAA4B;IAE5B;;;OAGG;IACH,yBAGoC;IAEpC;;;OAGG;IACH,2BAGqC;IAIrC;;;OAGG;IACH,mBACoE;IAKpE;;;OAGG;IACH,yBAGiB;IAIjB;;;OAGG;IACH,gBAA+C;IAejD;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,0BA2BC;IAED;;OAEG;IACH,gCAkBC;IAED;;;;OAIG;IACH,sBAQC;IA8BD;;OAEG;IACH,+BAuBC;CACF"}
@@ -80,10 +80,10 @@ const FullScreenEventType = {
80
80
  */
81
81
  class FullScreen extends Control {
82
82
  /**
83
- * @param {Options} [opt_options] Options.
83
+ * @param {Options} [options] Options.
84
84
  */
85
- constructor(opt_options) {
86
- const options = opt_options ? opt_options : {};
85
+ constructor(options) {
86
+ options = options ? options : {};
87
87
 
88
88
  super({
89
89
  element: document.createElement('div'),