ol 10.7.1 → 10.7.2

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 (268) hide show
  1. package/Collection.d.ts +1 -3
  2. package/Collection.d.ts.map +1 -1
  3. package/Feature.d.ts +6 -15
  4. package/Feature.d.ts.map +1 -1
  5. package/Feature.js +3 -6
  6. package/Geolocation.d.ts +1 -3
  7. package/Geolocation.d.ts.map +1 -1
  8. package/ImageTile.d.ts +2 -12
  9. package/ImageTile.d.ts.map +1 -1
  10. package/ImageTile.js +5 -32
  11. package/Map.d.ts +7 -27
  12. package/Map.d.ts.map +1 -1
  13. package/Map.js +3 -29
  14. package/Object.d.ts +18 -15
  15. package/Object.d.ts.map +1 -1
  16. package/Object.js +6 -9
  17. package/Overlay.d.ts +1 -3
  18. package/Overlay.d.ts.map +1 -1
  19. package/VectorRenderTile.d.ts +0 -4
  20. package/VectorRenderTile.d.ts.map +1 -1
  21. package/VectorRenderTile.js +0 -2
  22. package/View.d.ts +1 -40
  23. package/View.d.ts.map +1 -1
  24. package/View.js +0 -94
  25. package/colorlike.js +8 -4
  26. package/control/Control.d.ts +1 -3
  27. package/control/Control.d.ts.map +1 -1
  28. package/control/OverviewMap.d.ts +1 -5
  29. package/control/OverviewMap.d.ts.map +1 -1
  30. package/coordinate.d.ts +0 -8
  31. package/coordinate.d.ts.map +1 -1
  32. package/coordinate.js +1 -31
  33. package/dist/ol.d.ts +0 -24
  34. package/dist/ol.d.ts.map +1 -1
  35. package/dist/ol.js +1 -1
  36. package/dist/ol.js.map +1 -1
  37. package/dom.d.ts +0 -15
  38. package/dom.d.ts.map +1 -1
  39. package/dom.js +0 -6
  40. package/featureloader.d.ts +2 -6
  41. package/featureloader.d.ts.map +1 -1
  42. package/format/EsriJSON.d.ts +1 -3
  43. package/format/EsriJSON.d.ts.map +1 -1
  44. package/format/Feature.d.ts +1 -3
  45. package/format/Feature.d.ts.map +1 -1
  46. package/format/GeoJSON.d.ts +2 -6
  47. package/format/GeoJSON.d.ts.map +1 -1
  48. package/format/JSONFeature.d.ts +1 -3
  49. package/format/JSONFeature.d.ts.map +1 -1
  50. package/format/KML.d.ts +0 -9
  51. package/format/KML.d.ts.map +1 -1
  52. package/format/KML.js +0 -7
  53. package/format/TextFeature.d.ts +1 -3
  54. package/format/TextFeature.d.ts.map +1 -1
  55. package/format/TopoJSON.d.ts +1 -3
  56. package/format/TopoJSON.d.ts.map +1 -1
  57. package/format/WKB.d.ts +1 -3
  58. package/format/WKB.d.ts.map +1 -1
  59. package/format/XMLFeature.d.ts +1 -3
  60. package/format/XMLFeature.d.ts.map +1 -1
  61. package/geom/Geometry.d.ts +1 -3
  62. package/geom/Geometry.d.ts.map +1 -1
  63. package/interaction/DragAndDrop.d.ts +2 -6
  64. package/interaction/DragAndDrop.d.ts.map +1 -1
  65. package/interaction/Draw.d.ts +3 -9
  66. package/interaction/Draw.d.ts.map +1 -1
  67. package/interaction/Interaction.d.ts +1 -3
  68. package/interaction/Interaction.d.ts.map +1 -1
  69. package/interaction/Link.js +2 -2
  70. package/interaction/Modify.d.ts +28 -76
  71. package/interaction/Modify.d.ts.map +1 -1
  72. package/interaction/Modify.js +54 -248
  73. package/interaction/Select.d.ts +18 -10
  74. package/interaction/Select.d.ts.map +1 -1
  75. package/interaction/Select.js +89 -54
  76. package/interaction/Snap.d.ts +12 -18
  77. package/interaction/Snap.d.ts.map +1 -1
  78. package/interaction/Translate.d.ts +2 -6
  79. package/interaction/Translate.d.ts.map +1 -1
  80. package/layer/Base.d.ts +8 -19
  81. package/layer/Base.d.ts.map +1 -1
  82. package/layer/Base.js +3 -6
  83. package/layer/BaseImage.d.ts +1 -3
  84. package/layer/BaseImage.d.ts.map +1 -1
  85. package/layer/BaseTile.d.ts +1 -3
  86. package/layer/BaseTile.d.ts.map +1 -1
  87. package/layer/BaseVector.d.ts +1 -3
  88. package/layer/BaseVector.d.ts.map +1 -1
  89. package/layer/Flow.d.ts +2 -2
  90. package/layer/Graticule.d.ts +1 -5
  91. package/layer/Graticule.d.ts.map +1 -1
  92. package/layer/Group.d.ts +2 -8
  93. package/layer/Group.d.ts.map +1 -1
  94. package/layer/Heatmap.d.ts +2 -23
  95. package/layer/Heatmap.d.ts.map +1 -1
  96. package/layer/Heatmap.js +0 -29
  97. package/layer/Layer.d.ts +8 -17
  98. package/layer/Layer.d.ts.map +1 -1
  99. package/layer/Layer.js +2 -5
  100. package/layer/Tile.d.ts +1 -1
  101. package/layer/Vector.d.ts +2 -2
  102. package/layer/Vector.d.ts.map +1 -1
  103. package/layer/VectorImage.d.ts +2 -2
  104. package/layer/VectorImage.d.ts.map +1 -1
  105. package/layer/VectorTile.d.ts +2 -2
  106. package/layer/VectorTile.d.ts.map +1 -1
  107. package/layer/WebGLPoints.d.ts +1 -3
  108. package/layer/WebGLPoints.d.ts.map +1 -1
  109. package/layer/WebGLTile.d.ts +3 -3
  110. package/layer/WebGLTile.d.ts.map +1 -1
  111. package/layer/WebGLVector.d.ts +2 -4
  112. package/layer/WebGLVector.d.ts.map +1 -1
  113. package/layer/WebGLVectorTile.d.ts +2 -2
  114. package/layer/WebGLVectorTile.d.ts.map +1 -1
  115. package/package.json +3 -4
  116. package/proj/proj4.d.ts +6 -43
  117. package/proj/proj4.d.ts.map +1 -1
  118. package/proj/proj4.js +28 -89
  119. package/proj.js +2 -2
  120. package/render/canvas/Builder.d.ts.map +1 -1
  121. package/render/canvas/Builder.js +1 -8
  122. package/render/canvas/Executor.d.ts.map +1 -1
  123. package/render/canvas/Executor.js +3 -49
  124. package/render/canvas/ExecutorGroup.d.ts.map +1 -1
  125. package/render/canvas/ExecutorGroup.js +5 -41
  126. package/render/canvas/Immediate.d.ts +0 -2
  127. package/render/canvas/Immediate.d.ts.map +1 -1
  128. package/render/canvas/Immediate.js +4 -28
  129. package/render/canvas/LineStringBuilder.d.ts +0 -1
  130. package/render/canvas/LineStringBuilder.d.ts.map +1 -1
  131. package/render/canvas/LineStringBuilder.js +5 -15
  132. package/render/canvas/PolygonBuilder.d.ts +0 -2
  133. package/render/canvas/PolygonBuilder.d.ts.map +1 -1
  134. package/render/canvas/PolygonBuilder.js +6 -72
  135. package/render/canvas/style.d.ts.map +1 -1
  136. package/render/canvas/style.js +37 -118
  137. package/render/canvas.d.ts +2 -22
  138. package/render/canvas.d.ts.map +1 -1
  139. package/render/canvas.js +0 -9
  140. package/render/webgl/bufferUtil.d.ts.map +1 -1
  141. package/render/webgl/bufferUtil.js +31 -1
  142. package/renderer/Composite.js +4 -4
  143. package/renderer/canvas/ImageLayer.d.ts +1 -6
  144. package/renderer/canvas/ImageLayer.d.ts.map +1 -1
  145. package/renderer/canvas/ImageLayer.js +0 -14
  146. package/renderer/canvas/TileLayer.d.ts +1 -1
  147. package/renderer/canvas/VectorLayer.d.ts +1 -8
  148. package/renderer/canvas/VectorLayer.d.ts.map +1 -1
  149. package/renderer/canvas/VectorLayer.js +14 -55
  150. package/renderer/canvas/VectorTileLayer.d.ts +1 -1
  151. package/renderer/canvas/VectorTileLayer.d.ts.map +1 -1
  152. package/renderer/canvas/VectorTileLayer.js +0 -2
  153. package/renderer/webgl/TileLayerBase.js +1 -1
  154. package/reproj/Tile.d.ts +2 -7
  155. package/reproj/Tile.d.ts.map +1 -1
  156. package/reproj/Tile.js +6 -12
  157. package/source/Cluster.d.ts +2 -8
  158. package/source/Cluster.d.ts.map +1 -1
  159. package/source/DataTile.d.ts +0 -15
  160. package/source/DataTile.d.ts.map +1 -1
  161. package/source/DataTile.js +0 -9
  162. package/source/GeoTIFF.d.ts +2 -7
  163. package/source/GeoTIFF.d.ts.map +1 -1
  164. package/source/GeoTIFF.js +10 -15
  165. package/source/ImageArcGISRest.d.ts +0 -10
  166. package/source/ImageArcGISRest.d.ts.map +1 -1
  167. package/source/ImageArcGISRest.js +0 -8
  168. package/source/ImageMapGuide.d.ts +0 -10
  169. package/source/ImageMapGuide.d.ts.map +1 -1
  170. package/source/ImageMapGuide.js +0 -8
  171. package/source/ImageStatic.d.ts +0 -5
  172. package/source/ImageStatic.d.ts.map +1 -1
  173. package/source/ImageStatic.js +0 -2
  174. package/source/ImageTile.d.ts +1 -5
  175. package/source/ImageTile.d.ts.map +1 -1
  176. package/source/ImageTile.js +0 -5
  177. package/source/ImageWMS.d.ts +0 -10
  178. package/source/ImageWMS.d.ts.map +1 -1
  179. package/source/ImageWMS.js +0 -10
  180. package/source/OGCMapTile.d.ts +0 -5
  181. package/source/OGCMapTile.d.ts.map +1 -1
  182. package/source/OGCMapTile.js +0 -2
  183. package/source/OSM.d.ts +0 -5
  184. package/source/OSM.d.ts.map +1 -1
  185. package/source/OSM.js +19 -5
  186. package/source/SentinelHub.d.ts +0 -1
  187. package/source/SentinelHub.d.ts.map +1 -1
  188. package/source/SentinelHub.js +0 -5
  189. package/source/Source.d.ts +1 -3
  190. package/source/Source.d.ts.map +1 -1
  191. package/source/TileArcGISRest.d.ts +1 -6
  192. package/source/TileArcGISRest.d.ts.map +1 -1
  193. package/source/TileArcGISRest.js +0 -2
  194. package/source/TileDebug.d.ts +1 -1
  195. package/source/TileImage.d.ts +0 -10
  196. package/source/TileImage.d.ts.map +1 -1
  197. package/source/TileImage.js +3 -16
  198. package/source/TileWMS.d.ts +1 -1
  199. package/source/UrlTile.d.ts +1 -1
  200. package/source/Vector.d.ts +8 -18
  201. package/source/Vector.d.ts.map +1 -1
  202. package/source/Vector.js +3 -3
  203. package/source/WMTS.d.ts +0 -5
  204. package/source/WMTS.d.ts.map +1 -1
  205. package/source/WMTS.js +0 -2
  206. package/source/XYZ.d.ts +0 -5
  207. package/source/XYZ.d.ts.map +1 -1
  208. package/source/XYZ.js +0 -2
  209. package/source/Zoomify.d.ts +2 -7
  210. package/source/Zoomify.d.ts.map +1 -1
  211. package/source/Zoomify.js +3 -5
  212. package/source/arcgisRest.d.ts +0 -5
  213. package/source/arcgisRest.d.ts.map +1 -1
  214. package/source/arcgisRest.js +0 -5
  215. package/source/mapguide.d.ts +0 -4
  216. package/source/mapguide.d.ts.map +1 -1
  217. package/source/mapguide.js +0 -5
  218. package/source/mapserver.d.ts +1 -5
  219. package/source/mapserver.d.ts.map +1 -1
  220. package/source/mapserver.js +0 -4
  221. package/source/ogcTileUtil.d.ts +12 -20
  222. package/source/ogcTileUtil.d.ts.map +1 -1
  223. package/source/ogcTileUtil.js +15 -27
  224. package/source/static.d.ts +0 -5
  225. package/source/static.d.ts.map +1 -1
  226. package/source/static.js +0 -4
  227. package/source/wms.d.ts +0 -5
  228. package/source/wms.d.ts.map +1 -1
  229. package/source/wms.js +0 -5
  230. package/style/Circle.d.ts +14 -0
  231. package/style/Circle.d.ts.map +1 -1
  232. package/style/Circle.js +11 -0
  233. package/style/Fill.js +1 -1
  234. package/style/Icon.d.ts +0 -19
  235. package/style/Icon.d.ts.map +1 -1
  236. package/style/Icon.js +2 -55
  237. package/style/IconImage.d.ts +5 -14
  238. package/style/IconImage.d.ts.map +1 -1
  239. package/style/IconImage.js +18 -28
  240. package/style/IconImageCache.d.ts +8 -4
  241. package/style/IconImageCache.d.ts.map +1 -1
  242. package/style/IconImageCache.js +13 -11
  243. package/style/RegularShape.d.ts +0 -12
  244. package/style/RegularShape.d.ts.map +1 -1
  245. package/style/RegularShape.js +4 -36
  246. package/style/Stroke.d.ts +0 -25
  247. package/style/Stroke.d.ts.map +1 -1
  248. package/style/Stroke.js +0 -28
  249. package/style/Style.d.ts +1 -1
  250. package/style/flat.d.ts +2 -2
  251. package/style/flat.js +1 -1
  252. package/tilegrid/TileGrid.d.ts +0 -5
  253. package/tilegrid/TileGrid.d.ts.map +1 -1
  254. package/tilegrid/TileGrid.js +0 -8
  255. package/util.js +1 -1
  256. package/worker/webgl.js +1 -1
  257. package/geom/flat/lineoffset.d.ts +0 -45
  258. package/geom/flat/lineoffset.d.ts.map +0 -1
  259. package/geom/flat/lineoffset.js +0 -173
  260. package/source/GeoZarr.d.ts +0 -163
  261. package/source/GeoZarr.d.ts.map +0 -1
  262. package/source/GeoZarr.js +0 -472
  263. package/source/OGCMap.d.ts +0 -180
  264. package/source/OGCMap.d.ts.map +0 -1
  265. package/source/OGCMap.js +0 -227
  266. package/source/ogcMapUtil.d.ts +0 -88
  267. package/source/ogcMapUtil.d.ts.map +0 -1
  268. package/source/ogcMapUtil.js +0 -121
