@vaadin/bundles 25.0.0-alpha3 → 25.0.0-alpha5

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 (192) hide show
  1. package/node_modules_ol_ImageCanvas_js.js +76 -83
  2. package/node_modules_ol_ImageCanvas_js.js.map +1 -1
  3. package/node_modules_ol_TileRange_js.js +128 -110
  4. package/node_modules_ol_TileRange_js.js.map +1 -1
  5. package/node_modules_ol_Tile_js.js +279 -0
  6. package/node_modules_ol_Tile_js.js.map +1 -0
  7. package/node_modules_ol_VectorRenderTile_js.js +428 -143
  8. package/node_modules_ol_VectorRenderTile_js.js.map +1 -1
  9. package/node_modules_ol_VectorTile_js.js +405 -119
  10. package/node_modules_ol_VectorTile_js.js.map +1 -1
  11. package/node_modules_ol_control_MousePosition_js.js +327 -0
  12. package/node_modules_ol_control_MousePosition_js.js.map +1 -0
  13. package/node_modules_ol_control_ZoomToExtent_js.js +118 -0
  14. package/node_modules_ol_control_ZoomToExtent_js.js.map +1 -0
  15. package/node_modules_ol_events_SnapEvent_js.js +79 -0
  16. package/node_modules_ol_events_SnapEvent_js.js.map +1 -0
  17. package/node_modules_ol_featureloader_js.js +205 -0
  18. package/node_modules_ol_featureloader_js.js.map +1 -0
  19. package/node_modules_ol_geom_Circle_js.js +300 -0
  20. package/node_modules_ol_geom_Circle_js.js.map +1 -0
  21. package/node_modules_ol_geom_GeometryCollection_js.js +369 -0
  22. package/node_modules_ol_geom_GeometryCollection_js.js.map +1 -0
  23. package/node_modules_ol_geom_MultiPoint_js.js +228 -0
  24. package/node_modules_ol_geom_MultiPoint_js.js.map +1 -0
  25. package/node_modules_ol_geom_flat_center_js.js +47 -0
  26. package/node_modules_ol_geom_flat_center_js.js.map +1 -0
  27. package/node_modules_ol_geom_flat_geodesic_js.js +123 -88
  28. package/node_modules_ol_geom_flat_geodesic_js.js.map +1 -1
  29. package/node_modules_ol_geom_flat_interpolate_js.js +230 -0
  30. package/node_modules_ol_geom_flat_interpolate_js.js.map +1 -0
  31. package/node_modules_ol_geom_flat_length_js-_375a0.js +58 -0
  32. package/node_modules_ol_geom_flat_length_js-_375a0.js.map +1 -0
  33. package/node_modules_ol_geom_flat_length_js-_375a1.js +58 -0
  34. package/node_modules_ol_geom_flat_length_js-_375a1.js.map +1 -0
  35. package/node_modules_ol_geom_flat_length_js-_375a2.js +58 -0
  36. package/node_modules_ol_geom_flat_length_js-_375a2.js.map +1 -0
  37. package/node_modules_ol_geom_flat_length_js-_375a3.js +58 -0
  38. package/node_modules_ol_geom_flat_length_js-_375a3.js.map +1 -0
  39. package/node_modules_ol_geom_flat_length_js-_375a4.js +58 -0
  40. package/node_modules_ol_geom_flat_length_js-_375a4.js.map +1 -0
  41. package/node_modules_ol_geom_flat_linechunk_js.js +76 -0
  42. package/node_modules_ol_geom_flat_linechunk_js.js.map +1 -0
  43. package/node_modules_ol_geom_flat_straightchunk_js.js +68 -0
  44. package/node_modules_ol_geom_flat_straightchunk_js.js.map +1 -0
  45. package/node_modules_ol_geom_flat_textpath_js.js +178 -0
  46. package/node_modules_ol_geom_flat_textpath_js.js.map +1 -0
  47. package/node_modules_ol_interaction_DblClickDragZoom_js.js +285 -0
  48. package/node_modules_ol_interaction_DblClickDragZoom_js.js.map +1 -0
  49. package/node_modules_ol_interaction_DragAndDrop_js.js +351 -0
  50. package/node_modules_ol_interaction_DragAndDrop_js.js.map +1 -0
  51. package/node_modules_ol_interaction_DragRotateAndZoom_js.js +159 -0
  52. package/node_modules_ol_interaction_DragRotateAndZoom_js.js.map +1 -0
  53. package/node_modules_ol_layer_Vector_js-_49290.js +110 -0
  54. package/node_modules_ol_layer_Vector_js-_49290.js.map +1 -0
  55. package/node_modules_ol_layer_Vector_js-_49291.js +110 -0
  56. package/node_modules_ol_layer_Vector_js-_49291.js.map +1 -0
  57. package/node_modules_ol_layer_Vector_js-_49292.js +110 -0
  58. package/node_modules_ol_layer_Vector_js-_49292.js.map +1 -0
  59. package/node_modules_ol_layer_Vector_js-_49293.js +110 -0
  60. package/node_modules_ol_layer_Vector_js-_49293.js.map +1 -0
  61. package/node_modules_ol_loadingstrategy_js.js +95 -0
  62. package/node_modules_ol_loadingstrategy_js.js.map +1 -0
  63. package/node_modules_ol_render_VectorContext_js-_3ad60.js +144 -0
  64. package/node_modules_ol_render_VectorContext_js-_3ad60.js.map +1 -0
  65. package/node_modules_ol_render_VectorContext_js-_3ad61.js +144 -0
  66. package/node_modules_ol_render_VectorContext_js-_3ad61.js.map +1 -0
  67. package/node_modules_ol_render_VectorContext_js-node_modules_ol_render_canvas_hitdetect_js.js +372 -0
  68. package/node_modules_ol_render_VectorContext_js-node_modules_ol_render_canvas_hitdetect_js.js.map +1 -0
  69. package/node_modules_ol_render_canvas_ImageBuilder_js.js +318 -0
  70. package/node_modules_ol_render_canvas_ImageBuilder_js.js.map +1 -0
  71. package/node_modules_ol_render_canvas_Instruction_js.js +66 -0
  72. package/node_modules_ol_render_canvas_Instruction_js.js.map +1 -0
  73. package/node_modules_ol_render_canvas_LineStringBuilder_js.js +187 -0
  74. package/node_modules_ol_render_canvas_LineStringBuilder_js.js.map +1 -0
  75. package/node_modules_ol_render_canvas_PolygonBuilder_js.js +276 -0
  76. package/node_modules_ol_render_canvas_PolygonBuilder_js.js.map +1 -0
  77. package/node_modules_ol_render_canvas_ZIndexContext_js-_fab20.js +156 -0
  78. package/node_modules_ol_render_canvas_ZIndexContext_js-_fab20.js.map +1 -0
  79. package/node_modules_ol_render_canvas_ZIndexContext_js-_fab21.js +156 -0
  80. package/node_modules_ol_render_canvas_ZIndexContext_js-_fab21.js.map +1 -0
  81. package/node_modules_ol_render_js-node_modules_ol_render_VectorContext_js.js +301 -0
  82. package/node_modules_ol_render_js-node_modules_ol_render_VectorContext_js.js.map +1 -0
  83. package/node_modules_ol_renderer_Layer_js.js +219 -0
  84. package/node_modules_ol_renderer_Layer_js.js.map +1 -0
  85. package/node_modules_ol_source_Source_js.js +256 -0
  86. package/node_modules_ol_source_Source_js.js.map +1 -0
  87. package/node_modules_ol_source_VectorEventType_js-node_modules_ol_structs_RBush_js.js +318 -0
  88. package/node_modules_ol_source_VectorEventType_js-node_modules_ol_structs_RBush_js.js.map +1 -0
  89. package/node_modules_ol_source_VectorEventType_js.js +80 -0
  90. package/node_modules_ol_source_VectorEventType_js.js.map +1 -0
  91. package/node_modules_ol_structs_RBush_js.js +242 -0
  92. package/node_modules_ol_structs_RBush_js.js.map +1 -0
  93. package/node_modules_ol_style_js.js +2 -1
  94. package/node_modules_ol_style_js.js.map +1 -1
  95. package/node_modules_rbush_rbush_min_js.js +16 -0
  96. package/node_modules_rbush_rbush_min_js.js.map +1 -0
  97. package/package.json +142 -146
  98. package/vaadin-bundle.json +2447 -2352
  99. package/vaadin.js +52246 -63791
  100. package/vaadin.js.map +1 -1
  101. package/vendors-node_modules_dompurify_dist_purify_es_mjs.js +1364 -0
  102. package/vendors-node_modules_dompurify_dist_purify_es_mjs.js.map +1 -0
  103. package/vendors-node_modules_dompurify_dist_purify_js.js +26 -21
  104. package/vendors-node_modules_dompurify_dist_purify_js.js.map +1 -1
  105. package/vendors-node_modules_marked_lib_marked_esm_js.js +2205 -0
  106. package/vendors-node_modules_marked_lib_marked_esm_js.js.map +1 -0
  107. package/vendors-node_modules_marked_lib_marked_umd_js.js +2164 -2556
  108. package/vendors-node_modules_marked_lib_marked_umd_js.js.map +1 -1
  109. package/vendors-node_modules_ol_Feature_js.js +360 -0
  110. package/vendors-node_modules_ol_Feature_js.js.map +1 -0
  111. package/vendors-node_modules_ol_Geolocation_js.js +352 -293
  112. package/vendors-node_modules_ol_Geolocation_js.js.map +1 -1
  113. package/vendors-node_modules_ol_ImageTile_js.js +494 -0
  114. package/vendors-node_modules_ol_ImageTile_js.js.map +1 -0
  115. package/vendors-node_modules_ol_Overlay_js.js +606 -0
  116. package/vendors-node_modules_ol_Overlay_js.js.map +1 -0
  117. package/vendors-node_modules_ol_control_FullScreen_js.js +417 -0
  118. package/vendors-node_modules_ol_control_FullScreen_js.js.map +1 -0
  119. package/vendors-node_modules_ol_control_OverviewMap_js.js +711 -0
  120. package/vendors-node_modules_ol_control_OverviewMap_js.js.map +1 -0
  121. package/vendors-node_modules_ol_control_ScaleLine_js.js +509 -0
  122. package/vendors-node_modules_ol_control_ScaleLine_js.js.map +1 -0
  123. package/vendors-node_modules_ol_control_ZoomSlider_js.js +418 -0
  124. package/vendors-node_modules_ol_control_ZoomSlider_js.js.map +1 -0
  125. package/vendors-node_modules_ol_control_js.js +490 -0
  126. package/vendors-node_modules_ol_control_js.js.map +1 -0
  127. package/vendors-node_modules_ol_geom_LineString_js.js +574 -0
  128. package/vendors-node_modules_ol_geom_LineString_js.js.map +1 -0
  129. package/vendors-node_modules_ol_geom_MultiLineString_js.js +405 -0
  130. package/vendors-node_modules_ol_geom_MultiLineString_js.js.map +1 -0
  131. package/vendors-node_modules_ol_geom_MultiPolygon_js.js +773 -0
  132. package/vendors-node_modules_ol_geom_MultiPolygon_js.js.map +1 -0
  133. package/vendors-node_modules_ol_geom_js-node_modules_ol_geom_flat_length_js.js +769 -0
  134. package/vendors-node_modules_ol_geom_js-node_modules_ol_geom_flat_length_js.js.map +1 -0
  135. package/vendors-node_modules_ol_index_js.js +526 -675
  136. package/vendors-node_modules_ol_index_js.js.map +1 -1
  137. package/vendors-node_modules_ol_interaction_Draw_js.js +2777 -0
  138. package/vendors-node_modules_ol_interaction_Draw_js.js.map +1 -0
  139. package/vendors-node_modules_ol_interaction_Extent_js.js +586 -0
  140. package/vendors-node_modules_ol_interaction_Extent_js.js.map +1 -0
  141. package/vendors-node_modules_ol_interaction_Link_js.js +489 -0
  142. package/vendors-node_modules_ol_interaction_Link_js.js.map +1 -0
  143. package/vendors-node_modules_ol_interaction_Modify_js.js +1841 -0
  144. package/vendors-node_modules_ol_interaction_Modify_js.js.map +1 -0
  145. package/vendors-node_modules_ol_interaction_Select_js.js +623 -0
  146. package/vendors-node_modules_ol_interaction_Select_js.js.map +1 -0
  147. package/vendors-node_modules_ol_interaction_Snap_js.js +982 -0
  148. package/vendors-node_modules_ol_interaction_Snap_js.js.map +1 -0
  149. package/vendors-node_modules_ol_interaction_Translate_js.js +466 -0
  150. package/vendors-node_modules_ol_interaction_Translate_js.js.map +1 -0
  151. package/vendors-node_modules_ol_interaction_js.js +872 -0
  152. package/vendors-node_modules_ol_interaction_js.js.map +1 -0
  153. package/vendors-node_modules_ol_layer_Graticule_js.js +1374 -989
  154. package/vendors-node_modules_ol_layer_Graticule_js.js.map +1 -1
  155. package/vendors-node_modules_ol_render_Feature_js.js +546 -0
  156. package/vendors-node_modules_ol_render_Feature_js.js.map +1 -0
  157. package/vendors-node_modules_ol_render_canvas_BuilderGroup_js.js +897 -0
  158. package/vendors-node_modules_ol_render_canvas_BuilderGroup_js.js.map +1 -0
  159. package/vendors-node_modules_ol_render_canvas_Builder_js.js +907 -0
  160. package/vendors-node_modules_ol_render_canvas_Builder_js.js.map +1 -0
  161. package/vendors-node_modules_ol_render_canvas_ExecutorGroup_js.js +539 -0
  162. package/vendors-node_modules_ol_render_canvas_ExecutorGroup_js.js.map +1 -0
  163. package/vendors-node_modules_ol_render_canvas_Executor_js.js +1715 -0
  164. package/vendors-node_modules_ol_render_canvas_Executor_js.js.map +1 -0
  165. package/vendors-node_modules_ol_render_canvas_Immediate_js.js +1208 -0
  166. package/vendors-node_modules_ol_render_canvas_Immediate_js.js.map +1 -0
  167. package/vendors-node_modules_ol_render_canvas_TextBuilder_js.js +825 -0
  168. package/vendors-node_modules_ol_render_canvas_TextBuilder_js.js.map +1 -0
  169. package/vendors-node_modules_ol_renderer_canvas_Layer_js.js +654 -0
  170. package/vendors-node_modules_ol_renderer_canvas_Layer_js.js.map +1 -0
  171. package/vendors-node_modules_ol_renderer_canvas_VectorLayer_js.js +1044 -0
  172. package/vendors-node_modules_ol_renderer_canvas_VectorLayer_js.js.map +1 -0
  173. package/vendors-node_modules_ol_renderer_vector_js.js +460 -0
  174. package/vendors-node_modules_ol_renderer_vector_js.js.map +1 -0
  175. package/vendors-node_modules_ol_source_Vector_js.js +2091 -0
  176. package/vendors-node_modules_ol_source_Vector_js.js.map +1 -0
  177. package/node_modules_ol_ImageTile_js.js +0 -177
  178. package/node_modules_ol_ImageTile_js.js.map +0 -1
  179. package/node_modules_ol_render_js.js +0 -131
  180. package/node_modules_ol_render_js.js.map +0 -1
  181. package/node_modules_ol_structs_LRUCache_js.js +0 -275
  182. package/node_modules_ol_structs_LRUCache_js.js.map +0 -1
  183. package/node_modules_ol_tilecoord_js.js +0 -115
  184. package/node_modules_ol_tilecoord_js.js.map +0 -1
  185. package/vendors-node_modules_ol_TileCache_js.js +0 -461
  186. package/vendors-node_modules_ol_TileCache_js.js.map +0 -1
  187. package/vendors-node_modules_ol_Tile_js.js +0 -330
  188. package/vendors-node_modules_ol_Tile_js.js.map +0 -1
  189. package/vendors-node_modules_ol_style_Text_js.js +0 -509
  190. package/vendors-node_modules_ol_style_Text_js.js.map +0 -1
  191. package/vendors-node_modules_rbush_index_js.js +0 -531
  192. package/vendors-node_modules_rbush_index_js.js.map +0 -1
