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
@@ -74,9 +74,9 @@ export type Options = {
74
74
  */
75
75
  declare class MousePosition extends Control {
76
76
  /**
77
- * @param {Options} [opt_options] Mouse position options.
77
+ * @param {Options} [options] Mouse position options.
78
78
  */
79
- constructor(opt_options?: Options | undefined);
79
+ constructor(options?: Options | undefined);
80
80
  /***
81
81
  * @type {MousePositionOnSignature<import("../events").EventsKey>}
82
82
  */
@@ -1 +1 @@
1
- {"version":3,"file":"MousePosition.d.ts","sourceRoot":"","sources":["MousePosition.js"],"names":[],"mappings":";;;;+CA0Ba,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,yBAA+B,GAAC,mBAAmB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC7F,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GACrH,yBAA+B,GAAC,mBAAmB,EAAE,MAAM,CAAC;;;;;;;;;;;;;iBAO/C,OAAO,YAAY,EAAE,cAAc;;;;;;qBAC1B,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;AAd7D;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;GAWG;AACH;IACE;;OAEG;IACH,+CAkEC;IArDC;;OAEG;IACH,IAFU,yBAAyB,OAAO,WAAW,EAAE,SAAS,CAAC,CAE1D;IAEP;;OAEG;IACH,MAFU,yBAAyB,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAET;;OAEG;IACH,IAFU,yBAAyB,IAAI,CAAC,CAEjC;IAWP;;;OAGG;IACH,0BAA0D;IAE1D;;;OAGG;IACH,qBAA2E;IAE3E;;;OAGG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,CAAC,CAE1D;IAEP;;OAEG;IACH,MAFU,yBAAyB,OAAO,WAAW,EAAE,SAAS,CAAC,CAExD;IAET;;OAEG;IACH,IAFU,yBAAyB,IAAI,CAAC,CAEjC;IAWP;;;OAGG;IACH,0BAA0D;IAE1D;;;OAGG;IACH,qBAA2E;IAE3E;;;OAGG;IACH,sBAAsC;IAEtC;;;OAGG;IACH,uBAA0B;IAE1B;;;OAGG;IACH,mBAAsB;IAGxB;;OAEG;IACH,iCAEC;IAED;;;;;;;OAOG;IACH,uBALY,OAAO,kBAAkB,EAAE,gBAAgB,GAAC,SAAS,CAShE;IAED;;;;;;OAMG;IACH,iBALY,OAAO,uBAAuB,EAAE,OAAO,GAAC,SAAS,CAS5D;IAED;;;OAGG;IACH,iCAHW,UAAU,QAMpB;IAED;;;OAGG;IACH,gCAHW,KAAK,QAKf;IA0BD;;;;;;OAMG;IACH,4BALW,OAAO,kBAAkB,EAAE,gBAAgB,QAOrD;IAED;;;;;;OAMG;IACH,0BALW,OAAO,YAAY,EAAE,cAAc,QAO7C;IAED;;;OAGG;IACH,oBAqCC;CAmBF"}
@@ -62,10 +62,10 @@ const COORDINATE_FORMAT = 'coordinateFormat';
62
62
  */
63
63
  class MousePosition extends Control {
64
64
  /**
65
- * @param {Options} [opt_options] Mouse position options.
65
+ * @param {Options} [options] Mouse position options.
66
66
  */
67
- constructor(opt_options) {
68
- const options = opt_options ? opt_options : {};
67
+ constructor(options) {
68
+ options = options ? options : {};
69
69
 
70
70
  const element = document.createElement('div');
71
71
  element.className =
@@ -78,9 +78,9 @@ export type Options = {
78
78
  */
79
79
  declare class OverviewMap extends Control {
80
80
  /**
81
- * @param {Options} [opt_options] OverviewMap options.
81
+ * @param {Options} [options] OverviewMap options.
82
82
  */
83
- constructor(opt_options?: Options | undefined);
83
+ constructor(options?: Options | undefined);
84
84
  /**
85
85
  * @private
86
86
  */
@@ -1 +1 @@
1
- {"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;AAX7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,+CA+LC;IAtLC;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,qBACgE;IAMhE;;;OAGG;IACH,wBACuE;IAEvE;;;OAGG;IACH,oBAA4B;IAY1B;;;OAGG;IACH,uBAAoD;IASpD;;;OAGG;IACH,eAA4C;IAmB9C;;;OAGG;IACH,kBAA8C;IAG9C;;;;OAIG;IACH,cAAyB;IAQzB;;;OAGG;IACH,eAAmB;IAYnB;;;OAGG;IACH,oBAIE;IA0GJ;;;;OAIG;IACH,iCAgBC;IAED;;;;OAIG;IACH,kBAeC;IAED;;;;OAIG;IACH,oBAKC;IAED;;;OAGG;IACH,+BAIC;IAED;;;;;;;;;;OAUG;IACH,wBAiDC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;;OAIG;IACH,kBASC;IAED;;;OAGG;IACH,mBAkCC;IAED;;OAEG;IACH,uCAaC;IATC,yBAQC;IAGH;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,sBAsBC;IAED;;;;OAIG;IACH,kBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAHW,OAAO,QAYjB;IAED;;;;;;OAMG;IACH,wBAHW,OAAO,QAQjB;IAED;;;;OAIG;IACH,gBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,qBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,kCAHW,OAAO,QAkBjB;IAED;;;;OAIG;IACH,kBAHY,OAAO,WAAW,EAAE,OAAO,CAKtC;CAWF"}
1
+ {"version":3,"file":"OverviewMap.d.ts","sourceRoot":"","sources":["OverviewMap.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkDuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;AAX7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;GAKG;AACH;IACE;;OAEG;IACH,2CA+LC;IAtLC;;OAEG;IACH,oCAAyE;IAEzE;;;OAGG;IACH,mBAC4D;IAE5D;;;OAGG;IACH,qBACgE;IAMhE;;;OAGG;IACH,wBACuE;IAEvE;;;OAGG;IACH,oBAA4B;IAY1B;;;OAGG;IACH,uBAAoD;IASpD;;;OAGG;IACH,eAA4C;IAmB9C;;;OAGG;IACH,kBAA8C;IAG9C;;;;OAIG;IACH,cAAyB;IAQzB;;;OAGG;IACH,eAAmB;IAYnB;;;OAGG;IACH,oBAIE;IA0GJ;;;;OAIG;IACH,iCAgBC;IAED;;;;OAIG;IACH,kBAeC;IAED;;;;OAIG;IACH,oBAKC;IAED;;;OAGG;IACH,+BAIC;IAED;;;;;;;;;;OAUG;IACH,wBAiDC;IAED;;;;OAIG;IACH,qBAsBC;IAED;;;;OAIG;IACH,kBASC;IAED;;;OAGG;IACH,mBAkCC;IAED;;OAEG;IACH,uCAaC;IATC,yBAQC;IAGH;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,sBAsBC;IAED;;;;OAIG;IACH,kBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAHW,OAAO,QAYjB;IAED;;;;;;OAMG;IACH,wBAHW,OAAO,QAQjB;IAED;;;;OAIG;IACH,gBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,qBAHY,OAAO,CAKlB;IAED;;;;OAIG;IACH,kCAHW,OAAO,QAkBjB;IAED;;;;OAIG;IACH,kBAHY,OAAO,WAAW,EAAE,OAAO,CAKtC;CAWF"}
@@ -66,10 +66,10 @@ const MIN_RATIO = 0.1;
66
66
  */
67
67
  class OverviewMap extends Control {
68
68
  /**
69
- * @param {Options} [opt_options] OverviewMap options.
69
+ * @param {Options} [options] OverviewMap options.
70
70
  */
71
- constructor(opt_options) {
72
- const options = opt_options ? opt_options : {};
71
+ constructor(options) {
72
+ options = options ? options : {};
73
73
 
74
74
  super({
75
75
  element: document.createElement('div'),
@@ -67,9 +67,9 @@ export type Options = {
67
67
  */
68
68
  declare class Rotate extends Control {
69
69
  /**
70
- * @param {Options} [opt_options] Rotate options.
70
+ * @param {Options} [options] Rotate options.
71
71
  */
72
- constructor(opt_options?: Options | undefined);
72
+ constructor(options?: Options | undefined);
73
73
  /**
74
74
  * @type {HTMLElement}
75
75
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"Rotate.d.ts","sourceRoot":"","sources":["Rotate.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiBuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;wBAEpC,IAAI;;;;;;;AAX7B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,+CA6EC;IA1DC;;;OAGG;IACH,eAAkB;IA+BlB,wBAxEqB,IAAI,cAwEiD;IAE1E;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,kBAAyE;IAEzE;;;OAGG;IACH,kBAA0B;IAO5B;;;OAGG;IACH,qBAOC;IAED;;OAEG;IACH,oBAoBC;CA2BF"}
1
+ {"version":3,"file":"Rotate.d.ts","sourceRoot":"","sources":["Rotate.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiBuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;wBAEpC,IAAI;;;;;;;AAX7B;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,2CA6EC;IA1DC;;;OAGG;IACH,eAAkB;IA+BlB,wBAxEqB,IAAI,cAwEiD;IAE1E;;;OAGG;IACH,kBAAwE;IAExE;;;OAGG;IACH,kBAAyE;IAEzE;;;OAGG;IACH,kBAA0B;IAO5B;;;OAGG;IACH,qBAOC;IAED;;OAEG;IACH,oBAoBC;CA2BF"}
package/control/Rotate.js CHANGED
@@ -33,10 +33,10 @@ import {easeOut} from '../easing.js';
33
33
  */
34
34
  class Rotate extends Control {
35
35
  /**
36
- * @param {Options} [opt_options] Rotate options.
36
+ * @param {Options} [options] Rotate options.
37
37
  */
38
- constructor(opt_options) {
39
- const options = opt_options ? opt_options : {};
38
+ constructor(options) {
39
+ options = options ? options : {};
40
40
 
41
41
  super({
42
42
  element: document.createElement('div'),
@@ -102,9 +102,9 @@ export type Options = {
102
102
  */
103
103
  declare class ScaleLine extends Control {
104
104
  /**
105
- * @param {Options} [opt_options] Scale line options.
105
+ * @param {Options} [options] Scale line options.
106
106
  */
107
- constructor(opt_options?: Options | undefined);
107
+ constructor(options?: Options | undefined);
108
108
  /***
109
109
  * @type {ScaleLineOnSignature<import("../events").EventsKey>}
110
110
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ScaleLine.d.ts","sourceRoot":"","sources":["ScaleLine.js"],"names":[],"mappings":";;;;oBAca,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI;;;;2CAkBrD,OAAO,eAAe,EAAE,WAAW,CAAC,OAAO,eAAe,EAAE,UAAU,EAAE,OAAO,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,GACjI,OAAW,eAAe,EAAE,WAAW,CAAC,OAAO,oBAAoB,EAAE,KAAK,GAC1E,cAAoB,EAAE,OAAO,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,GAC9D,OAAW,eAAe,EAAE,mBAAmB,CAAC,OAAO,eAAe,EAAE,UAAU,GAAC,OAAO,oBAAoB,EAAE,KAAK,GAC9G,cAAc,EAAE,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;qBAWR,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAU/C,MAAM,GAAC,SAAS;;AA3B9B;;;;;;;GAOG;AA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AMG;IACH,uBAoCC;IAED;;;;OAIG;IACH,uBAHW,UAAU,GAAC,UAAU,GACpB,MAAM,CAUjB;IAED;;;;;;;;OAQG;IACH,kBAPW,MAAM,SACN,MAAM,UACN,OAAO,SACP,MAAM,UACN,MAAM,GACL,MAAM,CAoBjB;IAED;;;OAGG;IACH,yBAFY,MAAM,CAYjB;CAgBF"}
@@ -75,10 +75,10 @@ const DEFAULT_DPI = 25.4 / 0.28;
75
75
  */
76
76
  class ScaleLine extends Control {
77
77
  /**
78
- * @param {Options} [opt_options] Scale line options.
78
+ * @param {Options} [options] Scale line options.
79
79
  */
80
- constructor(opt_options) {
81
- const options = opt_options ? opt_options : {};
80
+ constructor(options) {
81
+ options = options ? options : {};
82
82
 
83
83
  const element = document.createElement('div');
84
84
  element.style.pointerEvents = 'none';
package/control/Zoom.d.ts CHANGED
@@ -70,9 +70,9 @@ export type Options = {
70
70
  */
71
71
  declare class Zoom extends Control {
72
72
  /**
73
- * @param {Options} [opt_options] Zoom options.
73
+ * @param {Options} [options] Zoom options.
74
74
  */
75
- constructor(opt_options?: Options | undefined);
75
+ constructor(options?: Options | undefined);
76
76
  /**
77
77
  * @type {number}
78
78
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"Zoom.d.ts","sourceRoot":"","sources":["Zoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,+CA+EC;IALC;;;OAGG;IACH,kBAAwE;IAG1E;;;;OAIG;IACH,qBAGC;IAED;;;OAGG;IACH,qBAwBC;CACF"}
1
+ {"version":3,"file":"Zoom.d.ts","sourceRoot":"","sources":["Zoom.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH;IACE;;OAEG;IACH,2CA+EC;IALC;;;OAGG;IACH,kBAAwE;IAG1E;;;;OAIG;IACH,qBAGC;IAED;;;OAGG;IACH,qBAwBC;CACF"}
package/control/Zoom.js CHANGED
@@ -33,10 +33,10 @@ import {easeOut} from '../easing.js';
33
33
  */
34
34
  class Zoom extends Control {
35
35
  /**
36
- * @param {Options} [opt_options] Zoom options.
36
+ * @param {Options} [options] Zoom options.
37
37
  */
38
- constructor(opt_options) {
39
- const options = opt_options ? opt_options : {};
38
+ constructor(options) {
39
+ options = options ? options : {};
40
40
 
41
41
  super({
42
42
  element: document.createElement('div'),
@@ -33,9 +33,9 @@ export type Options = {
33
33
  */
34
34
  declare class ZoomSlider extends Control {
35
35
  /**
36
- * @param {Options} [opt_options] Zoom slider options.
36
+ * @param {Options} [options] Zoom slider options.
37
37
  */
38
- constructor(opt_options?: Options | undefined);
38
+ constructor(options?: Options | undefined);
39
39
  /**
40
40
  * @type {!Array<import("../events.js").EventsKey>}
41
41
  * @private
@@ -1 +1 @@
1
- {"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":";;;;;;;;;;;;;;qBA2BuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAJ7D;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,+CAkHC;IA1GC;;;OAGG;IACH,0BAA2B;IAE3B;;;;;OAKG;IACH,2BAAmC;IAEnC;;;;;;OAMG;IACH,mBAAoC;IAEpC;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,qBAAqB;IAErB;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,gBAAY;IAEZ;;;OAGG;IACH,gBAAY;IAEZ;;;;;OAKG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,2BAA+B;IAE/B;;;OAGG;IACH,kBAAwE;IAmD1E;;;;;;;OAOG;IACH,oBAmCC;IAED;;;OAGG;IACH,8BAgBC;IAED;;;;OAIG;IACH,4BAoBC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;OAIG;IACH,0BAWC;IAED;;;;;OAKG;IACH,0BASC;IAED;;;;;;;;;OASG;IACH,6BAQC;IAED;;;;;;;OAOG;IACH,kCAGC;IAED;;;;;;;;OAQG;IACH,kCAGC;CAkBF"}
1
+ {"version":3,"file":"ZoomSlider.d.ts","sourceRoot":"","sources":["ZoomSlider.js"],"names":[],"mappings":";;;;;;;;;;;;;;qBA2BuB,OAAO,gBAAgB,EAAE,OAAO,KAAE,IAAI;;AAJ7D;;;;;;GAMG;AAEH;;;;;;;;;GASG;AACH;IACE;;OAEG;IACH,2CAkHC;IA1GC;;;OAGG;IACH,0BAA2B;IAE3B;;;;;OAKG;IACH,2BAAmC;IAEnC;;;;;;OAMG;IACH,mBAAoC;IAEpC;;;OAGG;IACH,kBAAc;IAEd;;;OAGG;IACH,qBAAqB;IAErB;;;OAGG;IACH,oBAAoB;IAEpB;;;OAGG;IACH,gBAAY;IAEZ;;;OAGG;IACH,gBAAY;IAEZ;;;;;OAKG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,2BAA+B;IAE/B;;;OAGG;IACH,kBAAwE;IAmD1E;;;;;;;OAOG;IACH,oBAmCC;IAED;;;OAGG;IACH,8BAgBC;IAED;;;;OAIG;IACH,4BAoBC;IAED;;;;;OAKG;IACH,2BASC;IAED;;;;OAIG;IACH,0BAWC;IAED;;;;;OAKG;IACH,0BASC;IAED;;;;;;;;;OASG;IACH,6BAQC;IAED;;;;;;;OAOG;IACH,kCAGC;IAED;;;;;;;;OAQG;IACH,kCAGC;CAkBF"}
@@ -41,10 +41,10 @@ const Direction = {
41
41
  */
42
42
  class ZoomSlider extends Control {
43
43
  /**
44
- * @param {Options} [opt_options] Zoom slider options.
44
+ * @param {Options} [options] Zoom slider options.
45
45
  */
46
- constructor(opt_options) {
47
- const options = opt_options ? opt_options : {};
46
+ constructor(options) {
47
+ options = options ? options : {};
48
48
 
49
49
  super({
50
50
  element: document.createElement('div'),
@@ -44,9 +44,9 @@ export type Options = {
44
44
  */
45
45
  declare class ZoomToExtent extends Control {
46
46
  /**
47
- * @param {Options} [opt_options] Options.
47
+ * @param {Options} [options] Options.
48
48
  */
49
- constructor(opt_options?: Options | undefined);
49
+ constructor(options?: Options | undefined);
50
50
  /**
51
51
  * @type {?import("../extent.js").Extent|null}
52
52
  * @protected
@@ -1 +1 @@
1
- {"version":3,"file":"ZoomToExtent.d.ts","sourceRoot":"","sources":["ZoomToExtent.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,+CAsCC;IA9BC;;;OAGG;IACH,mBAHW,OAAO,cAAc,EAAE,MAAM,GAAC,IAAI,SAGO;IA4BtD;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,qCAOC;CACF"}
1
+ {"version":3,"file":"ZoomToExtent.d.ts","sourceRoot":"","sources":["ZoomToExtent.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH;IACE;;OAEG;IACH,2CAsCC;IA9BC;;;OAGG;IACH,mBAHW,OAAO,cAAc,EAAE,MAAM,GAAC,IAAI,SAGO;IA4BtD;;;OAGG;IACH,qBAGC;IAED;;OAEG;IACH,qCAOC;CACF"}
@@ -27,10 +27,10 @@ import {fromExtent as polygonFromExtent} from '../geom/Polygon.js';
27
27
  */
28
28
  class ZoomToExtent extends Control {
29
29
  /**
30
- * @param {Options} [opt_options] Options.
30
+ * @param {Options} [options] Options.
31
31
  */
32
- constructor(opt_options) {
33
- const options = opt_options ? opt_options : {};
32
+ constructor(options) {
33
+ options = options ? options : {};
34
34
 
35
35
  super({
36
36
  element: document.createElement('div'),
@@ -20,12 +20,12 @@
20
20
  * * {@link module:ol/control/Rotate~Rotate}
21
21
  * * {@link module:ol/control/Attribution~Attribution}
22
22
  *
23
- * @param {DefaultsOptions} [opt_options] Options for the default controls.
23
+ * @param {DefaultsOptions} [options] Options for the default controls.
24
24
  * @return {Collection<import("./Control.js").default>} A collection of controls
25
25
  * to be used with the {@link module:ol/Map~Map} constructor's `controls` option.
26
26
  * @api
27
27
  */
28
- export function defaults(opt_options?: DefaultsOptions | undefined): Collection<import("./Control.js").default>;
28
+ export function defaults(options?: DefaultsOptions | undefined): Collection<import("./Control.js").default>;
29
29
  export type DefaultsOptions = {
30
30
  /**
31
31
  * Include
@@ -1 +1 @@
1
- {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,qEAJY,WAAW,OAAO,cAAc,EAAE,OAAO,CAAC,CA2BrD"}
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["defaults.js"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AAEH;;;;;;;;;;;;GAYG;AACH,iEAJY,WAAW,OAAO,cAAc,EAAE,OAAO,CAAC,CA2BrD"}
@@ -29,13 +29,13 @@ import Zoom from './Zoom.js';
29
29
  * * {@link module:ol/control/Rotate~Rotate}
30
30
  * * {@link module:ol/control/Attribution~Attribution}
31
31
  *
32
- * @param {DefaultsOptions} [opt_options] Options for the default controls.
32
+ * @param {DefaultsOptions} [options] Options for the default controls.
33
33
  * @return {Collection<import("./Control.js").default>} A collection of controls
34
34
  * to be used with the {@link module:ol/Map~Map} constructor's `controls` option.
35
35
  * @api
36
36
  */
37
- export function defaults(opt_options) {
38
- const options = opt_options ? opt_options : {};
37
+ export function defaults(options) {
38
+ options = options ? options : {};
39
39
 
40
40
  /** @type {Collection<import("./Control.js").default>} */
41
41
  const controls = new Collection();
package/coordinate.d.ts CHANGED
@@ -73,20 +73,20 @@ export function closestOnSegment(coordinate: Coordinate, segment: Array<Coordina
73
73
  * const out = stringifyFunc(coord);
74
74
  * // out is now '7.85, 47.98'
75
75
  *
76
- * @param {number} [opt_fractionDigits] The number of digits to include
76
+ * @param {number} [fractionDigits] The number of digits to include
77
77
  * after the decimal point. Default is `0`.
78
78
  * @return {CoordinateFormat} Coordinate format.
79
79
  * @api
80
80
  */
81
- export function createStringXY(opt_fractionDigits?: number | undefined): CoordinateFormat;
81
+ export function createStringXY(fractionDigits?: number | undefined): CoordinateFormat;
82
82
  /**
83
83
  * @param {string} hemispheres Hemispheres.
84
84
  * @param {number} degrees Degrees.
85
- * @param {number} [opt_fractionDigits] The number of digits to include
85
+ * @param {number} [fractionDigits] The number of digits to include
86
86
  * after the decimal point. Default is `0`.
87
87
  * @return {string} String.
88
88
  */
89
- export function degreesToStringHDMS(hemispheres: string, degrees: number, opt_fractionDigits?: number | undefined): string;
89
+ export function degreesToStringHDMS(hemispheres: string, degrees: number, fractionDigits?: number | undefined): string;
90
90
  /**
91
91
  * Transforms the given {@link module:ol/coordinate~Coordinate} to a string
92
92
  * using the given string template. The strings `{x}` and `{y}` in the template
@@ -113,12 +113,12 @@ export function degreesToStringHDMS(hemispheres: string, degrees: number, opt_fr
113
113
  * @param {Coordinate} coordinate Coordinate.
114
114
  * @param {string} template A template string with `{x}` and `{y}` placeholders
115
115
  * that will be replaced by first and second coordinate values.
116
- * @param {number} [opt_fractionDigits] The number of digits to include
116
+ * @param {number} [fractionDigits] The number of digits to include
117
117
  * after the decimal point. Default is `0`.
118
118
  * @return {string} Formatted coordinate.
119
119
  * @api
120
120
  */
121
- export function format(coordinate: Coordinate, template: string, opt_fractionDigits?: number | undefined): string;
121
+ export function format(coordinate: Coordinate, template: string, fractionDigits?: number | undefined): string;
122
122
  /**
123
123
  * @param {Coordinate} coordinate1 First coordinate.
124
124
  * @param {Coordinate} coordinate2 Second coordinate.
@@ -204,12 +204,12 @@ export function squaredDistanceToSegment(coordinate: Coordinate, segment: Array<
204
204
  * // out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'
205
205
  *
206
206
  * @param {Coordinate} coordinate Coordinate.
207
- * @param {number} [opt_fractionDigits] The number of digits to include
207
+ * @param {number} [fractionDigits] The number of digits to include
208
208
  * after the decimal point. Default is `0`.
209
209
  * @return {string} Hemisphere, degrees, minutes and seconds.
210
210
  * @api
211
211
  */
212
- export function toStringHDMS(coordinate: Coordinate, opt_fractionDigits?: number | undefined): string;
212
+ export function toStringHDMS(coordinate: Coordinate, fractionDigits?: number | undefined): string;
213
213
  /**
214
214
  * Format a coordinate as a comma delimited string.
215
215
  *
@@ -230,12 +230,12 @@ export function toStringHDMS(coordinate: Coordinate, opt_fractionDigits?: number
230
230
  * // out is now '7.8, 48.0'
231
231
  *
232
232
  * @param {Coordinate} coordinate Coordinate.
233
- * @param {number} [opt_fractionDigits] The number of digits to include
233
+ * @param {number} [fractionDigits] The number of digits to include
234
234
  * after the decimal point. Default is `0`.
235
235
  * @return {string} XY.
236
236
  * @api
237
237
  */
238
- export function toStringXY(coordinate: Coordinate, opt_fractionDigits?: number | undefined): string;
238
+ export function toStringXY(coordinate: Coordinate, fractionDigits?: number | undefined): string;
239
239
  /**
240
240
  * Modifies the provided coordinate in-place to be within the real world
241
241
  * extent. The lower projection extent boundary is inclusive, the upper one
@@ -249,10 +249,10 @@ export function wrapX(coordinate: Coordinate, projection: import("./proj/Project
249
249
  /**
250
250
  * @param {Coordinate} coordinate Coordinate.
251
251
  * @param {import("./proj/Projection.js").default} projection Projection.
252
- * @param {number} [opt_sourceExtentWidth] Width of the source extent.
252
+ * @param {number} [sourceExtentWidth] Width of the source extent.
253
253
  * @return {number} Offset in world widths.
254
254
  */
255
- export function getWorldsAway(coordinate: Coordinate, projection: import("./proj/Projection.js").default, opt_sourceExtentWidth?: number | undefined): number;
255
+ export function getWorldsAway(coordinate: Coordinate, projection: import("./proj/Projection.js").default, sourceExtentWidth?: number | undefined): number;
256
256
  /**
257
257
  * An array of numbers representing an xy coordinate. Example: `[16, 48]`.
258
258
  */
@@ -1 +1 @@
1
- {"version":3,"file":"coordinate.d.ts","sourceRoot":"","sources":["coordinate.js"],"names":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H,gEAHW,OAAO,kBAAkB,EAAE,OAAO,cAsB5C;AAED;;;;;;;;;;;GAWG;AACH,kEALW,iBAAiB,cAgC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qEAHY,gBAAgB,CAa3B;AAED;;;;;;GAMG;AACH,iDANW,MAAM,WACN,MAAM,wCAGL,MAAM,CAiCjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,yDAPW,MAAM,wCAIL,MAAM,CAWjB;AAED;;;;GAIG;AACH,0EAFY,OAAO,CAWlB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,sDAJW,MAAM,cAYhB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,qDAHW,MAAM,cAOhB;AAED;;;;GAIG;AACH,yEAFY,MAAM,CAMjB;AAED;;;;GAIG;AACH,kEAFY,MAAM,CAIjB;AAED;;;;;;;GAOG;AACH,0EAJW,iBAAiB,GAEhB,MAAM,CAIjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,2FAHY,MAAM,CAajB;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,yFAHY,MAAM,CAKjB;AAED;;;;;;;;GAQG;AACH,0DAHW,OAAO,sBAAsB,EAAE,OAAO,cAYhD;AACD;;;;;GAKG;AACH,kEAJW,OAAO,sBAAsB,EAAE,OAAO,2CAErC,MAAM,CAejB;;;;yBA9aY,MAAM,MAAM,CAAC;;;;;sCAQJ,CAAC,WAAW,SAAS,CAAC,KAAG,MAAM"}
package/coordinate.js CHANGED
@@ -135,19 +135,19 @@ export function closestOnSegment(coordinate, segment) {
135
135
  * const out = stringifyFunc(coord);
136
136
  * // out is now '7.85, 47.98'
137
137
  *
138
- * @param {number} [opt_fractionDigits] The number of digits to include
138
+ * @param {number} [fractionDigits] The number of digits to include
139
139
  * after the decimal point. Default is `0`.
140
140
  * @return {CoordinateFormat} Coordinate format.
141
141
  * @api
142
142
  */
143
- export function createStringXY(opt_fractionDigits) {
143
+ export function createStringXY(fractionDigits) {
144
144
  return (
145
145
  /**
146
146
  * @param {Coordinate} coordinate Coordinate.
147
147
  * @return {string} String XY.
148
148
  */
149
149
  function (coordinate) {
150
- return toStringXY(coordinate, opt_fractionDigits);
150
+ return toStringXY(coordinate, fractionDigits);
151
151
  }
152
152
  );
153
153
  }
@@ -155,14 +155,14 @@ export function createStringXY(opt_fractionDigits) {
155
155
  /**
156
156
  * @param {string} hemispheres Hemispheres.
157
157
  * @param {number} degrees Degrees.
158
- * @param {number} [opt_fractionDigits] The number of digits to include
158
+ * @param {number} [fractionDigits] The number of digits to include
159
159
  * after the decimal point. Default is `0`.
160
160
  * @return {string} String.
161
161
  */
162
- export function degreesToStringHDMS(hemispheres, degrees, opt_fractionDigits) {
162
+ export function degreesToStringHDMS(hemispheres, degrees, fractionDigits) {
163
163
  const normalizedDegrees = modulo(degrees + 180, 360) - 180;
164
164
  const x = Math.abs(3600 * normalizedDegrees);
165
- const decimals = opt_fractionDigits || 0;
165
+ const decimals = fractionDigits || 0;
166
166
 
167
167
  let deg = Math.floor(x / 3600);
168
168
  let min = Math.floor((x - deg * 3600) / 60);
@@ -218,16 +218,16 @@ export function degreesToStringHDMS(hemispheres, degrees, opt_fractionDigits) {
218
218
  * @param {Coordinate} coordinate Coordinate.
219
219
  * @param {string} template A template string with `{x}` and `{y}` placeholders
220
220
  * that will be replaced by first and second coordinate values.
221
- * @param {number} [opt_fractionDigits] The number of digits to include
221
+ * @param {number} [fractionDigits] The number of digits to include
222
222
  * after the decimal point. Default is `0`.
223
223
  * @return {string} Formatted coordinate.
224
224
  * @api
225
225
  */
226
- export function format(coordinate, template, opt_fractionDigits) {
226
+ export function format(coordinate, template, fractionDigits) {
227
227
  if (coordinate) {
228
228
  return template
229
- .replace('{x}', coordinate[0].toFixed(opt_fractionDigits))
230
- .replace('{y}', coordinate[1].toFixed(opt_fractionDigits));
229
+ .replace('{x}', coordinate[0].toFixed(fractionDigits))
230
+ .replace('{y}', coordinate[1].toFixed(fractionDigits));
231
231
  } else {
232
232
  return '';
233
233
  }
@@ -353,17 +353,17 @@ export function squaredDistanceToSegment(coordinate, segment) {
353
353
  * // out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'
354
354
  *
355
355
  * @param {Coordinate} coordinate Coordinate.
356
- * @param {number} [opt_fractionDigits] The number of digits to include
356
+ * @param {number} [fractionDigits] The number of digits to include
357
357
  * after the decimal point. Default is `0`.
358
358
  * @return {string} Hemisphere, degrees, minutes and seconds.
359
359
  * @api
360
360
  */
361
- export function toStringHDMS(coordinate, opt_fractionDigits) {
361
+ export function toStringHDMS(coordinate, fractionDigits) {
362
362
  if (coordinate) {
363
363
  return (
364
- degreesToStringHDMS('NS', coordinate[1], opt_fractionDigits) +
364
+ degreesToStringHDMS('NS', coordinate[1], fractionDigits) +
365
365
  ' ' +
366
- degreesToStringHDMS('EW', coordinate[0], opt_fractionDigits)
366
+ degreesToStringHDMS('EW', coordinate[0], fractionDigits)
367
367
  );
368
368
  } else {
369
369
  return '';
@@ -390,13 +390,13 @@ export function toStringHDMS(coordinate, opt_fractionDigits) {
390
390
  * // out is now '7.8, 48.0'
391
391
  *
392
392
  * @param {Coordinate} coordinate Coordinate.
393
- * @param {number} [opt_fractionDigits] The number of digits to include
393
+ * @param {number} [fractionDigits] The number of digits to include
394
394
  * after the decimal point. Default is `0`.
395
395
  * @return {string} XY.
396
396
  * @api
397
397
  */
398
- export function toStringXY(coordinate, opt_fractionDigits) {
399
- return format(coordinate, '{x}, {y}', opt_fractionDigits);
398
+ export function toStringXY(coordinate, fractionDigits) {
399
+ return format(coordinate, '{x}, {y}', fractionDigits);
400
400
  }
401
401
 
402
402
  /**
@@ -421,18 +421,17 @@ export function wrapX(coordinate, projection) {
421
421
  /**
422
422
  * @param {Coordinate} coordinate Coordinate.
423
423
  * @param {import("./proj/Projection.js").default} projection Projection.
424
- * @param {number} [opt_sourceExtentWidth] Width of the source extent.
424
+ * @param {number} [sourceExtentWidth] Width of the source extent.
425
425
  * @return {number} Offset in world widths.
426
426
  */
427
- export function getWorldsAway(coordinate, projection, opt_sourceExtentWidth) {
427
+ export function getWorldsAway(coordinate, projection, sourceExtentWidth) {
428
428
  const projectionExtent = projection.getExtent();
429
429
  let worldsAway = 0;
430
430
  if (
431
431
  projection.canWrapX() &&
432
432
  (coordinate[0] < projectionExtent[0] || coordinate[0] > projectionExtent[2])
433
433
  ) {
434
- const sourceExtentWidth =
435
- opt_sourceExtentWidth || getWidth(projectionExtent);
434
+ sourceExtentWidth = sourceExtentWidth || getWidth(projectionExtent);
436
435
  worldsAway = Math.floor(
437
436
  (coordinate[0] - projectionExtent[0]) / sourceExtentWidth
438
437
  );
package/dom.d.ts CHANGED
@@ -3,13 +3,13 @@
3
3
  */
4
4
  /**
5
5
  * Create an html canvas element and returns its 2d context.
6
- * @param {number} [opt_width] Canvas width.
7
- * @param {number} [opt_height] Canvas height.
8
- * @param {Array<HTMLCanvasElement>} [opt_canvasPool] Canvas pool to take existing canvas from.
9
- * @param {CanvasRenderingContext2DSettings} [opt_Context2DSettings] CanvasRenderingContext2DSettings
6
+ * @param {number} [width] Canvas width.
7
+ * @param {number} [height] Canvas height.
8
+ * @param {Array<HTMLCanvasElement>} [canvasPool] Canvas pool to take existing canvas from.
9
+ * @param {CanvasRenderingContext2DSettings} [settings] CanvasRenderingContext2DSettings
10
10
  * @return {CanvasRenderingContext2D} The context.
11
11
  */
12
- export function createCanvasContext2D(opt_width?: number | undefined, opt_height?: number | undefined, opt_canvasPool?: HTMLCanvasElement[] | undefined, opt_Context2DSettings?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D;
12
+ export function createCanvasContext2D(width?: number | undefined, height?: number | undefined, canvasPool?: HTMLCanvasElement[] | undefined, settings?: CanvasRenderingContext2DSettings | undefined): CanvasRenderingContext2D;
13
13
  /**
14
14
  * Releases canvas memory to avoid exceeding memory limits in Safari.
15
15
  * See https://pqina.nl/blog/total-canvas-memory-use-exceeds-the-maximum-limit/
package/dom.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["dom.js"],"names":[],"mappings":"AAEA;;GAEG;AAGH;;;;;;;GAOG;AACH,gOAFY,wBAAwB,CA2BnC;AAED;;;;GAIG;AACH,uCAFW,wBAAwB,QAOlC;AAED;;;;;;GAMG;AACH,oCAHY,WAAW,GACX,MAAM,CAQjB;AAED;;;;;;GAMG;AACH,qCAHY,WAAW,GACX,MAAM,CAQjB;AAED;;;GAGG;AACH,qCAHW,IAAI,WACJ,IAAI,QAOd;AAED;;;GAGG;AACH,iCAHW,IAAI,GACH,IAAI,GAAC,IAAI,CAIpB;AAED;;GAEG;AACH,qCAFW,IAAI,QAMd;AAED;;;;;;;GAOG;AACH,sCAHW,IAAI,YACJ,MAAM,IAAI,CAAC,QAmCrB"}
1
+ {"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["dom.js"],"names":[],"mappings":"AAEA;;GAEG;AAGH;;;;;;;GAOG;AACH,uMAFY,wBAAwB,CAsBnC;AAED;;;;GAIG;AACH,uCAFW,wBAAwB,QAOlC;AAED;;;;;;GAMG;AACH,oCAHY,WAAW,GACX,MAAM,CAQjB;AAED;;;;;;GAMG;AACH,qCAHY,WAAW,GACX,MAAM,CAQjB;AAED;;;GAGG;AACH,qCAHW,IAAI,WACJ,IAAI,QAOd;AAED;;;GAGG;AACH,iCAHW,IAAI,GACH,IAAI,GAAC,IAAI,CAIpB;AAED;;GAEG;AACH,qCAFW,IAAI,QAMd;AAED;;;;;;;GAOG;AACH,sCAHW,IAAI,YACJ,MAAM,IAAI,CAAC,QAmCrB"}
package/dom.js CHANGED
@@ -7,36 +7,31 @@ import {WORKER_OFFSCREEN_CANVAS} from './has.js';
7
7
  //FIXME Move this function to the canvas module
8
8
  /**
9
9
  * Create an html canvas element and returns its 2d context.
10
- * @param {number} [opt_width] Canvas width.
11
- * @param {number} [opt_height] Canvas height.
12
- * @param {Array<HTMLCanvasElement>} [opt_canvasPool] Canvas pool to take existing canvas from.
13
- * @param {CanvasRenderingContext2DSettings} [opt_Context2DSettings] CanvasRenderingContext2DSettings
10
+ * @param {number} [width] Canvas width.
11
+ * @param {number} [height] Canvas height.
12
+ * @param {Array<HTMLCanvasElement>} [canvasPool] Canvas pool to take existing canvas from.
13
+ * @param {CanvasRenderingContext2DSettings} [settings] CanvasRenderingContext2DSettings
14
14
  * @return {CanvasRenderingContext2D} The context.
15
15
  */
16
- export function createCanvasContext2D(
17
- opt_width,
18
- opt_height,
19
- opt_canvasPool,
20
- opt_Context2DSettings
21
- ) {
16
+ export function createCanvasContext2D(width, height, canvasPool, settings) {
22
17
  /** @type {HTMLCanvasElement|OffscreenCanvas} */
23
18
  let canvas;
24
- if (opt_canvasPool && opt_canvasPool.length) {
25
- canvas = opt_canvasPool.shift();
19
+ if (canvasPool && canvasPool.length) {
20
+ canvas = canvasPool.shift();
26
21
  } else if (WORKER_OFFSCREEN_CANVAS) {
27
- canvas = new OffscreenCanvas(opt_width || 300, opt_height || 300);
22
+ canvas = new OffscreenCanvas(width || 300, height || 300);
28
23
  } else {
29
24
  canvas = document.createElement('canvas');
30
25
  }
31
- if (opt_width) {
32
- canvas.width = opt_width;
26
+ if (width) {
27
+ canvas.width = width;
33
28
  }
34
- if (opt_height) {
35
- canvas.height = opt_height;
29
+ if (height) {
30
+ canvas.height = height;
36
31
  }
37
32
  //FIXME Allow OffscreenCanvasRenderingContext2D as return type
38
33
  return /** @type {CanvasRenderingContext2D} */ (
39
- canvas.getContext('2d', opt_Context2DSettings)
34
+ canvas.getContext('2d', settings)
40
35
  );
41
36
  }
42
37
 
@@ -20,9 +20,9 @@ export type EventTargetLike = EventTarget | Target;
20
20
  */
21
21
  declare class Target extends Disposable {
22
22
  /**
23
- * @param {*} [opt_target] Default event target for dispatched events.
23
+ * @param {*} [target] Default event target for dispatched events.
24
24
  */
25
- constructor(opt_target?: any);
25
+ constructor(target?: any);
26
26
  /**
27
27
  * @private
28
28
  * @type {*}
@@ -68,11 +68,11 @@ declare class Target extends Disposable {
68
68
  */
69
69
  getListeners(type: string): Array<import("../events.js").Listener> | undefined;
70
70
  /**
71
- * @param {string} [opt_type] Type. If not provided,
71
+ * @param {string} [type] Type. If not provided,
72
72
  * `true` will be returned if this event target has any listeners.
73
73
  * @return {boolean} Has listeners.
74
74
  */
75
- hasListener(opt_type?: string | undefined): boolean;
75
+ hasListener(type?: string | undefined): boolean;
76
76
  /**
77
77
  * @param {string} type Type.
78
78
  * @param {import("../events.js").Listener} listener Listener.
@@ -1 +1 @@
1
- {"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["Target.js"],"names":[],"mappings":";8BASa,WAAW,GAAC,MAAM;AAD/B;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,8BA0BC;IAvBC;;;OAGG;IACH,qBAA8B;IAE9B;;;OAGG;IACH,yBAA4B;IAE5B;;;OAGG;IACH,qBAAwB;IAExB;;;OAGG;IACH,mBAAsB;IAGxB;;;OAGG;IACH,uBAHW,MAAM,YACN,OAAO,cAAc,EAAE,QAAQ,QAWzC;IAED;;;;;;;;;OASG;IACH,qBALW,OAAO,YAAY,EAAE,OAAO,GAAC,MAAM,GAClC,OAAO,GAAC,SAAS,CAiD5B;IASD;;;;;;OAMG;IACH,mBAHW,MAAM,GACL,MAAM,OAAO,cAAc,EAAE,QAAQ,CAAC,GAAC,SAAS,CAI3D;IAED;;;;OAIG;IACH,4CAFY,OAAO,CASlB;IAED;;;OAGG;IACH,0BAHW,MAAM,YACN,OAAO,cAAc,EAAE,QAAQ,QAmBzC;CACF"}
1
+ {"version":3,"file":"Target.d.ts","sourceRoot":"","sources":["Target.js"],"names":[],"mappings":";8BASa,WAAW,GAAC,MAAM;AAD/B;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AACH;IACE;;OAEG;IACH,0BA0BC;IAvBC;;;OAGG;IACH,qBAA0B;IAE1B;;;OAGG;IACH,yBAA4B;IAE5B;;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