@eox/drawtools 1.2.0 → 1.3.0

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 (44) hide show
  1. package/dist/eox-drawtools.js +1389 -1338
  2. package/dist/eox-drawtools.umd.cjs +50 -50
  3. package/dist/material-symbols-outlined.woff2 +0 -0
  4. package/dist/material-symbols-rounded.woff2 +0 -0
  5. package/dist/material-symbols-sharp.woff2 +0 -0
  6. package/dist/material-symbols-subset.woff2 +0 -0
  7. package/package.json +2 -2
  8. package/src/components/controller.js +7 -7
  9. package/src/main.js +80 -17
  10. package/src/methods/draw/emit-drawn-features.js +7 -1
  11. package/src/methods/draw/init-layer.js +38 -36
  12. package/types/drawtools/src/main.d.ts +23 -7
  13. package/types/drawtools/src/main.d.ts.map +1 -1
  14. package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -1
  15. package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
  16. package/types/map/src/controls/GlobeSwitcher.d.ts +19 -0
  17. package/types/map/src/controls/GlobeSwitcher.d.ts.map +1 -0
  18. package/types/map/src/controls/controls.d.ts +1 -2
  19. package/types/map/src/controls/controls.d.ts.map +1 -1
  20. package/types/map/src/controls/geo-location.d.ts +14 -4
  21. package/types/map/src/controls/geo-location.d.ts.map +1 -1
  22. package/types/map/src/custom/sources/Cluster.d.ts +6 -2
  23. package/types/map/src/custom/sources/Cluster.d.ts.map +1 -1
  24. package/types/map/src/custom/sources/FlatGeoBuf.d.ts +4 -2
  25. package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -1
  26. package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -1
  27. package/types/map/src/helpers/cluster-explode.d.ts +5 -1
  28. package/types/map/src/helpers/cluster-explode.d.ts.map +1 -1
  29. package/types/map/src/helpers/generate.d.ts.map +1 -1
  30. package/types/map/src/helpers/layer.d.ts +3 -1
  31. package/types/map/src/helpers/layer.d.ts.map +1 -1
  32. package/types/map/src/helpers/select.d.ts +5 -1
  33. package/types/map/src/helpers/select.d.ts.map +1 -1
  34. package/types/map/src/layers.d.ts +2 -1
  35. package/types/map/src/layers.d.ts.map +1 -1
  36. package/types/map/src/main.d.ts +24 -2
  37. package/types/map/src/main.d.ts.map +1 -1
  38. package/types/map/src/methods/map/index.d.ts +1 -1
  39. package/types/map/src/methods/map/setters.d.ts +1 -0
  40. package/types/map/src/methods/map/setters.d.ts.map +1 -1
  41. package/types/map/src/plugins/globe/openglobus.d.ts +9 -0
  42. package/types/map/src/plugins/globe/openglobus.d.ts.map +1 -1
  43. package/types/map/src/types.d.ts +16 -1
  44. package/types/map/src/types.d.ts.map +1 -1
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/drawtools",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@eox/elements-utils": "^1.1.0",
42
- "@eox/ui": "^0.5.0",
42
+ "@eox/ui": "^1.1.0",
43
43
  "lit": "^3.2.0",
44
44
  "ol": "^10.4.0"
45
45
  }