@@ -0,0 +1,897 @@
1
+ (self["webpackChunk_vaadin_bundles"] = self["webpackChunk_vaadin_bundles"] || []).push([["vendors-node_modules_ol_render_canvas_BuilderGroup_js"],{
2
+
3
+ /***/ "./node_modules/ol/render/canvas/BuilderGroup.js":
4
+ /*!*******************************************************!*\
5
+ !*** ./node_modules/ol/render/canvas/BuilderGroup.js ***!
6
+ \*******************************************************/
7
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8
+
9
+ __webpack_require__.r(__webpack_exports__);
10
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
12
+ /* harmony export */ });
13
+ /* harmony import */ var _Builder_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Builder.js */ "./node_modules/ol/render/canvas/Builder.js");
14
+ /* harmony import */ var _ImageBuilder_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ImageBuilder.js */ "./node_modules/ol/render/canvas/ImageBuilder.js");
15
+ /* harmony import */ var _LineStringBuilder_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./LineStringBuilder.js */ "./node_modules/ol/render/canvas/LineStringBuilder.js");
16
+ /* harmony import */ var _PolygonBuilder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PolygonBuilder.js */ "./node_modules/ol/render/canvas/PolygonBuilder.js");
17
+ /* harmony import */ var _TextBuilder_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./TextBuilder.js */ "./node_modules/ol/render/canvas/TextBuilder.js");
18
+ /**
19
+ * @module ol/render/canvas/BuilderGroup
20
+ */
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+ /**
29
+ * @type {Object<import("../canvas.js").BuilderType, typeof Builder>}
30
+ */
31
+ const BATCH_CONSTRUCTORS = {
32
+ 'Circle': _PolygonBuilder_js__WEBPACK_IMPORTED_MODULE_0__["default"],
33
+ 'Default': _Builder_js__WEBPACK_IMPORTED_MODULE_1__["default"],
34
+ 'Image': _ImageBuilder_js__WEBPACK_IMPORTED_MODULE_2__["default"],
35
+ 'LineString': _LineStringBuilder_js__WEBPACK_IMPORTED_MODULE_3__["default"],
36
+ 'Polygon': _PolygonBuilder_js__WEBPACK_IMPORTED_MODULE_0__["default"],
37
+ 'Text': _TextBuilder_js__WEBPACK_IMPORTED_MODULE_4__["default"],
38
+ };
39
+
40
+ class BuilderGroup {
41
+ /**
42
+ * @param {number} tolerance Tolerance.
43
+ * @param {import("../../extent.js").Extent} maxExtent Max extent.
44
+ * @param {number} resolution Resolution.
45
+ * @param {number} pixelRatio Pixel ratio.
46
+ */
47
+ constructor(tolerance, maxExtent, resolution, pixelRatio) {
48
+ /**
49
+ * @private
50
+ * @type {number}
51
+ */
52
+ this.tolerance_ = tolerance;
53
+
54
+ /**
55
+ * @private
56
+ * @type {import("../../extent.js").Extent}
57
+ */
58
+ this.maxExtent_ = maxExtent;
59
+
60
+ /**
61
+ * @private
62
+ * @type {number}
63
+ */
64
+ this.pixelRatio_ = pixelRatio;
65
+
66
+ /**
67
+ * @private
68
+ * @type {number}
69
+ */
70
+ this.resolution_ = resolution;
71
+
72
+ /**
73
+ * @private
74
+ * @type {!Object<string, !Object<import("../canvas.js").BuilderType, Builder>>}
75
+ */
76
+ this.buildersByZIndex_ = {};
77
+ }
78
+
79
+ /**
80
+ * @return {!Object<string, !Object<import("../canvas.js").BuilderType, import("./Builder.js").SerializableInstructions>>} The serializable instructions
81
+ */
82
+ finish() {
83
+ const builderInstructions = {};
84
+ for (const zKey in this.buildersByZIndex_) {
85
+ builderInstructions[zKey] = builderInstructions[zKey] || {};
86
+ const builders = this.buildersByZIndex_[zKey];
87
+ for (const builderKey in builders) {
88
+ const builderInstruction = builders[builderKey].finish();
89
+ builderInstructions[zKey][builderKey] = builderInstruction;
90
+ }
91
+ }
92
+ return builderInstructions;
93
+ }
94
+
95
+ /**
96
+ * @param {number|undefined} zIndex Z index.
97
+ * @param {import("../canvas.js").BuilderType} builderType Replay type.
98
+ * @return {import("../VectorContext.js").default} Replay.
99
+ */
100
+ getBuilder(zIndex, builderType) {
101
+ const zIndexKey = zIndex !== undefined ? zIndex.toString() : '0';
102
+ let replays = this.buildersByZIndex_[zIndexKey];
103
+ if (replays === undefined) {
104
+ replays = {};
105
+ this.buildersByZIndex_[zIndexKey] = replays;
106
+ }
107
+ let replay = replays[builderType];
108
+ if (replay === undefined) {
109
+ const Constructor = BATCH_CONSTRUCTORS[builderType];
110
+ replay = new Constructor(
111
+ this.tolerance_,
112
+ this.maxExtent_,
113
+ this.resolution_,
114
+ this.pixelRatio_,
115
+ );
116
+ replays[builderType] = replay;
117
+ }
118
+ return replay;
119
+ }
120
+ }
121
+
122
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (BuilderGroup);
123
+
124
+
125
+ /***/ }),
126
+
127
+ /***/ "./node_modules/ol/render/canvas/ImageBuilder.js":
128
+ /*!*******************************************************!*\
129
+ !*** ./node_modules/ol/render/canvas/ImageBuilder.js ***!
130
+ \*******************************************************/
131
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
132
+
133
+ __webpack_require__.r(__webpack_exports__);
134
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
135
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
136
+ /* harmony export */ });
137
+ /* harmony import */ var _extent_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../extent.js */ "./node_modules/ol/extent.js");
138
+ /* harmony import */ var _Builder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Builder.js */ "./node_modules/ol/render/canvas/Builder.js");
139
+ /* harmony import */ var _Instruction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Instruction.js */ "./node_modules/ol/render/canvas/Instruction.js");
140
+ /**
141
+ * @module ol/render/canvas/ImageBuilder
142
+ */
143
+
144
+
145
+
146
+
147
+ class CanvasImageBuilder extends _Builder_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
148
+ /**
149
+ * @param {number} tolerance Tolerance.
150
+ * @param {import("../../extent.js").Extent} maxExtent Maximum extent.
151
+ * @param {number} resolution Resolution.
152
+ * @param {number} pixelRatio Pixel ratio.
153
+ */
154
+ constructor(tolerance, maxExtent, resolution, pixelRatio) {
155
+ super(tolerance, maxExtent, resolution, pixelRatio);
156
+
157
+ /**
158
+ * @private
159
+ * @type {import('../../DataTile.js').ImageLike}
160
+ */
161
+ this.hitDetectionImage_ = null;
162
+
163
+ /**
164
+ * @private
165
+ * @type {import('../../DataTile.js').ImageLike}
166
+ */
167
+ this.image_ = null;
168
+
169
+ /**
170
+ * @private
171
+ * @type {number|undefined}
172
+ */
173
+ this.imagePixelRatio_ = undefined;
174
+
175
+ /**
176
+ * @private
177
+ * @type {number|undefined}
178
+ */
179
+ this.anchorX_ = undefined;
180
+
181
+ /**
182
+ * @private
183
+ * @type {number|undefined}
184
+ */
185
+ this.anchorY_ = undefined;
186
+
187
+ /**
188
+ * @private
189
+ * @type {number|undefined}
190
+ */
191
+ this.height_ = undefined;
192
+
193
+ /**
194
+ * @private
195
+ * @type {number|undefined}
196
+ */
197
+ this.opacity_ = undefined;
198
+
199
+ /**
200
+ * @private
201
+ * @type {number|undefined}
202
+ */
203
+ this.originX_ = undefined;
204
+
205
+ /**
206
+ * @private
207
+ * @type {number|undefined}
208
+ */
209
+ this.originY_ = undefined;
210
+
211
+ /**
212
+ * @private
213
+ * @type {boolean|undefined}
214
+ */
215
+ this.rotateWithView_ = undefined;
216
+
217
+ /**
218
+ * @private
219
+ * @type {number|undefined}
220
+ */
221
+ this.rotation_ = undefined;
222
+
223
+ /**
224
+ * @private
225
+ * @type {import("../../size.js").Size|undefined}
226
+ */
227
+ this.scale_ = undefined;
228
+
229
+ /**
230
+ * @private
231
+ * @type {number|undefined}
232
+ */
233
+ this.width_ = undefined;
234
+
235
+ /**
236
+ * @private
237
+ * @type {import('../../style/Style.js').DeclutterMode}
238
+ */
239
+ this.declutterMode_ = undefined;
240
+
241
+ /**
242
+ * Data shared with a text builder for combined decluttering.
243
+ * @private
244
+ * @type {import("../canvas.js").DeclutterImageWithText}
245
+ */
246
+ this.declutterImageWithText_ = undefined;
247
+ }
248
+
249
+ /**
250
+ * @param {import("../../geom/Point.js").default|import("../Feature.js").default} pointGeometry Point geometry.
251
+ * @param {import("../../Feature.js").FeatureLike} feature Feature.
252
+ * @param {number} [index] Render order index.
253
+ * @override
254
+ */
255
+ drawPoint(pointGeometry, feature, index) {
256
+ if (
257
+ !this.image_ ||
258
+ (this.maxExtent &&
259
+ !(0,_extent_js__WEBPACK_IMPORTED_MODULE_1__.containsCoordinate)(this.maxExtent, pointGeometry.getFlatCoordinates()))
260
+ ) {
261
+ return;
262
+ }
263
+ this.beginGeometry(pointGeometry, feature, index);
264
+ const flatCoordinates = pointGeometry.getFlatCoordinates();
265
+ const stride = pointGeometry.getStride();
266
+ const myBegin = this.coordinates.length;
267
+ const myEnd = this.appendFlatPointCoordinates(flatCoordinates, stride);
268
+ this.instructions.push([
269
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_2__["default"].DRAW_IMAGE,
270
+ myBegin,
271
+ myEnd,
272
+ this.image_,
273
+ // Remaining arguments to DRAW_IMAGE are in alphabetical order
274
+ this.anchorX_ * this.imagePixelRatio_,
275
+ this.anchorY_ * this.imagePixelRatio_,
276
+ Math.ceil(this.height_ * this.imagePixelRatio_),
277
+ this.opacity_,
278
+ this.originX_ * this.imagePixelRatio_,
279
+ this.originY_ * this.imagePixelRatio_,
280
+ this.rotateWithView_,
281
+ this.rotation_,
282
+ [
283
+ (this.scale_[0] * this.pixelRatio) / this.imagePixelRatio_,
284
+ (this.scale_[1] * this.pixelRatio) / this.imagePixelRatio_,
285
+ ],
286
+ Math.ceil(this.width_ * this.imagePixelRatio_),
287
+ this.declutterMode_,
288
+ this.declutterImageWithText_,
289
+ ]);
290
+ this.hitDetectionInstructions.push([
291
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_2__["default"].DRAW_IMAGE,
292
+ myBegin,
293
+ myEnd,
294
+ this.hitDetectionImage_,
295
+ // Remaining arguments to DRAW_IMAGE are in alphabetical order
296
+ this.anchorX_,
297
+ this.anchorY_,
298
+ this.height_,
299
+ 1,
300
+ this.originX_,
301
+ this.originY_,
302
+ this.rotateWithView_,
303
+ this.rotation_,
304
+ this.scale_,
305
+ this.width_,
306
+ this.declutterMode_,
307
+ this.declutterImageWithText_,
308
+ ]);
309
+ this.endGeometry(feature);
310
+ }
311
+
312
+ /**
313
+ * @param {import("../../geom/MultiPoint.js").default|import("../Feature.js").default} multiPointGeometry MultiPoint geometry.
314
+ * @param {import("../../Feature.js").FeatureLike} feature Feature.
315
+ * @param {number} [index] Render order index.
316
+ * @override
317
+ */
318
+ drawMultiPoint(multiPointGeometry, feature, index) {
319
+ if (!this.image_) {
320
+ return;
321
+ }
322
+ this.beginGeometry(multiPointGeometry, feature, index);
323
+ const flatCoordinates = multiPointGeometry.getFlatCoordinates();
324
+ const filteredFlatCoordinates = [];
325
+ for (
326
+ let i = 0, ii = flatCoordinates.length;
327
+ i < ii;
328
+ i += multiPointGeometry.getStride()
329
+ ) {
330
+ if (
331
+ !this.maxExtent ||
332
+ (0,_extent_js__WEBPACK_IMPORTED_MODULE_1__.containsCoordinate)(this.maxExtent, flatCoordinates.slice(i, i + 2))
333
+ ) {
334
+ filteredFlatCoordinates.push(
335
+ flatCoordinates[i],
336
+ flatCoordinates[i + 1],
337
+ );
338
+ }
339
+ }
340
+ const myBegin = this.coordinates.length;
341
+ const myEnd = this.appendFlatPointCoordinates(filteredFlatCoordinates, 2);
342
+ this.instructions.push([
343
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_2__["default"].DRAW_IMAGE,
344
+ myBegin,
345
+ myEnd,
346
+ this.image_,
347
+ // Remaining arguments to DRAW_IMAGE are in alphabetical order
348
+ this.anchorX_ * this.imagePixelRatio_,
349
+ this.anchorY_ * this.imagePixelRatio_,
350
+ Math.ceil(this.height_ * this.imagePixelRatio_),
351
+ this.opacity_,
352
+ this.originX_ * this.imagePixelRatio_,
353
+ this.originY_ * this.imagePixelRatio_,
354
+ this.rotateWithView_,
355
+ this.rotation_,
356
+ [
357
+ (this.scale_[0] * this.pixelRatio) / this.imagePixelRatio_,
358
+ (this.scale_[1] * this.pixelRatio) / this.imagePixelRatio_,
359
+ ],
360
+ Math.ceil(this.width_ * this.imagePixelRatio_),
361
+ this.declutterMode_,
362
+ this.declutterImageWithText_,
363
+ ]);
364
+ this.hitDetectionInstructions.push([
365
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_2__["default"].DRAW_IMAGE,
366
+ myBegin,
367
+ myEnd,
368
+ this.hitDetectionImage_,
369
+ // Remaining arguments to DRAW_IMAGE are in alphabetical order
370
+ this.anchorX_,
371
+ this.anchorY_,
372
+ this.height_,
373
+ 1,
374
+ this.originX_,
375
+ this.originY_,
376
+ this.rotateWithView_,
377
+ this.rotation_,
378
+ this.scale_,
379
+ this.width_,
380
+ this.declutterMode_,
381
+ this.declutterImageWithText_,
382
+ ]);
383
+ this.endGeometry(feature);
384
+ }
385
+
386
+ /**
387
+ * @return {import("../canvas.js").SerializableInstructions} the serializable instructions.
388
+ * @override
389
+ */
390
+ finish() {
391
+ this.reverseHitDetectionInstructions();
392
+ // FIXME this doesn't really protect us against further calls to draw*Geometry
393
+ this.anchorX_ = undefined;
394
+ this.anchorY_ = undefined;
395
+ this.hitDetectionImage_ = null;
396
+ this.image_ = null;
397
+ this.imagePixelRatio_ = undefined;
398
+ this.height_ = undefined;
399
+ this.scale_ = undefined;
400
+ this.opacity_ = undefined;
401
+ this.originX_ = undefined;
402
+ this.originY_ = undefined;
403
+ this.rotateWithView_ = undefined;
404
+ this.rotation_ = undefined;
405
+ this.width_ = undefined;
406
+ return super.finish();
407
+ }
408
+
409
+ /**
410
+ * @param {import("../../style/Image.js").default} imageStyle Image style.
411
+ * @param {Object} [sharedData] Shared data.
412
+ * @override
413
+ */
414
+ setImageStyle(imageStyle, sharedData) {
415
+ const anchor = imageStyle.getAnchor();
416
+ const size = imageStyle.getSize();
417
+ const origin = imageStyle.getOrigin();
418
+ this.imagePixelRatio_ = imageStyle.getPixelRatio(this.pixelRatio);
419
+ this.anchorX_ = anchor[0];
420
+ this.anchorY_ = anchor[1];
421
+ this.hitDetectionImage_ = imageStyle.getHitDetectionImage();
422
+ this.image_ = imageStyle.getImage(this.pixelRatio);
423
+ this.height_ = size[1];
424
+ this.opacity_ = imageStyle.getOpacity();
425
+ this.originX_ = origin[0];
426
+ this.originY_ = origin[1];
427
+ this.rotateWithView_ = imageStyle.getRotateWithView();
428
+ this.rotation_ = imageStyle.getRotation();
429
+ this.scale_ = imageStyle.getScaleArray();
430
+ this.width_ = size[0];
431
+ this.declutterMode_ = imageStyle.getDeclutterMode();
432
+ this.declutterImageWithText_ = sharedData;
433
+ }
434
+ }
435
+
436
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasImageBuilder);
437
+
438
+
439
+ /***/ }),
440
+
441
+ /***/ "./node_modules/ol/render/canvas/LineStringBuilder.js":
442
+ /*!************************************************************!*\
443
+ !*** ./node_modules/ol/render/canvas/LineStringBuilder.js ***!
444
+ \************************************************************/
445
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
446
+
447
+ __webpack_require__.r(__webpack_exports__);
448
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
449
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
450
+ /* harmony export */ });
451
+ /* harmony import */ var _canvas_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../canvas.js */ "./node_modules/ol/render/canvas.js");
452
+ /* harmony import */ var _Builder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Builder.js */ "./node_modules/ol/render/canvas/Builder.js");
453
+ /* harmony import */ var _Instruction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Instruction.js */ "./node_modules/ol/render/canvas/Instruction.js");
454
+ /**
455
+ * @module ol/render/canvas/LineStringBuilder
456
+ */
457
+
458
+
459
+
460
+
461
+ class CanvasLineStringBuilder extends _Builder_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
462
+ /**
463
+ * @param {number} tolerance Tolerance.
464
+ * @param {import("../../extent.js").Extent} maxExtent Maximum extent.
465
+ * @param {number} resolution Resolution.
466
+ * @param {number} pixelRatio Pixel ratio.
467
+ */
468
+ constructor(tolerance, maxExtent, resolution, pixelRatio) {
469
+ super(tolerance, maxExtent, resolution, pixelRatio);
470
+ }
471
+
472
+ /**
473
+ * @param {Array<number>} flatCoordinates Flat coordinates.
474
+ * @param {number} offset Offset.
475
+ * @param {number} end End.
476
+ * @param {number} stride Stride.
477
+ * @private
478
+ * @return {number} end.
479
+ */
480
+ drawFlatCoordinates_(flatCoordinates, offset, end, stride) {
481
+ const myBegin = this.coordinates.length;
482
+ const myEnd = this.appendFlatLineCoordinates(
483
+ flatCoordinates,
484
+ offset,
485
+ end,
486
+ stride,
487
+ false,
488
+ false,
489
+ );
490
+ const moveToLineToInstruction = [
491
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].MOVE_TO_LINE_TO,
492
+ myBegin,
493
+ myEnd,
494
+ ];
495
+ this.instructions.push(moveToLineToInstruction);
496
+ this.hitDetectionInstructions.push(moveToLineToInstruction);
497
+ return end;
498
+ }
499
+
500
+ /**
501
+ * @param {import("../../geom/LineString.js").default|import("../Feature.js").default} lineStringGeometry Line string geometry.
502
+ * @param {import("../../Feature.js").FeatureLike} feature Feature.
503
+ * @param {number} [index] Render order index.
504
+ * @override
505
+ */
506
+ drawLineString(lineStringGeometry, feature, index) {
507
+ const state = this.state;
508
+ const strokeStyle = state.strokeStyle;
509
+ const lineWidth = state.lineWidth;
510
+ if (strokeStyle === undefined || lineWidth === undefined) {
511
+ return;
512
+ }
513
+ this.updateStrokeStyle(state, this.applyStroke);
514
+ this.beginGeometry(lineStringGeometry, feature, index);
515
+ this.hitDetectionInstructions.push(
516
+ [
517
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_STROKE_STYLE,
518
+ state.strokeStyle,
519
+ state.lineWidth,
520
+ state.lineCap,
521
+ state.lineJoin,
522
+ state.miterLimit,
523
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDash,
524
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDashOffset,
525
+ ],
526
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction,
527
+ );
528
+ const flatCoordinates = lineStringGeometry.getFlatCoordinates();
529
+ const stride = lineStringGeometry.getStride();
530
+ this.drawFlatCoordinates_(
531
+ flatCoordinates,
532
+ 0,
533
+ flatCoordinates.length,
534
+ stride,
535
+ );
536
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
537
+ this.endGeometry(feature);
538
+ }
539
+
540
+ /**
541
+ * @param {import("../../geom/MultiLineString.js").default|import("../Feature.js").default} multiLineStringGeometry MultiLineString geometry.
542
+ * @param {import("../../Feature.js").FeatureLike} feature Feature.
543
+ * @param {number} [index] Render order index.
544
+ * @override
545
+ */
546
+ drawMultiLineString(multiLineStringGeometry, feature, index) {
547
+ const state = this.state;
548
+ const strokeStyle = state.strokeStyle;
549
+ const lineWidth = state.lineWidth;
550
+ if (strokeStyle === undefined || lineWidth === undefined) {
551
+ return;
552
+ }
553
+ this.updateStrokeStyle(state, this.applyStroke);
554
+ this.beginGeometry(multiLineStringGeometry, feature, index);
555
+ this.hitDetectionInstructions.push(
556
+ [
557
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_STROKE_STYLE,
558
+ state.strokeStyle,
559
+ state.lineWidth,
560
+ state.lineCap,
561
+ state.lineJoin,
562
+ state.miterLimit,
563
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDash,
564
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDashOffset,
565
+ ],
566
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction,
567
+ );
568
+ const ends = multiLineStringGeometry.getEnds();
569
+ const flatCoordinates = multiLineStringGeometry.getFlatCoordinates();
570
+ const stride = multiLineStringGeometry.getStride();
571
+ let offset = 0;
572
+ for (let i = 0, ii = ends.length; i < ii; ++i) {
573
+ offset = this.drawFlatCoordinates_(
574
+ flatCoordinates,
575
+ offset,
576
+ /** @type {number} */ (ends[i]),
577
+ stride,
578
+ );
579
+ }
580
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
581
+ this.endGeometry(feature);
582
+ }
583
+
584
+ /**
585
+ * @return {import("../canvas.js").SerializableInstructions} the serializable instructions.
586
+ * @override
587
+ */
588
+ finish() {
589
+ const state = this.state;
590
+ if (
591
+ state.lastStroke != undefined &&
592
+ state.lastStroke != this.coordinates.length
593
+ ) {
594
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
595
+ }
596
+ this.reverseHitDetectionInstructions();
597
+ this.state = null;
598
+ return super.finish();
599
+ }
600
+
601
+ /**
602
+ * @param {import("../canvas.js").FillStrokeState} state State.
603
+ * @override
604
+ */
605
+ applyStroke(state) {
606
+ if (
607
+ state.lastStroke != undefined &&
608
+ state.lastStroke != this.coordinates.length
609
+ ) {
610
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
611
+ state.lastStroke = this.coordinates.length;
612
+ }
613
+ state.lastStroke = 0;
614
+ super.applyStroke(state);
615
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction);
616
+ }
617
+ }
618
+
619
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasLineStringBuilder);
620
+
621
+
622
+ /***/ }),
623
+
624
+ /***/ "./node_modules/ol/render/canvas/PolygonBuilder.js":
625
+ /*!*********************************************************!*\
626
+ !*** ./node_modules/ol/render/canvas/PolygonBuilder.js ***!
627
+ \*********************************************************/
628
+ /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
629
+
630
+ __webpack_require__.r(__webpack_exports__);
631
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
632
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
633
+ /* harmony export */ });
634
+ /* harmony import */ var _geom_flat_simplify_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../geom/flat/simplify.js */ "./node_modules/ol/geom/flat/simplify.js");
635
+ /* harmony import */ var _canvas_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../canvas.js */ "./node_modules/ol/render/canvas.js");
636
+ /* harmony import */ var _Builder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Builder.js */ "./node_modules/ol/render/canvas/Builder.js");
637
+ /* harmony import */ var _Instruction_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Instruction.js */ "./node_modules/ol/render/canvas/Instruction.js");
638
+ /**
639
+ * @module ol/render/canvas/PolygonBuilder
640
+ */
641
+
642
+
643
+
644
+
645
+
646
+ class CanvasPolygonBuilder extends _Builder_js__WEBPACK_IMPORTED_MODULE_0__["default"] {
647
+ /**
648
+ * @param {number} tolerance Tolerance.
649
+ * @param {import("../../extent.js").Extent} maxExtent Maximum extent.
650
+ * @param {number} resolution Resolution.
651
+ * @param {number} pixelRatio Pixel ratio.
652
+ */
653
+ constructor(tolerance, maxExtent, resolution, pixelRatio) {
654
+ super(tolerance, maxExtent, resolution, pixelRatio);
655
+ }
656
+
657
+ /**
658
+ * @param {Array<number>} flatCoordinates Flat coordinates.
659
+ * @param {number} offset Offset.
660
+ * @param {Array<number>} ends Ends.
661
+ * @param {number} stride Stride.
662
+ * @private
663
+ * @return {number} End.
664
+ */
665
+ drawFlatCoordinatess_(flatCoordinates, offset, ends, stride) {
666
+ const state = this.state;
667
+ const fill = state.fillStyle !== undefined;
668
+ const stroke = state.strokeStyle !== undefined;
669
+ const numEnds = ends.length;
670
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction);
671
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction);
672
+ for (let i = 0; i < numEnds; ++i) {
673
+ const end = ends[i];
674
+ const myBegin = this.coordinates.length;
675
+ const myEnd = this.appendFlatLineCoordinates(
676
+ flatCoordinates,
677
+ offset,
678
+ end,
679
+ stride,
680
+ true,
681
+ !stroke,
682
+ );
683
+ const moveToLineToInstruction = [
684
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].MOVE_TO_LINE_TO,
685
+ myBegin,
686
+ myEnd,
687
+ ];
688
+ this.instructions.push(moveToLineToInstruction);
689
+ this.hitDetectionInstructions.push(moveToLineToInstruction);
690
+ if (stroke) {
691
+ // Performance optimization: only call closePath() when we have a stroke.
692
+ // Otherwise the ring is closed already (see appendFlatLineCoordinates above).
693
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.closePathInstruction);
694
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.closePathInstruction);
695
+ }
696
+ offset = end;
697
+ }
698
+ if (fill) {
699
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.fillInstruction);
700
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.fillInstruction);
701
+ }
702
+ if (stroke) {
703
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
704
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
705
+ }
706
+ return offset;
707
+ }
708
+
709
+ /**
710
+ * @param {import("../../geom/Circle.js").default} circleGeometry Circle geometry.
711
+ * @param {import("../../Feature.js").default} feature Feature.
712
+ * @param {number} [index] Render order index.
713
+ * @override
714
+ */
715
+ drawCircle(circleGeometry, feature, index) {
716
+ const state = this.state;
717
+ const fillStyle = state.fillStyle;
718
+ const strokeStyle = state.strokeStyle;
719
+ if (fillStyle === undefined && strokeStyle === undefined) {
720
+ return;
721
+ }
722
+ this.setFillStrokeStyles_();
723
+ this.beginGeometry(circleGeometry, feature, index);
724
+ if (state.fillStyle !== undefined) {
725
+ this.hitDetectionInstructions.push([
726
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_FILL_STYLE,
727
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultFillStyle,
728
+ ]);
729
+ }
730
+ if (state.strokeStyle !== undefined) {
731
+ this.hitDetectionInstructions.push([
732
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_STROKE_STYLE,
733
+ state.strokeStyle,
734
+ state.lineWidth,
735
+ state.lineCap,
736
+ state.lineJoin,
737
+ state.miterLimit,
738
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDash,
739
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDashOffset,
740
+ ]);
741
+ }
742
+ const flatCoordinates = circleGeometry.getFlatCoordinates();
743
+ const stride = circleGeometry.getStride();
744
+ const myBegin = this.coordinates.length;
745
+ this.appendFlatLineCoordinates(
746
+ flatCoordinates,
747
+ 0,
748
+ flatCoordinates.length,
749
+ stride,
750
+ false,
751
+ false,
752
+ );
753
+ const circleInstruction = [_Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].CIRCLE, myBegin];
754
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction, circleInstruction);
755
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.beginPathInstruction, circleInstruction);
756
+ if (state.fillStyle !== undefined) {
757
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.fillInstruction);
758
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.fillInstruction);
759
+ }
760
+ if (state.strokeStyle !== undefined) {
761
+ this.instructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
762
+ this.hitDetectionInstructions.push(_Instruction_js__WEBPACK_IMPORTED_MODULE_1__.strokeInstruction);
763
+ }
764
+ this.endGeometry(feature);
765
+ }
766
+
767
+ /**
768
+ * @param {import("../../geom/Polygon.js").default|import("../Feature.js").default} polygonGeometry Polygon geometry.
769
+ * @param {import("../../Feature.js").FeatureLike} feature Feature.
770
+ * @param {number} [index] Render order index.
771
+ * @override
772
+ */
773
+ drawPolygon(polygonGeometry, feature, index) {
774
+ const state = this.state;
775
+ const fillStyle = state.fillStyle;
776
+ const strokeStyle = state.strokeStyle;
777
+ if (fillStyle === undefined && strokeStyle === undefined) {
778
+ return;
779
+ }
780
+ this.setFillStrokeStyles_();
781
+ this.beginGeometry(polygonGeometry, feature, index);
782
+ if (state.fillStyle !== undefined) {
783
+ this.hitDetectionInstructions.push([
784
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_FILL_STYLE,
785
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultFillStyle,
786
+ ]);
787
+ }
788
+ if (state.strokeStyle !== undefined) {
789
+ this.hitDetectionInstructions.push([
790
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_STROKE_STYLE,
791
+ state.strokeStyle,
792
+ state.lineWidth,
793
+ state.lineCap,
794
+ state.lineJoin,
795
+ state.miterLimit,
796
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDash,
797
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDashOffset,
798
+ ]);
799
+ }
800
+ const ends = polygonGeometry.getEnds();
801
+ const flatCoordinates = polygonGeometry.getOrientedFlatCoordinates();
802
+ const stride = polygonGeometry.getStride();
803
+ this.drawFlatCoordinatess_(
804
+ flatCoordinates,
805
+ 0,
806
+ /** @type {Array<number>} */ (ends),
807
+ stride,
808
+ );
809
+ this.endGeometry(feature);
810
+ }
811
+
812
+ /**
813
+ * @param {import("../../geom/MultiPolygon.js").default} multiPolygonGeometry MultiPolygon geometry.
814
+ * @param {import("../../Feature.js").FeatureLike} feature Feature.
815
+ * @param {number} [index] Render order index.
816
+ * @override
817
+ */
818
+ drawMultiPolygon(multiPolygonGeometry, feature, index) {
819
+ const state = this.state;
820
+ const fillStyle = state.fillStyle;
821
+ const strokeStyle = state.strokeStyle;
822
+ if (fillStyle === undefined && strokeStyle === undefined) {
823
+ return;
824
+ }
825
+ this.setFillStrokeStyles_();
826
+ this.beginGeometry(multiPolygonGeometry, feature, index);
827
+ if (state.fillStyle !== undefined) {
828
+ this.hitDetectionInstructions.push([
829
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_FILL_STYLE,
830
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultFillStyle,
831
+ ]);
832
+ }
833
+ if (state.strokeStyle !== undefined) {
834
+ this.hitDetectionInstructions.push([
835
+ _Instruction_js__WEBPACK_IMPORTED_MODULE_1__["default"].SET_STROKE_STYLE,
836
+ state.strokeStyle,
837
+ state.lineWidth,
838
+ state.lineCap,
839
+ state.lineJoin,
840
+ state.miterLimit,
841
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDash,
842
+ _canvas_js__WEBPACK_IMPORTED_MODULE_2__.defaultLineDashOffset,
843
+ ]);
844
+ }
845
+ const endss = multiPolygonGeometry.getEndss();
846
+ const flatCoordinates = multiPolygonGeometry.getOrientedFlatCoordinates();
847
+ const stride = multiPolygonGeometry.getStride();
848
+ let offset = 0;
849
+ for (let i = 0, ii = endss.length; i < ii; ++i) {
850
+ offset = this.drawFlatCoordinatess_(
851
+ flatCoordinates,
852
+ offset,
853
+ endss[i],
854
+ stride,
855
+ );
856
+ }
857
+ this.endGeometry(feature);
858
+ }
859
+
860
+ /**
861
+ * @return {import("../canvas.js").SerializableInstructions} the serializable instructions.
862
+ * @override
863
+ */
864
+ finish() {
865
+ this.reverseHitDetectionInstructions();
866
+ this.state = null;
867
+ // We want to preserve topology when drawing polygons. Polygons are
868
+ // simplified using quantization and point elimination. However, we might
869
+ // have received a mix of quantized and non-quantized geometries, so ensure
870
+ // that all are quantized by quantizing all coordinates in the batch.
871
+ const tolerance = this.tolerance;
872
+ if (tolerance !== 0) {
873
+ const coordinates = this.coordinates;
874
+ for (let i = 0, ii = coordinates.length; i < ii; ++i) {
875
+ coordinates[i] = (0,_geom_flat_simplify_js__WEBPACK_IMPORTED_MODULE_3__.snap)(coordinates[i], tolerance);
876
+ }
877
+ }
878
+ return super.finish();
879
+ }
880
+
881
+ /**
882
+ * @private
883
+ */
884
+ setFillStrokeStyles_() {
885
+ const state = this.state;
886
+ this.updateFillStyle(state, this.createFill);
887
+ this.updateStrokeStyle(state, this.applyStroke);
888
+ }
889
+ }
890
+
891
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasPolygonBuilder);
892
+
893
+
894
+ /***/ })
895
+
896
+ }])
897
+ //# sourceMappingURL=vendors-node_modules_ol_render_canvas_BuilderGroup_js.js.map