@@ -5,7 +5,6 @@ declare class CanvasLineStringBuilder extends CanvasBuilder {
5
5
  * @param {number} offset Offset.
6
6
  * @param {number} end End.
7
7
  * @param {number} stride Stride.
8
- * @param {number} [strokeOffset] Stroke Offset in pixels.
9
8
  * @private
10
9
  * @return {number} end.
11
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"LineStringBuilder.d.ts","sourceRoot":"","sources":["LineStringBuilder.js"],"names":[],"mappings":";AAUA;IAWE;;;;;;;;OAQG;IACH,6BAuBC;CA2HF;0BA5KyB,cAAc"}
1
+ {"version":3,"file":"LineStringBuilder.d.ts","sourceRoot":"","sources":["LineStringBuilder.js"],"names":[],"mappings":";AAUA;IAWE;;;;;;;OAOG;IACH,6BAkBC;CAuHF;0BAlKyB,cAAc"}
@@ -24,11 +24,10 @@ class CanvasLineStringBuilder extends CanvasBuilder {
24
24
  * @param {number} offset Offset.
25
25
  * @param {number} end End.
26
26
  * @param {number} stride Stride.
27
- * @param {number} [strokeOffset] Stroke Offset in pixels.
28
27
  * @private
29
28
  * @return {number} end.
30
29
  */
31
- drawFlatCoordinates_(flatCoordinates, offset, end, stride, strokeOffset) {
30
+ drawFlatCoordinates_(flatCoordinates, offset, end, stride) {
32
31
  const myBegin = this.coordinates.length;
33
32
  const myEnd = this.appendFlatLineCoordinates(
34
33
  flatCoordinates,
@@ -38,18 +37,13 @@ class CanvasLineStringBuilder extends CanvasBuilder {
38
37
  false,
39
38
  false,
40
39
  );
41
- this.instructions.push([
40
+ const moveToLineToInstruction = [
42
41
  CanvasInstruction.MOVE_TO_LINE_TO,
43
42
  myBegin,
44
43
  myEnd,
45
- strokeOffset * this.pixelRatio,
46
- ]);
47
- this.hitDetectionInstructions.push([
48
- CanvasInstruction.MOVE_TO_LINE_TO,
49
- myBegin,
50
- myEnd,
51
- strokeOffset,
52
- ]);
44
+ ];
45
+ this.instructions.push(moveToLineToInstruction);
46
+ this.hitDetectionInstructions.push(moveToLineToInstruction);
53
47
  return end;
54
48
  }
55
49
 
@@ -63,7 +57,6 @@ class CanvasLineStringBuilder extends CanvasBuilder {
63
57
  const state = this.state;
64
58
  const strokeStyle = state.strokeStyle;
65
59
  const lineWidth = state.lineWidth;
66
- const strokeOffset = state.strokeOffset;
67
60
  if (strokeStyle === undefined || lineWidth === undefined) {
68
61
  return;
69
62
  }
@@ -89,7 +82,6 @@ class CanvasLineStringBuilder extends CanvasBuilder {
89
82
  0,
90
83
  flatCoordinates.length,
91
84
  stride,
92
- strokeOffset,
93
85
  );
94
86
  this.hitDetectionInstructions.push(strokeInstruction);
95
87
  this.endGeometry(feature);
@@ -105,7 +97,6 @@ class CanvasLineStringBuilder extends CanvasBuilder {
105
97
  const state = this.state;
106
98
  const strokeStyle = state.strokeStyle;
107
99
  const lineWidth = state.lineWidth;
108
- const strokeOffset = state.strokeOffset;
109
100
  if (strokeStyle === undefined || lineWidth === undefined) {
110
101
  return;
111
102
  }
@@ -134,7 +125,6 @@ class CanvasLineStringBuilder extends CanvasBuilder {
134
125
  offset,
135
126
  /** @type {number} */ (ends[i]),
136
127
  stride,
137
- strokeOffset,
138
128
  );
139
129
  }
140
130
  this.hitDetectionInstructions.push(strokeInstruction);
@@ -5,7 +5,6 @@ declare class CanvasPolygonBuilder extends CanvasBuilder {
5
5
  * @param {number} offset Offset.
6
6
  * @param {Array<number>} ends Ends.
7
7
  * @param {number} stride Stride.
8
- * @param {number} [strokeOffset] Stroke Offset in pixels.
9
8
  * @private
10
9
  * @return {number} End.
11
10
  */
@@ -14,7 +13,6 @@ declare class CanvasPolygonBuilder extends CanvasBuilder {
14
13
  * @private
15
14
  */
16
15
  private setFillStrokeStyles_;
17
- handleStrokeOffset_(drawGeometryCallback: any): boolean;
18
16
  }
19
17
  import CanvasBuilder from './Builder.js';
20
18
  //# sourceMappingURL=PolygonBuilder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PolygonBuilder.d.ts","sourceRoot":"","sources":["PolygonBuilder.js"],"names":[],"mappings":";AAiBA;IAWE;;;;;;;;OAQG;IACH,8BAiDC;IA0MD;;OAEG;IACH,6BAIC;IAED,wDA4BC;CACF;0BA7TyB,cAAc"}
1
+ {"version":3,"file":"PolygonBuilder.d.ts","sourceRoot":"","sources":["PolygonBuilder.js"],"names":[],"mappings":";AAiBA;IAWE;;;;;;;OAOG;IACH,8BA0CC;IA8KD;;OAEG;IACH,6BAIC;CACF;0BA3PyB,cAAc"}
@@ -31,11 +31,10 @@ class CanvasPolygonBuilder extends CanvasBuilder {
31
31
  * @param {number} offset Offset.
32
32
  * @param {Array<number>} ends Ends.
33
33
  * @param {number} stride Stride.
34
- * @param {number} [strokeOffset] Stroke Offset in pixels.
35
34
  * @private
36
35
  * @return {number} End.
37
36
  */
38
- drawFlatCoordinatess_(flatCoordinates, offset, ends, stride, strokeOffset) {
37
+ drawFlatCoordinatess_(flatCoordinates, offset, ends, stride) {
39
38
  const state = this.state;
40
39
  const fill = state.fillStyle !== undefined;
41
40
  const stroke = state.strokeStyle !== undefined;
@@ -53,20 +52,13 @@ class CanvasPolygonBuilder extends CanvasBuilder {
53
52
  true,
54
53
  !stroke,
55
54
  );
56
- this.instructions.push([
55
+ const moveToLineToInstruction = [
57
56
  CanvasInstruction.MOVE_TO_LINE_TO,
58
57
  myBegin,
59
58
  myEnd,
60
- strokeOffset * this.pixelRatio,
61
- true,
62
- ]);
63
- this.hitDetectionInstructions.push([
64
- CanvasInstruction.MOVE_TO_LINE_TO,
65
- myBegin,
66
- myEnd,
67
- strokeOffset,
68
- true,
69
- ]);
59
+ ];
60
+ this.instructions.push(moveToLineToInstruction);
61
+ this.hitDetectionInstructions.push(moveToLineToInstruction);
70
62
  if (stroke) {
71
63
  // Performance optimization: only call closePath() when we have a stroke.
72
64
  // Otherwise the ring is closed already (see appendFlatLineCoordinates above).
@@ -96,18 +88,9 @@ class CanvasPolygonBuilder extends CanvasBuilder {
96
88
  const state = this.state;
97
89
  const fillStyle = state.fillStyle;
98
90
  const strokeStyle = state.strokeStyle;
99
- const strokeOffset = state.strokeOffset;
100
91
  if (fillStyle === undefined && strokeStyle === undefined) {
101
92
  return;
102
93
  }
103
-
104
- if (
105
- this.handleStrokeOffset_(() =>
106
- this.drawCircle(circleGeometry, feature, index),
107
- )
108
- ) {
109
- return;
110
- }
111
94
  this.setFillStrokeStyles_();
112
95
  this.beginGeometry(circleGeometry, feature, index);
113
96
  if (state.fillStyle !== undefined) {
@@ -139,7 +122,7 @@ class CanvasPolygonBuilder extends CanvasBuilder {
139
122
  false,
140
123
  false,
141
124
  );
142
- const circleInstruction = [CanvasInstruction.CIRCLE, myBegin, strokeOffset];
125
+ const circleInstruction = [CanvasInstruction.CIRCLE, myBegin];
143
126
  this.instructions.push(beginPathInstruction, circleInstruction);
144
127
  this.hitDetectionInstructions.push(beginPathInstruction, circleInstruction);
145
128
  if (state.fillStyle !== undefined) {
@@ -163,18 +146,9 @@ class CanvasPolygonBuilder extends CanvasBuilder {
163
146
  const state = this.state;
164
147
  const fillStyle = state.fillStyle;
165
148
  const strokeStyle = state.strokeStyle;
166
- const strokeOffset = state.strokeOffset;
167
149
  if (fillStyle === undefined && strokeStyle === undefined) {
168
150
  return;
169
151
  }
170
- if (
171
- this.handleStrokeOffset_(() =>
172
- this.drawPolygon(polygonGeometry, feature, index),
173
- )
174
- ) {
175
- return;
176
- }
177
-
178
152
  this.setFillStrokeStyles_();
179
153
  this.beginGeometry(polygonGeometry, feature, index);
180
154
  if (state.fillStyle !== undefined) {
@@ -203,7 +177,6 @@ class CanvasPolygonBuilder extends CanvasBuilder {
203
177
  0,
204
178
  /** @type {Array<number>} */ (ends),
205
179
  stride,
206
- strokeOffset,
207
180
  );
208
181
  this.endGeometry(feature);
209
182
  }
@@ -218,17 +191,9 @@ class CanvasPolygonBuilder extends CanvasBuilder {
218
191
  const state = this.state;
219
192
  const fillStyle = state.fillStyle;
220
193
  const strokeStyle = state.strokeStyle;
221
- const strokeOffset = state.strokeOffset;
222
194
  if (fillStyle === undefined && strokeStyle === undefined) {
223
195
  return;
224
196
  }
225
- if (
226
- this.handleStrokeOffset_(() =>
227
- this.drawMultiPolygon(multiPolygonGeometry, feature, index),
228
- )
229
- ) {
230
- return;
231
- }
232
197
  this.setFillStrokeStyles_();
233
198
  this.beginGeometry(multiPolygonGeometry, feature, index);
234
199
  if (state.fillStyle !== undefined) {
@@ -259,7 +224,6 @@ class CanvasPolygonBuilder extends CanvasBuilder {
259
224
  offset,
260
225
  endss[i],
261
226
  stride,
262
- strokeOffset,
263
227
  );
264
228
  }
265
229
  this.endGeometry(feature);
@@ -294,36 +258,6 @@ class CanvasPolygonBuilder extends CanvasBuilder {
294
258
  this.updateFillStyle(state, this.createFill);
295
259
  this.updateStrokeStyle(state, this.applyStroke);
296
260
  }
297
-
298
- handleStrokeOffset_(drawGeometryCallback) {
299
- const state = this.state;
300
- const fillStyle = state.fillStyle;
301
- const strokeStyle = state.strokeStyle;
302
- const strokeOffset = state.strokeOffset;
303
-
304
- // In case both fill style and stroke style are defined and the stroke style has an offset,
305
- // the stroke and fill should be done in separate steps, because offset stroke shape will
306
- // be different from the original shape used for the fill.
307
- if (
308
- Math.abs(strokeOffset) > 0 &&
309
- fillStyle !== undefined &&
310
- strokeStyle !== undefined
311
- ) {
312
- // First do only fill
313
- state.strokeStyle = undefined;
314
- state.strokeOffset = 0;
315
- drawGeometryCallback();
316
- // Now separately do the stroke
317
- state.fillStyle = undefined;
318
- state.strokeStyle = strokeStyle;
319
- state.strokeOffset = strokeOffset;
320
- drawGeometryCallback();
321
- // Reset the state to the original
322
- state.fillStyle = fillStyle;
323
- return true;
324
- }
325
- return false;
326
- }
327
261
  }
328
262
 
329
263
  export default CanvasPolygonBuilder;
@@ -1 +1 @@
1
- {"version":3,"file":"style.d.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efix, context) {
392
392
  context,
393
393
  );
394
394
 
395
- const evaluateOffset = numberEvaluator(
396
- flatStyle,
397
- prefix + 'stroke-offset',
398
- context,
399
- );
400
-
401
395
  const stroke = new Stroke();
402
396
  return function (context) {
403
397
  if (evaluateColor) {
@@ -444,10 +438,6 @@ function buildStroke(flatStyle, prefix, context) {
444
438
  stroke.setMiterLimit(evaluateMiterLimit(context));
445
439
  }
446
440
 
447
- if (evaluateOffset) {
448
- stroke.setOffset(evaluateOffset(context));
449
- }
450
-
451
441
  return stroke;
452
442
  };
453
443
  }
@@ -766,20 +756,7 @@ function buildIcon(flatStyle, context) {
766
756
  flatStyle,
767
757
  prefix + 'anchor-y-units',
768
758
  );
769
- const colorValue = getExpressionValue(flatStyle, prefix + 'color');
770
- let color;
771
- let evaluateColor = null;
772
- if (colorValue !== undefined) {
773
- const isColorExpression =
774
- Array.isArray(colorValue) &&
775
- colorValue.length > 0 &&
776
- typeof colorValue[0] === 'string';
777
- if (isColorExpression) {
778
- evaluateColor = colorLikeEvaluator(flatStyle, prefix + 'color', context);
779
- } else {
780
- color = requireColorLike(colorValue, prefix + 'color');
781
- }
782
- }
759
+ const color = optionalColorLike(flatStyle, prefix + 'color');
783
760
  const crossOrigin = optionalString(flatStyle, prefix + 'cross-origin');
784
761
  const offset = optionalNumberArray(flatStyle, prefix + 'offset');
785
762
  const offsetOrigin = optionalIconOrigin(flatStyle, prefix + 'offset-origin');
@@ -791,11 +768,12 @@ function buildIcon(flatStyle, context) {
791
768
  prefix + 'declutter-mode',
792
769
  );
793
770
 
794
- const iconOptions = {
771
+ const icon = new Icon({
795
772
  src,
796
773
  anchorOrigin,
797
774
  anchorXUnits,
798
775
  anchorYUnits,
776
+ color,
799
777
  crossOrigin,
800
778
  offset,
801
779
  offsetOrigin,
@@ -803,22 +781,9 @@ function buildIcon(flatStyle, context) {
803
781
  width,
804
782
  size,
805
783
  declutterMode,
806
- };
807
-
808
- let icon = null;
784
+ });
809
785
 
810
786
  return function (context) {
811
- if (!icon) {
812
- // lazily create the icon to allow for expression evaluation
813
- const initialColor = evaluateColor ? evaluateColor(context) : color;
814
- icon = new Icon(
815
- initialColor !== undefined
816
- ? Object.assign({}, iconOptions, {color: initialColor})
817
- : Object.assign({}, iconOptions),
818
- );
819
- } else if (evaluateColor) {
820
- icon.setColor(evaluateColor(context));
821
- }
822
787
  if (evaluateOpacity) {
823
788
  icon.setOpacity(evaluateOpacity(context));
824
789
  }
@@ -858,18 +823,7 @@ function buildShape(flatStyle, context) {
858
823
  const pointsName = prefix + 'points';
859
824
  const radiusName = prefix + 'radius';
860
825
  const points = requireNumber(flatStyle[pointsName], pointsName);
861
- if (!(radiusName in flatStyle)) {
862
- throw new Error(`Expected a number for ${radiusName}`);
863
- }
864
- const evaluateRadius = numberEvaluator(flatStyle, radiusName, context);
865
- const initialRadius =
866
- typeof flatStyle[radiusName] === 'number' ? flatStyle[radiusName] : 5;
867
- const radius2Name = prefix + 'radius2';
868
- const evaluateRadius2 = numberEvaluator(flatStyle, radius2Name, context);
869
- const initialRadius2 =
870
- typeof flatStyle[radius2Name] === 'number'
871
- ? flatStyle[radius2Name]
872
- : undefined;
826
+ const radius = requireNumber(flatStyle[radiusName], radiusName);
873
827
 
874
828
  // settable properties
875
829
  const evaluateFill = buildFill(flatStyle, prefix, context);
@@ -892,6 +846,7 @@ function buildShape(flatStyle, context) {
892
846
  );
893
847
 
894
848
  // the remaining properties are not currently settable
849
+ const radius2 = optionalNumber(flatStyle, prefix + 'radius2');
895
850
  const angle = optionalNumber(flatStyle, prefix + 'angle');
896
851
  const declutterMode = optionalDeclutterMode(
897
852
  flatStyle,
@@ -900,19 +855,13 @@ function buildShape(flatStyle, context) {
900
855
 
901
856
  const shape = new RegularShape({
902
857
  points,
903
- radius: initialRadius,
904
- radius2: initialRadius2,
858
+ radius,
859
+ radius2,
905
860
  angle,
906
861
  declutterMode,
907
862
  });
908
863
 
909
864
  return function (context) {
910
- if (evaluateRadius) {
911
- shape.setRadius(evaluateRadius(context));
912
- }
913
- if (evaluateRadius2) {
914
- shape.setRadius2(evaluateRadius2(context));
915
- }
916
865
  if (evaluateFill) {
917
866
  shape.setFill(evaluateFill(context));
918
867
  }
@@ -1003,19 +952,6 @@ function buildCircle(flatStyle, context) {
1003
952
  };
1004
953
  }
1005
954
 
1006
- /**
1007
- * @param {FlatStyle} flatStyle The flat style.
1008
- * @param {string} name The property name.
1009
- * @return {any|undefined} The encoded value, or undefined if not provided.
1010
- */
1011
- function getExpressionValue(flatStyle, name) {
1012
- if (!(name in flatStyle)) {
1013
- return undefined;
1014
- }
1015
- const value = flatStyle[name];
1016
- return value === undefined ? undefined : value;
1017
- }
1018
-
1019
955
  /**
1020
956
  * @param {FlatStyle} flatStyle The flat style.
1021
957
  * @param {string} name The property name.
@@ -1023,11 +959,10 @@ function getExpressionValue(flatStyle, name) {
1023
959
  * @return {import('../../expr/cpu.js').NumberEvaluator|undefined} The expression evaluator or undefined.
1024
960
  */
1025
961
  function numberEvaluator(flatStyle, name, context) {
1026
- const encoded = getExpressionValue(flatStyle, name);
1027
- if (encoded === undefined) {
962
+ if (!(name in flatStyle)) {
1028
963
  return undefined;
1029
964
  }
1030
- const evaluator = buildExpression(encoded, NumberType, context);
965
+ const evaluator = buildExpression(flatStyle[name], NumberType, context);
1031
966
  return function (context) {
1032
967
  return requireNumber(evaluator(context), name);
1033
968
  };
@@ -1040,11 +975,10 @@ function numberEvaluator(flatStyle, name, context) {
1040
975
  * @return {import('../../expr/cpu.js').StringEvaluator?} The expression evaluator.
1041
976
  */
1042
977
  function stringEvaluator(flatStyle, name, context) {
1043
- const encoded = getExpressionValue(flatStyle, name);
1044
- if (encoded === undefined) {
978
+ if (!(name in flatStyle)) {
1045
979
  return null;
1046
980
  }
1047
- const evaluator = buildExpression(encoded, StringType, context);
981
+ const evaluator = buildExpression(flatStyle[name], StringType, context);
1048
982
  return function (context) {
1049
983
  return requireString(evaluator(context), name);
1050
984
  };
@@ -1088,11 +1022,10 @@ function patternEvaluator(flatStyle, prefix, context) {
1088
1022
  * @return {import('../../expr/cpu.js').BooleanEvaluator?} The expression evaluator.
1089
1023
  */
1090
1024
  function booleanEvaluator(flatStyle, name, context) {
1091
- const encoded = getExpressionValue(flatStyle, name);
1092
- if (encoded === undefined) {
1025
+ if (!(name in flatStyle)) {
1093
1026
  return null;
1094
1027
  }
1095
- const evaluator = buildExpression(encoded, BooleanType, context);
1028
+ const evaluator = buildExpression(flatStyle[name], BooleanType, context);
1096
1029
  return function (context) {
1097
1030
  const value = evaluator(context);
1098
1031
  if (typeof value !== 'boolean') {
@@ -1109,11 +1042,10 @@ function booleanEvaluator(flatStyle, name, context) {
1109
1042
  * @return {import('../../expr/cpu.js').ColorLikeEvaluator?} The expression evaluator.
1110
1043
  */
1111
1044
  function colorLikeEvaluator(flatStyle, name, context) {
1112
- const encoded = getExpressionValue(flatStyle, name);
1113
- if (encoded === undefined) {
1045
+ if (!(name in flatStyle)) {
1114
1046
  return null;
1115
1047
  }
1116
- const evaluator = buildExpression(encoded, ColorType, context);
1048
+ const evaluator = buildExpression(flatStyle[name], ColorType, context);
1117
1049
  return function (context) {
1118
1050
  return requireColorLike(evaluator(context), name);
1119
1051
  };
@@ -1126,33 +1058,10 @@ function colorLikeEvaluator(flatStyle, name, context) {
1126
1058
  * @return {import('../../expr/cpu.js').NumberArrayEvaluator?} The expression evaluator.
1127
1059
  */
1128
1060
  function numberArrayEvaluator(flatStyle, name, context) {
1129
- const encoded = getExpressionValue(flatStyle, name);
1130
- if (encoded === undefined) {
1061
+ if (!(name in flatStyle)) {
1131
1062
  return null;
1132
1063
  }
1133
- if (
1134
- Array.isArray(encoded) &&
1135
- (encoded.length === 0 || typeof encoded[0] !== 'string')
1136
- ) {
1137
- /** @type {Array<import('../../expr/cpu.js').NumberEvaluator>} */
1138
- const evaluators = encoded.map((value, index) => {
1139
- if (typeof value === 'number') {
1140
- return () => value;
1141
- }
1142
- const evaluator = buildExpression(value, NumberType, context);
1143
- return function (context) {
1144
- return requireNumber(evaluator(context), `${name}[${index}]`);
1145
- };
1146
- });
1147
- return function (context) {
1148
- const array = new Array(evaluators.length);
1149
- for (let i = 0; i < evaluators.length; ++i) {
1150
- array[i] = evaluators[i](context);
1151
- }
1152
- return array;
1153
- };
1154
- }
1155
- const evaluator = buildExpression(encoded, NumberArrayType, context);
1064
+ const evaluator = buildExpression(flatStyle[name], NumberArrayType, context);
1156
1065
  return function (context) {
1157
1066
  return requireNumberArray(evaluator(context), name);
1158
1067
  };
@@ -1165,11 +1074,10 @@ function numberArrayEvaluator(flatStyle, name, context) {
1165
1074
  * @return {import('../../expr/cpu.js').CoordinateEvaluator?} The expression evaluator.
1166
1075
  */
1167
1076
  function coordinateEvaluator(flatStyle, name, context) {
1168
- const encoded = getExpressionValue(flatStyle, name);
1169
- if (encoded === undefined) {
1077
+ if (!(name in flatStyle)) {
1170
1078
  return null;
1171
1079
  }
1172
- const evaluator = buildExpression(encoded, NumberArrayType, context);
1080
+ const evaluator = buildExpression(flatStyle[name], NumberArrayType, context);
1173
1081
  return function (context) {
1174
1082
  const array = requireNumberArray(evaluator(context), name);
1175
1083
  if (array.length !== 2) {
@@ -1186,11 +1094,10 @@ function coordinateEvaluator(flatStyle, name, context) {
1186
1094
  * @return {import('../../expr/cpu.js').SizeEvaluator?} The expression evaluator.
1187
1095
  */
1188
1096
  function sizeEvaluator(flatStyle, name, context) {
1189
- const encoded = getExpressionValue(flatStyle, name);
1190
- if (encoded === undefined) {
1097
+ if (!(name in flatStyle)) {
1191
1098
  return null;
1192
1099
  }
1193
- const evaluator = buildExpression(encoded, NumberArrayType, context);
1100
+ const evaluator = buildExpression(flatStyle[name], NumberArrayType, context);
1194
1101
  return function (context) {
1195
1102
  return requireSize(evaluator(context), name);
1196
1103
  };
@@ -1203,12 +1110,11 @@ function sizeEvaluator(flatStyle, name, context) {
1203
1110
  * @return {import('../../expr/cpu.js').SizeLikeEvaluator?} The expression evaluator.
1204
1111
  */
1205
1112
  function sizeLikeEvaluator(flatStyle, name, context) {
1206
- const encoded = getExpressionValue(flatStyle, name);
1207
- if (encoded === undefined) {
1113
+ if (!(name in flatStyle)) {
1208
1114
  return null;
1209
1115
  }
1210
1116
  const evaluator = buildExpression(
1211
- encoded,
1117
+ flatStyle[name],
1212
1118
  NumberArrayType | NumberType,
1213
1119
  context,
1214
1120
  );
@@ -1346,6 +1252,19 @@ function optionalDeclutterMode(flatStyle, property) {
1346
1252
  return encoded;
1347
1253
  }
1348
1254
 
1255
+ /**
1256
+ * @param {FlatStyle} flatStyle The flat style.
1257
+ * @param {string} property The symbolizer property.
1258
+ * @return {string|Array<number>|undefined} A string or an array of color values or undefined.
1259
+ */
1260
+ function optionalColorLike(flatStyle, property) {
1261
+ const encoded = flatStyle[property];
1262
+ if (encoded === undefined) {
1263
+ return undefined;
1264
+ }
1265
+ return requireColorLike(encoded, property);
1266
+ }
1267
+
1349
1268
  /**
1350
1269
  * @param {any} value The value.
1351
1270
  * @param {string} property The property.
@@ -70,7 +70,6 @@ export function drawImageOrLabel(context: CanvasRenderingContext2D | import("../
70
70
  * @property {CanvasLineJoin} [currentLineJoin] Current LineJoin.
71
71
  * @property {number} [currentLineWidth] Current LineWidth.
72
72
  * @property {number} [currentMiterLimit] Current MiterLimit.
73
- * @property {number} [currentStrokeOffset] Current StrokeOffset.
74
73
  * @property {number} [lastStroke] Last stroke.
75
74
  * @property {import("../colorlike.js").ColorLike} [fillStyle] FillStyle.
76
75
  * @property {import("../colorlike.js").ColorLike} [strokeStyle] StrokeStyle.
@@ -80,7 +79,6 @@ export function drawImageOrLabel(context: CanvasRenderingContext2D | import("../
80
79
  * @property {CanvasLineJoin} [lineJoin] LineJoin.
81
80
  * @property {number} [lineWidth] LineWidth.
82
81
  * @property {number} [miterLimit] MiterLimit.
83
- * @property {number} [strokeOffset] StrokeOffset.
84
82
  * @property {number} [fillPatternScale] Fill pattern scale.
85
83
  */
86
84
  /**
@@ -91,7 +89,6 @@ export function drawImageOrLabel(context: CanvasRenderingContext2D | import("../
91
89
  * @property {CanvasLineJoin} lineJoin LineJoin.
92
90
  * @property {number} lineWidth LineWidth.
93
91
  * @property {number} miterLimit MiterLimit.
94
- * @property {number} [strokeOffset] StrokeOffset.
95
92
  * @property {import("../colorlike.js").ColorLike} strokeStyle StrokeStyle.
96
93
  */
97
94
  /**
@@ -156,11 +153,6 @@ export const defaultLineJoin: CanvasLineJoin;
156
153
  * @type {number}
157
154
  */
158
155
  export const defaultMiterLimit: number;
159
- /**
160
- * @const
161
- * @type {number}
162
- */
163
- export const defaultStrokeOffset: number;
164
156
  /**
165
157
  * @const
166
158
  * @type {import("../colorlike.js").ColorLike}
@@ -252,10 +244,6 @@ export type FillStrokeState = {
252
244
  * Current MiterLimit.
253
245
  */
254
246
  currentMiterLimit?: number | undefined;
255
- /**
256
- * Current StrokeOffset.
257
- */
258
- currentStrokeOffset?: number | undefined;
259
247
  /**
260
248
  * Last stroke.
261
249
  */
@@ -292,10 +280,6 @@ export type FillStrokeState = {
292
280
  * MiterLimit.
293
281
  */
294
282
  miterLimit?: number | undefined;
295
- /**
296
- * StrokeOffset.
297
- */
298
- strokeOffset?: number | undefined;
299
283
  /**
300
284
  * Fill pattern scale.
301
285
  */
@@ -326,10 +310,6 @@ export type StrokeState = {
326
310
  * MiterLimit.
327
311
  */
328
312
  miterLimit: number;
329
- /**
330
- * StrokeOffset.
331
- */
332
- strokeOffset?: number | undefined;
333
313
  /**
334
314
  * StrokeStyle.
335
315
  */
@@ -371,11 +351,11 @@ export type TextState = {
371
351
  /**
372
352
  * BackgroundFill.
373
353
  */
374
- backgroundFill?: import("../style.js").Fill | undefined;
354
+ backgroundFill?: import("../style/Fill.js").default | undefined;
375
355
  /**
376
356
  * BackgroundStroke.
377
357
  */
378
- backgroundStroke?: import("../style.js").Stroke | undefined;
358
+ backgroundStroke?: import("../style/Stroke.js").default | undefined;
379
359
  /**
380
360
  * Scale.
381
361
  */
@@ -1 +1 @@
1
- {"version":3,"file":"canvas.d.ts","sourceRoot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