@@ -219,9 +219,9 @@ export class EOxDrawToolsController extends LitElement {
219
219
  <i class="small"
220
220
  >${this.select ? pointerIcon : shapeIcons[this.type]}</i
221
221
  >
222
- <div class="tooltip bottom">
222
+ <span class="tooltip bottom">
223
223
  ${this.select ? "Select" : "Draw"}
224
- </div>
224
+ </span>
225
225
  `}
226
226
  </button>
227
227
 
@@ -237,7 +237,7 @@ export class EOxDrawToolsController extends LitElement {
237
237
  ? "discard"
238
238
  : html`
239
239
  <i class="small">${discardIcon}</i>
240
- <div class="tooltip bottom">Discard</div>
240
+ <span class="tooltip bottom">Discard</span>
241
241
  `}
242
242
  </button>
243
243
  </div>
@@ -259,7 +259,7 @@ export class EOxDrawToolsController extends LitElement {
259
259
  ? "import"
260
260
  : html`
261
261
  <i class="small">${editIcon}</i>
262
- <div class="tooltip bottom">Edit features</div>
262
+ <span class="tooltip bottom">Edit features</span>
263
263
  `}
264
264
  </button>
265
265
  `,
@@ -291,7 +291,7 @@ export class EOxDrawToolsController extends LitElement {
291
291
  ? "import"
292
292
  : html`
293
293
  <i class="small">${importIcon}</i>
294
- <div class="tooltip bottom">Import features</div>
294
+ <span class="tooltip bottom">Import features</span>
295
295
  `}
296
296
  </button>
297
297
  `,
@@ -302,7 +302,7 @@ export class EOxDrawToolsController extends LitElement {
302
302
  ${when(
303
303
  this.showEditor,
304
304
  () => html`
305
- <div id="editor" class="field textarea border extra hidden">
305
+ <div id="editor" class="field border extra hidden">
306
306
  <!-- Geo JSON Editor -->
307
307
  <textarea
308
308
  style="font-family: monospace; font-size: small; line-height: 1.4; padding: 0.4rem;"
@@ -322,7 +322,7 @@ export class EOxDrawToolsController extends LitElement {
322
322
  ? "copy"
323
323
  : html`
324
324
  <i class="tiny">${copyIcon}</i>
325
- <div class="tooltip top">Copy</div>
325
+ <span class="tooltip top">Copy</span>
326
326
  `}
327
327
  </button>
328
328
  </div>
package/src/main.js CHANGED
@@ -85,11 +85,21 @@ export class EOxDrawTools extends LitElement {
85
85
  * @type string
86
86
  */
87
87
  #layerId;
88
+ /**
89
+ * @type boolean
90
+ */
91
+ #internalUpdate = false;
92
+
88
93
  /**
89
94
  * @type boolean
90
95
  */
91
96
  #continuous;
92
97
 
98
+ /**
99
+ * @type Array<import("ol").Feature>
100
+ */
101
+ #drawnFeatures = [];
102
+
93
103
  constructor() {
94
104
  super();
95
105
 
@@ -129,12 +139,6 @@ export class EOxDrawTools extends LitElement {
129
139
  */
130
140
  this.layerId = "";
131
141
 
132
- /**
133
- * The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.
134
- * @type Array<import("ol").Feature>
135
- */
136
- this.drawnFeatures = [];
137
-
138
142
  /**
139
143
  * The display name of drawn features, shown e.g. in the feature list.
140
144
  */
@@ -239,6 +243,52 @@ export class EOxDrawTools extends LitElement {
239
243
  return this.#continuous;
240
244
  }
241
245
 
246
+ /**
247
+ * Used internally to update the drawnFeatures state without overwriting the map layer source.
248
+ * @param {Array<import("ol").Feature>} features
249
+ */
250
+ setDrawnFeaturesInternal(features) {
251
+ this.#internalUpdate = true;
252
+ this.drawnFeatures = features;
253
+ this.#internalUpdate = false;
254
+ }
255
+
256
+ /**
257
+ * The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.
258
+ * Pass features to be drawn on the map by setting this property. The features should be in the same projection as the map, or a projection should be specified via the `projection` property for proper transformation.
259
+ * @type {Array<import("ol").Feature>}
260
+ */
261
+ set drawnFeatures(features) {
262
+ const oldValue = this.#drawnFeatures;
263
+ this.#drawnFeatures = features;
264
+ if (this.drawLayer && !this.#internalUpdate) {
265
+ this.drawLayer.getSource().clear();
266
+ if (features?.length) {
267
+ const source = this.eoxMap?.projection || "EPSG:3857";
268
+ const destination = this.projection || "EPSG:4326";
269
+
270
+ let featuresToAdd = features;
271
+ if (source && destination && source !== destination) {
272
+ featuresToAdd = features.map((feat) => {
273
+ feat = feat.clone();
274
+ const transformed = feat
275
+ .getGeometry()
276
+ .transform(destination, source);
277
+ feat.setGeometry(transformed);
278
+ return feat;
279
+ });
280
+ }
281
+ this.drawLayer.getSource().addFeatures(featuresToAdd);
282
+ }
283
+ this.updateGeoJSON();
284
+ }
285
+ this.requestUpdate("drawnFeatures", oldValue);
286
+ }
287
+
288
+ get drawnFeatures() {
289
+ return this.#drawnFeatures;
290
+ }
291
+
242
292
  /**
243
293
  * Enables selection mode for the passed layer
244
294
  * @type {string}
@@ -335,9 +385,11 @@ export class EOxDrawTools extends LitElement {
335
385
  /**
336
386
  * initializes the EOxMap and OlMap instances
337
387
  * And stores them in the private properties #eoxMap and #olMap, respectively.
338
- * It then calls requestUpdate to trigger a re-render.
339
388
  */
340
- firstUpdated() {
389
+ updateLayer() {
390
+ if (this.resetLayer) {
391
+ this.resetLayer(this);
392
+ }
341
393
  const { EoxMap, OlMap, reset } = initLayerMethod(
342
394
  this,
343
395
  this.multipleFeatures,
@@ -345,28 +397,39 @@ export class EOxDrawTools extends LitElement {
345
397
  this.resetLayer = reset;
346
398
  this.eoxMap = EoxMap;
347
399
  this.#olMap = OlMap;
400
+ }
401
+
402
+ /**
403
+ * initializes the EOxMap and OlMap instances
404
+ * And stores them in the private properties #eoxMap and #olMap, respectively.
405
+ * It then calls requestUpdate to trigger a re-render.
406
+ */
407
+ firstUpdated() {
408
+ this.updateLayer();
348
409
  this.selectionEvents = createSelectHandler(this);
349
410
 
350
411
  if (this.importFeatures) initMapDragDropImport(this, this.eoxMap);
351
412
 
352
- this.updateGeoJSON();
413
+ if (this.drawnFeatures?.length > 0) {
414
+ this.drawnFeatures = [...this.drawnFeatures];
415
+ } else {
416
+ this.updateGeoJSON();
417
+ }
353
418
  this.requestUpdate();
354
419
  }
355
420
 
356
421
  updated(changedProperties) {
357
- if (changedProperties.has("for")) {
358
- const { EoxMap, OlMap } = initLayerMethod(this, this.multipleFeatures);
359
- this.eoxMap = EoxMap;
360
- this.#olMap = OlMap;
361
- }
422
+ const hasOldValue = (prop) =>
423
+ changedProperties.has(prop) && changedProperties.get(prop) !== undefined;
424
+
362
425
  if (
363
- (changedProperties.get("type") &&
426
+ hasOldValue("for") ||
427
+ (changedProperties.has("type") &&
364
428
  changedProperties.get("type") !== this.type) ||
365
429
  (changedProperties.has("measure") &&
366
430
  changedProperties.get("measure") !== this.measure)
367
431
  ) {
368
- this.resetLayer(this);
369
- this.firstUpdated();
432
+ this.updateLayer();
370
433
  this.currentlyDrawing = false;
371
434
  }
372
435
  }
@@ -22,7 +22,7 @@ const emitDrawnFeaturesMethod = (EoxDrawTool, drawUpdateEvent) => {
22
22
  // has a default value of EPSG:4326
23
23
  const destination = EoxDrawTool.projection;
24
24
  // Update drawnFeatures with transformed features if the destination is defined
25
- EoxDrawTool.drawnFeatures = destination
25
+ const newFeatures = destination
26
26
  ? drawnFeatures.map((feat) => {
27
27
  feat = feat.clone();
28
28
  const transformed = feat.getGeometry().transform(source, destination);
@@ -31,6 +31,12 @@ const emitDrawnFeaturesMethod = (EoxDrawTool, drawUpdateEvent) => {
31
31
  })
32
32
  : drawnFeatures;
33
33
 
34
+ if (EoxDrawTool.setDrawnFeaturesInternal) {
35
+ EoxDrawTool.setDrawnFeaturesInternal(newFeatures);
36
+ } else {
37
+ EoxDrawTool.drawnFeatures = newFeatures;
38
+ }
39
+
34
40
  // Emit features based on the format provided
35
41
  let value;
36
42
  switch (EoxDrawTool.format) {
@@ -73,32 +73,36 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
73
73
  },
74
74
  },
75
75
  },
76
- {
77
- type: "select",
78
- options: {
79
- id: "SelectLayerHoverInteraction",
80
- condition: "pointermove",
81
- style: EoxDrawTool.featureStyles?.["hover"] || {
82
- "fill-color": `rgba(${primaryColor}, 0.2)`,
83
- "stroke-color": `rgba(${primaryColor}, 1)`,
84
- "stroke-width": 2,
85
- },
86
- tooltip: false,
87
- },
88
- },
89
- {
90
- type: "select",
91
- options: {
92
- id: "SelectLayerClickInteraction",
93
- condition: "click",
94
- panIn: true,
95
- style: EoxDrawTool.featureStyles?.["click"] || {
96
- "fill-color": `rgba(${primaryColor}, 0.2)`,
97
- "stroke-color": `rgba(${primaryColor}, 1)`,
98
- "stroke-width": 2,
99
- },
100
- },
101
- },
76
+ ...(!EoxDrawTool.layerId
77
+ ? /** @type {import("@eox/map/src/types").EOxInteraction[]} */ ([
78
+ {
79
+ type: "select",
80
+ options: {
81
+ id: "SelectLayerHoverInteraction",
82
+ condition: "pointermove",
83
+ style: EoxDrawTool.featureStyles?.["hover"] || {
84
+ "fill-color": `rgba(${primaryColor}, 0.2)`,
85
+ "stroke-color": `rgba(${primaryColor}, 1)`,
86
+ "stroke-width": 2,
87
+ },
88
+ tooltip: false,
89
+ },
90
+ },
91
+ {
92
+ type: "select",
93
+ options: {
94
+ id: "SelectLayerClickInteraction",
95
+ condition: "click",
96
+ panIn: true,
97
+ style: EoxDrawTool.featureStyles?.["click"] || {
98
+ "fill-color": `rgba(${primaryColor}, 0.2)`,
99
+ "stroke-color": `rgba(${primaryColor}, 1)`,
100
+ "stroke-width": 2,
101
+ },
102
+ },
103
+ },
104
+ ])
105
+ : []),
102
106
  ],
103
107
  });
104
108
 
@@ -107,7 +111,7 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
107
111
  );
108
112
 
109
113
  EoxDrawTool.modify = /** @type {import("ol/interaction").Modify} */ (
110
- /** @type {unknown} */ (EoxMap.interactions["drawInteractionmodify"])
114
+ /** @type {unknown} */ (EoxMap.interactions["drawInteraction_modify"])
111
115
  );
112
116
 
113
117
  // Initialize selection interactions
@@ -123,19 +127,17 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
123
127
  EoxDrawTool.modify?.on("modifyend", onModifyEnd);
124
128
 
125
129
  if (EoxDrawTool.measure) {
126
- EoxDrawTool.draw?.on("drawstart", (evt) => {
127
- const feature = evt.feature;
128
- updateMeasure(feature);
129
- feature.getGeometry().on("change", () => updateMeasure(feature));
130
- });
130
+ if (EoxDrawTool.draw && typeof EoxDrawTool.draw.on === "function") {
131
+ EoxDrawTool.draw.on("drawstart", (evt) => {
132
+ const feature = evt.feature;
133
+ updateMeasure(feature);
134
+ feature.getGeometry().on("change", () => updateMeasure(feature));
135
+ });
136
+ }
131
137
  }
132
138
 
133
139
  EoxMap.addEventListener("addfeatures", onAddFeatures);
134
140
 
135
- if (EoxDrawTool.drawnFeatures) {
136
- EoxDrawTool.drawLayer.getSource().addFeatures(EoxDrawTool.drawnFeatures);
137
- }
138
-
139
141
  /**
140
142
  * Resets the draw layer, cleaning up interactions and listeners.
141
143
  *
@@ -135,11 +135,6 @@ export class EOxDrawTools extends LitElement {
135
135
  */
136
136
  set layerId(value: string);
137
137
  get layerId(): string;
138
- /**
139
- * The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.
140
- * @type Array<import("ol").Feature>
141
- */
142
- drawnFeatures: Array<import("ol").Feature>;
143
138
  /**
144
139
  * The display name of drawn features, shown e.g. in the feature list.
145
140
  */
@@ -226,6 +221,22 @@ export class EOxDrawTools extends LitElement {
226
221
  */
227
222
  set continuous(value: boolean);
228
223
  get continuous(): boolean;
224
+ /**
225
+ * Used internally to update the drawnFeatures state without overwriting the map layer source.
226
+ * @param {Array<import("ol").Feature>} features
227
+ */
228
+ setDrawnFeaturesInternal(features: Array<import("ol").Feature>): void;
229
+ /**
230
+ * The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.
231
+ * Pass features to be drawn on the map by setting this property. The features should be in the same projection as the map, or a projection should be specified via the `projection` property for proper transformation.
232
+ * @type {Array<import("ol").Feature>}
233
+ */
234
+ set drawnFeatures(features: import("ol").Feature<import("ol/geom").Geometry, {
235
+ [x: string]: any;
236
+ }>[]);
237
+ get drawnFeatures(): import("ol").Feature<import("ol/geom").Geometry, {
238
+ [x: string]: any;
239
+ }>[];
229
240
  /**
230
241
  * @onClick Event handler triggered to start drawing on the map.
231
242
  */
@@ -262,9 +273,8 @@ export class EOxDrawTools extends LitElement {
262
273
  /**
263
274
  * initializes the EOxMap and OlMap instances
264
275
  * And stores them in the private properties #eoxMap and #olMap, respectively.
265
- * It then calls requestUpdate to trigger a re-render.
266
276
  */
267
- firstUpdated(): void;
277
+ updateLayer(): void;
268
278
  resetLayer: (EoxDrawTool: import("./main").EOxDrawTools) => void;
269
279
  set eoxMap(value: import("@eox/map").EOxMap);
270
280
  /**
@@ -272,6 +282,12 @@ export class EOxDrawTools extends LitElement {
272
282
  * @type {import("@eox/map").EOxMap}
273
283
  */
274
284
  get eoxMap(): import("@eox/map").EOxMap;
285
+ /**
286
+ * initializes the EOxMap and OlMap instances
287
+ * And stores them in the private properties #eoxMap and #olMap, respectively.
288
+ * It then calls requestUpdate to trigger a re-render.
289
+ */
290
+ firstUpdated(): void;
275
291
  updated(changedProperties: any): void;
276
292
  render(): import("lit-html").TemplateResult<1>;
277
293
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBC;IA6BC;;OAEG;IACH,qBAAwB;IAExB;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;OAEG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,MAFS,OAAO,gBAAgB,EAAE,IAAI,GAAG,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhF;IAEhB;;;OAGG;IAEH,WAHS,OAAO,iBAAiB,EAAE,OAAO,CAGrB;IAqHvB;;;OAGG;IACH,2BAGC;IAED,sBAEC;IAzHC;;;OAGG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;OAEG;IACH,oBAA0B;IAE1B;;;;;;;OAOG;IACH,eANU;QACP,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;QAC7C,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;QAC7C,KAAK,CAAC,EAAE,OAAO,eAAe,EAAE,aAAa,CAAA;KAC5C,GAAG,IAAI,CAEc;IAEzB;;;OAGG;IACH,QAFS,OAAO,gBAAgB,EAAE,MAAM,CAEtB;IAElB;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,iBAAoB;IAEpB;;OAEG;IACH,wBAA2B;IAE3B;;OAEG;IACH,oBAAuB;IAEvB;;OAEG;IACH,kBAAqB;IACrB;;OAEG;IACH,mBAA6B;IAE7B;;;OAGG;IACH,MAFU,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG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EG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAaC;IASD;;;OAGG;IACH,oBAWC;IAHC,iEAAuB;IAgDzB,kBANU,OAAO,UAAU,EAAE,MAAM,EAUlC;IAZD;;;OAGG;IACH,cAFU,OAAO,UAAU,EAAE,MAAM,CAIlC;IAzCD;;;;OAIG;IACH,qBAYC;IAED,sCAcC;IA6BD,+CAqDC;;CACF;2BArgByC,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"emit-drawn-features.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/emit-drawn-features.js"],"names":[],"mappings":";;;;yBAGa,OAAO,IAAI,EAAE,OAAO,EAAE,GAC9B,UAAU,CAAC,OAAO,iBAAiB,CAAC,GACpC,UAAU,CAAC,OAAO,aAAa,CAAC;AAHrC;;;;GAIG;AAEH;;;;;GAKG;AACH,sDAHW,OAAO,YAAY,EAAE,YAAY,mBACjC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,QA+CpC;kCA3DgD,eAAe;8BAAf,eAAe"}
1
+ {"version":3,"file":"emit-drawn-features.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/emit-drawn-features.js"],"names":[],"mappings":";;;;yBAGa,OAAO,IAAI,EAAE,OAAO,EAAE,GAC9B,UAAU,CAAC,OAAO,iBAAiB,CAAC,GACpC,UAAU,CAAC,OAAO,aAAa,CAAC;AAHrC;;;;GAIG;AAEH;;;;;GAKG;AACH,sDAHW,OAAO,YAAY,EAAE,YAAY,mBACjC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,QAqDpC;kCAjEgD,eAAe;8BAAf,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,YAAY;;;yBAoI/B,OAAO,YAAY,EAAE,YAAY;EAqB7C"}
1
+ {"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAMA;;;;;GAKG;AACH,8CAHW,OAAO,YAAY,EAAE,YAAY;;;yBAsI/B,OAAO,YAAY,EAAE,YAAY;EAqB7C"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * A control to switch between 2D and 3D views.
3
+ * @param {Object} [opt_options] Control options.
4
+ * @param {import("../main").EOxMap} opt_options.eoxMap
5
+ */
6
+ export class GlobeSwitcher extends Control {
7
+ /**
8
+ * @param {Object} [options] Control options.
9
+ * @param {import("../main").EOxMap} options.eoxMap
10
+ */
11
+ constructor(options?: {
12
+ eoxMap: import("../main").EOxMap;
13
+ });
14
+ eoxMap: import("../main").EOxMap;
15
+ button: HTMLButtonElement;
16
+ handleClick(): void;
17
+ }
18
+ import Control from "ol/control/Control";
19
+ //# sourceMappingURL=GlobeSwitcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GlobeSwitcher.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/GlobeSwitcher.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH;IACE;;;OAGG;IACH,sBAFG;QAA0C,MAAM,EAAxC,OAAO,SAAS,EAAE,MAAM;KAClC,EAoBA;IAJC,iCAA4B;IAC5B,0BAAoB;IAKtB,oBASC;CACF;oBA/CmB,oBAAoB"}
@@ -4,10 +4,9 @@
4
4
  *
5
5
  * @param {import("../main").EOxMap} EOxMap - The map instance.
6
6
  * @param {ControlDictionary} existingControls - Dictionary of existing controls.
7
- * @param {ControlType} type - The type of control to add or update.
8
7
  * @param {object} options - Options for the control.
9
8
  */
10
- export function addOrUpdateControl(EOxMap: import("../main").EOxMap, existingControls: ControlDictionary, type: ControlType, options: object): void;
9
+ export function addOrUpdateControl(EOxMap: import("../main").EOxMap, existingControls: ControlDictionary, type: any, options: object): void;
11
10
  /**
12
11
  * Adds a control to the map.
13
12
  *
@@ -1 +1 @@
1
- {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"AAmCA;;;;;;;;GAQG;AACH,2CALW,OAAO,SAAS,EAAE,MAAM,oBACxB,iBAAiB,QACjB,WAAW,WACX,MAAM,QAiBhB;AAED;;;;;;GAMG;AACH,mCAJW,OAAO,SAAS,EAAE,MAAM,QACxB,WAAW,WACX,MAAM,QAiBhB;gCApEY,OAAO,UAAU,EAAE,iBAAiB;0BACpC,OAAO,UAAU,EAAE,WAAW"}
1
+ {"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/controls.js"],"names":[],"mappings":"AAqCA;;;;;;;GAOG;AACH,2CAJW,OAAO,SAAS,EAAE,MAAM,oBACxB,iBAAiB,sBACjB,MAAM,QAiBhB;AAED;;;;;;GAMG;AACH,mCAJW,OAAO,SAAS,EAAE,MAAM,QACxB,WAAW,WACX,MAAM,QAqBhB;gCAxEY,OAAO,UAAU,EAAE,iBAAiB;0BACpC,OAAO,UAAU,EAAE,WAAW"}
@@ -10,10 +10,20 @@ export default class GeolocationControl extends Control {
10
10
  _highAccuracy: boolean;
11
11
  _trackAccuracy: boolean;
12
12
  _trackHeading: boolean;
13
- _positionFeature: Feature<Point>;
14
- _source: VectorSource<Feature<Point>>;
15
- _accuracyFeature: Feature<import("ol/geom").Geometry>;
16
- _layer: VectorLayer<VectorSource<Feature<Point>>, Feature<Point>>;
13
+ _positionFeature: Feature<Point, {
14
+ [x: string]: any;
15
+ }>;
16
+ _source: VectorSource<Feature<Point, {
17
+ [x: string]: any;
18
+ }>>;
19
+ _accuracyFeature: Feature<import("ol/geom").Geometry, {
20
+ [x: string]: any;
21
+ }>;
22
+ _layer: VectorLayer<VectorSource<Feature<Point, {
23
+ [x: string]: any;
24
+ }>>, Feature<Point, {
25
+ [x: string]: any;
26
+ }>>;
17
27
  /**
18
28
  * Initializes the geolocation control.
19
29
  * This will prompt the user for geolocation permissions in the browser.
@@ -1 +1 @@
1
- {"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;IACE;;OAEG;IACH,0BAFW,kBAAkB,EA8D5B;IAvCC,0BAA+C;IAC/C,uBAAyC;IACzC,wBAA2C;IAC3C,uBAAyC;IAGzC,iCAGE;IAGF,sCAEE;IAIA,sDAAqC;IAYvC,kEAAuD;IA6BzD;;;OAGG;IACH,gCA4CC;IAxCK,0BAIE;IAsCR;;;;OAIG;IACH,cAFa,WAAW,CAIvB;IAED;;OAEG;IACH,kCAUC;CACF;iCAhKY,OAAO,UAAU,EAAE,kBAAkB;oBAX9B,uBAAuB;kBAGzB,eAAe;oBAFb,YAAY;yBAGP,qBAAqB;wBACtB,oBAAoB;wBAHpB,gBAAgB"}
1
+ {"version":3,"file":"geo-location.d.ts","sourceRoot":"","sources":["../../../../../map/src/controls/geo-location.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;IACE;;OAEG;IACH,0BAFW,kBAAkB,EA8D5B;IAvCC,0BAA+C;IAC/C,uBAAyC;IACzC,wBAA2C;IAC3C,uBAAyC;IAGzC;;OAGE;IAGF;;QAEE;IAIA;;OAAqC;IAYvC;;;;QAAuD;IA6BzD;;;OAGG;IACH,gCA4CC;IAxCK,0BAIE;IAsCR;;;;OAIG;IACH,cAFa,WAAW,CAIvB;IAED;;OAEG;IACH,kCAUC;CACF;iCAhKY,OAAO,UAAU,EAAE,kBAAkB;oBAX9B,uBAAuB;kBAGzB,eAAe;oBAFb,YAAY;yBAGP,qBAAqB;wBACtB,oBAAoB;wBAHpB,gBAAgB"}
@@ -3,8 +3,12 @@ export type ClusterOptions = import("../../types").EOxClusterOptions;
3
3
  /**
4
4
  * @typedef {import("../../types").EOxClusterOptions} ClusterOptions
5
5
  */
6
- declare class EOxCluster extends Cluster<Feature<import("ol/geom").Geometry>> {
7
- static defaultCreateCluster(point: any, features: any): Feature<any>;
6
+ declare class EOxCluster extends Cluster<Feature<import("ol/geom").Geometry, {
7
+ [x: string]: any;
8
+ }>> {
9
+ static defaultCreateCluster(point: any, features: any): Feature<any, {
10
+ [x: string]: any;
11
+ }>;
8
12
  /**
9
13
  * @param {import("ol/Feature").FeatureLike} feature
10
14
  * @returns {import("ol/geom/Point").default}
@@ -1 +1 @@
1
- {"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/Cluster.js"],"names":[],"mappings":";6BAKa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AAEH;IAYE,qEAqBC;IAED;;;OAGG;IACH,wCAHW,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,eAAe,EAAE,OAAO,CAW3C;IA/CD;;OAEG;IACH,sBAFW,cAAc,EAQxB;CAuCF;wBAzDuB,IAAI;wBAEJ,WAAW"}
1
+ {"version":3,"file":"Cluster.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/Cluster.js"],"names":[],"mappings":";6BAKa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AAEH;;;IAYE;;OAqBC;IAED;;;OAGG;IACH,wCAHW,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,eAAe,EAAE,OAAO,CAW3C;IA/CD;;OAEG;IACH,sBAFW,cAAc,EAQxB;CAuCF;wBAzDuB,IAAI;wBAEJ,WAAW"}
@@ -3,13 +3,15 @@ export type FlatGeoBufOptions = import("../../types").FlatGeoBufOptions;
3
3
  /**
4
4
  * @typedef {import("../../types").FlatGeoBufOptions} FlatGeoBufOptions
5
5
  */
6
- declare class FlatGeoBuf extends Vector<import("ol").Feature<import("ol/geom").Geometry>> {
6
+ declare class FlatGeoBuf extends Vector<import("ol").Feature<import("ol/geom").Geometry, {
7
+ [x: string]: any;
8
+ }>> {
7
9
  /**
8
10
  * @param {FlatGeoBufOptions} options
9
11
  */
10
12
  constructor(options: FlatGeoBufOptions);
11
13
  dataProjection: import("ol/proj").ProjectionLike;
12
- resourceURL: string;
14
+ resourceURLs: string[];
13
15
  /**
14
16
  * transform an ol extent into FlatGeoBuf-format
15
17
  * @param {import("ol/extent").Extent} extent
@@ -1 +1 @@
1
- {"version":3,"file":"FlatGeoBuf.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/FlatGeoBuf.js"],"names":[],"mappings":";gCAQa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AACH;IACE;;OAEG;IACH,qBAFW,iBAAiB,EAY3B;IAJC,iDAC4D;IAC5D,oBAA8B;IAIhC;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;;CAmCF;mBA9EkB,qBAAqB"}
1
+ {"version":3,"file":"FlatGeoBuf.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/FlatGeoBuf.js"],"names":[],"mappings":";gCAQa,OAAO,aAAa,EAAE,iBAAiB;AADpD;;GAEG;AACH;;;IACE;;OAEG;IACH,qBAFW,iBAAiB,EAa3B;IALC,iDAC4D;IAC5D,uBAC+D;IAIjE;;;;;OAKG;IACH,uBAJW,OAAO,WAAW,EAAE,MAAM,cAC1B,OAAO,SAAS,EAAE,UAAU;;;;;MAgBtC;;CAmDF;mBA/FkB,qBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"WMTSCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/WMTSCapabilities.js"],"names":[],"mappings":";sCAOa,OAAO,aAAa,EAAE,uBAAuB;AAD1D;;GAEG;AAEH;IACE;;;;OAIG;IACH,qBAFW,uBAAuB,EA+BjC;IAdC,iBAAyE;IACzE,oBAC4D;IAC5D,eAA2B;IAa7B;;;;;OAKG;IACH,gCAHW,QAAQ,WACR,uBAAuB,QAmCjC;IAlBC,2DAA2D;IAC3D,mBAA+C;IAC/C,eAAuC;IACvC,gBAAyC;IAiB3C;;;;OAIG;IACH,2CAsCc,WAHC,KAAK,CAAC,MAAM,CAGJ,KAFP,MAAM,GAAC,SAAS,CA2B/B;CACF;sBA7JqB,wBAAwB"}
1
+ {"version":3,"file":"WMTSCapabilities.d.ts","sourceRoot":"","sources":["../../../../../../map/src/custom/sources/WMTSCapabilities.js"],"names":[],"mappings":";sCAOa,OAAO,aAAa,EAAE,uBAAuB;AAD1D;;GAEG;AAEH;IACE;;;;OAIG;IACH,qBAFW,uBAAuB,EA+BjC;IAdC,iBAAyE;IACzE,oBAC4D;IAC5D,eAA2B;IAa7B;;;;;OAKG;IACH,gCAHW,QAAQ,WACR,uBAAuB,QAuCjC;IAtBC,2DAA2D;IAC3D,mBAA+C;IAC/C,eAAuC;IACvC,gBAAyC;IAqB3C;;;;OAIG;IACH,2CAsCc,WAHC,KAAK,CAAC,MAAM,CAGJ,KAFP,MAAM,GAAC,SAAS,CA2B/B;CACF;sBAjKqB,wBAAwB"}
@@ -19,7 +19,11 @@ export class EOxClusterExplodeInteraction extends Interaction {
19
19
  * @param {ClusterExplodeOptions} options - Options for the selection interaction.
20
20
  */
21
21
  constructor(eoxMap: EOxMap, clusterLayer: import("ol/layer/Vector").default<import("ol/source/Cluster").default>, options: ClusterExplodeOptions);
22
- clusterLayer: VectorLayer<import("ol/source").Cluster<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>>;
22
+ clusterLayer: VectorLayer<import("ol/source").Cluster<Feature<import("ol/geom").Geometry, {
23
+ [x: string]: any;
24
+ }>>, Feature<import("ol/geom").Geometry, {
25
+ [x: string]: any;
26
+ }>>;
23
27
  eoxMap: import("../main").EOxMap;
24
28
  active: boolean;
25
29
  handleEvent(evt: any): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"cluster-explode.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cluster-explode.js"],"names":[],"mappings":"AA0TA;;;;;;;;GAQG;AACH,0CANW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,QAiB/B;AA/TD;;;GAGG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,EAiC/B;IA7BC,iIAAgC;IAChC,iCAAoB;IAsBpB,gBAAyD;IA6B3D,+BA4EC;IAcD,uBAMC;IAiID;;OAEG;IACH,eAEC;;CACF;qBA/SY,OAAO,SAAS,EAAE,MAAM;oCACxB,OAAO,UAAU,EAAE,qBAAqB;wBAR7B,4BAA4B;oBAFhC,YAAY;wBAMR,iBAAiB"}
1
+ {"version":3,"file":"cluster-explode.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/cluster-explode.js"],"names":[],"mappings":"AA0TA;;;;;;;;GAQG;AACH,0CANW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,QAiB/B;AA/TD;;;GAGG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,gBACN,OAAO,iBAAiB,EAAE,OAAO,CAAC,OAAO,mBAAmB,EAAE,OAAO,CAAC,WACtE,qBAAqB,EAiC/B;IA7BC;;;;QAAgC;IAChC,iCAAoB;IAsBpB,gBAAyD;IA6B3D,+BA4EC;IAcD,uBAMC;IAiID;;OAEG;IACH,eAEC;;CACF;qBA/SY,OAAO,SAAS,EAAE,MAAM;oCACxB,OAAO,UAAU,EAAE,qBAAqB;wBAR7B,4BAA4B;oBAFhC,YAAY;wBAMR,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAiEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,CA+DpB;AA0FD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CA0N3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAM3B;qBAxbY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;6BAC9B,OAAO,UAAU,EAAE,cAAc;0BACjC,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;iCAChC,OAAO,UAAU,EAAE,kBAAkB;sCACrC,OAAO,UAAU,EAAE,uBAAuB"}
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/generate.js"],"names":[],"mappings":"AAiEA;;;;;;;;GAQG;AACH,oCANW,OAAO,SAAS,EAAE,MAAM,SACxB,QAAQ,uBACR,OAAO,GACL,QAAQ,CA+DpB;AA0FD;;;;;;;;;GASG;AACH,oCAPW,OAAO,SAAS,EAAE,MAAM,sBACxB,QAAQ,iBACR,OAAO,eAAe,EAAE,OAAO,GAC7B,OAAO,eAAe,EAAE,OAAO,CA+N3C;AASM,uCAJI,OAAO,SAAS,EAAE,MAAM,cACxB,KAAK,CAAC,QAAQ,CAAC,GACb,KAAK,CAAC,QAAQ,CAAC,CAM3B;qBA7bY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,UAAU,EAAE,QAAQ;uBAC3B,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;6BAC9B,OAAO,UAAU,EAAE,cAAc;0BACjC,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa;iCAChC,OAAO,UAAU,EAAE,kBAAkB;sCACrC,OAAO,UAAU,EAAE,uBAAuB"}
@@ -18,7 +18,9 @@ export function getLayerById(EOxMap: import("../main").EOxMap, layerId: string):
18
18
  *
19
19
  * @param {Array<AnyLayer>} layers - Array of OpenLayers layers, possibly containing groups.
20
20
  */
21
- export function getFlatLayersArray(layers: Array<AnyLayer>): import("ol/layer/Base").default[];
21
+ export function getFlatLayersArray(layers: Array<AnyLayer>): import("ol/layer/Base").default<{
22
+ [x: string]: any;
23
+ }>[];
22
24
  export type AnyLayerWithSource = import("../types").AnyLayerWithSource;
23
25
  export type AnyLayer = import("../types").AnyLayer;
24
26
  //# sourceMappingURL=layer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/layer.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;GAMG;AACH,qCAJW,OAAO,SAAS,EAAE,MAAM,WACxB,MAAM,GACJ,kBAAkB,CAQ9B;AAED;;;;;;;GAOG;AACH,2CAFW,KAAK,CAAC,QAAQ,CAAC,qCAqCzB;iCA9DY,OAAO,UAAU,EAAE,kBAAkB;uBACrC,OAAO,UAAU,EAAE,QAAQ"}
1
+ {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/layer.js"],"names":[],"mappings":"AAEA;;;GAGG;AAEH;;;;;;GAMG;AACH,qCAJW,OAAO,SAAS,EAAE,MAAM,WACxB,MAAM,GACJ,kBAAkB,CAQ9B;AAED;;;;;;;GAOG;AACH,2CAFW,KAAK,CAAC,QAAQ,CAAC;;KAqCzB;iCA9DY,OAAO,UAAU,EAAE,kBAAkB;uBACrC,OAAO,UAAU,EAAE,QAAQ"}
@@ -39,7 +39,11 @@ export class EOxSelectInteraction {
39
39
  tooltipElement: Element;
40
40
  /** @type {Array<string|number>} **/
41
41
  selectedFids: Array<string | number>;
42
- selectStyleLayer: VectorLayer<import("ol/source").Vector<Feature<import("ol/geom").Geometry>>, Feature<import("ol/geom").Geometry>> | VectorTile<import("ol/source").VectorTile<RenderFeature>, RenderFeature>;
42
+ selectStyleLayer: VectorLayer<import("ol/source").Vector<Feature<import("ol/geom").Geometry, {
43
+ [x: string]: any;
44
+ }>>, Feature<import("ol/geom").Geometry, {
45
+ [x: string]: any;
46
+ }>> | VectorTile<import("ol/source").VectorTile<RenderFeature>, RenderFeature>;
43
47
  /**
44
48
  * Listener to handle selection events
45
49
  * @param {import("ol/MapBrowserEvent").default} event
@@ -1 +1 @@
1
- {"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../map/src/helpers/select.js"],"names":[],"mappings":"AA6hBA;;;;;;;;;GASG;AACH,kCAPW,MAAM,eACN,WAAW,WACX,aAAa,GAAG,WAAW,GACzB,oBAAoB,CAgBhC;AApiBD;;;;;;;;GAQG;AAEH;;;;GAIG;AACH;IACE;;;;OAIG;IACH,oBAJW,MAAM,YACN,OAAO,UAAU,EAAE,WAAW,WAC9B,aAAa,EAmZvB;IAhZC,iCAAoB;IACpB,4NAA2B;IAC3B,0CAAsB;IACtB,gBAAqD;IACrD,eAAmC;IACnC,iBAAuD;IAUnD,wBAAkD;IAgFpD,oCAAoC;IACpC,cADW,KAAK,CAAC,MAAM,GAAC,MAAM,CAAC,CACT;IAuBtB,+MAGG;IAuBH;;;UAGM;IACN,kBAsMW,OAAO,oBAAoB,EAAE,OAAO,UAjJ9C;IAiBD,iCAGC;IAoBD;;;;OAIG;IACH,sCAgBC;IA2IL;;;OAGG;IACH,kBAFW,OAAO,QAIjB;IAED;;;;OAIG;IACH,iBAAkB,iBAHP,OAAO,GAAG,aAAa,GAAG,OAAO,WAAW,EAAE,MAGxB,EAAE,aAAO,UAOxC;IAEF;;;;OAIG;IACH,mBAHW,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,0BAkChC;IAED;;OAEG;IACH,eAWC;IAED;;;;;OAKG;IACH,eAJW,OAAO,GAAG,aAAa,GACrB,MAAM,GAAG,MAAM,CAoB3B;CACF;qBA3gBY,OAAO,SAAS,EAAE,MAAM;uBACxB,OAAO,WAAW,EAAE,QAAQ;0BAC5B,OAAO,UAAU,EAAE,WAAW;uBAC9B,OAAO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