@eox/drawtools 1.6.0 → 1.7.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.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@eox/drawtools",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git@github.com:EOX-A/EOxElements.git"
8
8
  },
9
9
  "devDependencies": {
10
- "@eox/map": "*",
11
- "vite": "^8.0.12"
10
+ "@eox/map": "2.11.0",
11
+ "vite": "^8.3.5"
12
12
  },
13
13
  "engines": {
14
14
  "npm": ">=8.0.0",
@@ -38,9 +38,9 @@
38
38
  "watch": "vite build --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@eox/elements-utils": "^1.1.0",
41
+ "@eox/elements-utils": "^1.3.0",
42
42
  "@eox/ui": "^1.1.0",
43
- "lit": "^3.2.0",
44
- "ol": "^10.9.0"
43
+ "lit": "^3.3.3",
44
+ "ol": "^10.10.0"
45
45
  }
46
46
  }
@@ -131,7 +131,7 @@ export class EOxDrawToolsList extends LitElement {
131
131
  /**
132
132
  *
133
133
  * @param {number | string | undefined} featureId - The ID of the feature to hover.
134
- * @param {Boolean} mouseOut - Flag indicating mouse out event.
134
+ * @param {boolean} mouseOut - Flag indicating mouse out event.
135
135
  */
136
136
  _handleHoverFeature(featureId, mouseOut = false) {
137
137
  hoverFeatureMethod(this, featureId, mouseOut);
@@ -85,6 +85,6 @@ function importFile(file, EOxDrawTool) {
85
85
  // Define the onloadend event handler
86
86
  reader.onloadend = function () {
87
87
  if (typeof reader.result === "string")
88
- EOxDrawTool.handleFeatureChange(reader.result);
88
+ EOxDrawTool.handleFeatureChange(reader.result, false, true, true);
89
89
  };
90
90
  }
package/src/main.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { LitElement, html, nothing } from "lit";
2
+ import { dispatchElementEvent } from "@eox/elements-utils";
2
3
  import "./components/list";
3
4
  import "./components/controller";
4
5
  import { styleEOX } from "./style.eox";
@@ -51,6 +52,7 @@ import {
51
52
  *
52
53
  * @element eox-drawtools
53
54
  * @fires {CustomEvent} drawupdate - Fires whenever features are added, modified or discarded
55
+ * @fires {CustomEvent<import("@eox/elements-utils").EOxActivityDetail>} eox:activity - Fires on genuine user interactions, wrapping the original event for analytics tracking.
54
56
  */
55
57
  export class EOxDrawTools extends LitElement {
56
58
  // Define properties with defaults and types
@@ -132,7 +134,7 @@ export class EOxDrawTools extends LitElement {
132
134
  * Query selector of an `eox-map` (`String`, passed as an attribute or property)
133
135
  * or an `eox-map` DOM element (`HTMLElement`, passed as property)
134
136
  *
135
- * @type {String|HTMLElement}
137
+ * @type {string | HTMLElement}
136
138
  */
137
139
  this.for = "eox-map";
138
140
 
@@ -244,7 +246,7 @@ export class EOxDrawTools extends LitElement {
244
246
  /**
245
247
  * Renders the element without a shadow root
246
248
  *
247
- * @type {Boolean}
249
+ * @type {boolean}
248
250
  */
249
251
  this.noShadow = false;
250
252
  }
@@ -339,9 +341,10 @@ export class EOxDrawTools extends LitElement {
339
341
 
340
342
  /**
341
343
  * Triggers discarding/stopping the drawing interaction and deleting the drawn shapes.
344
+ * @param {boolean} [isUser=false]
342
345
  */
343
- discardDrawing() {
344
- discardDrawingMethod(this);
346
+ discardDrawing(isUser = false) {
347
+ discardDrawingMethod(this, isUser);
345
348
  }
346
349
 
347
350
  /**
@@ -362,17 +365,24 @@ export class EOxDrawTools extends LitElement {
362
365
 
363
366
  /**
364
367
  * @param {string} text - The string representation of the features to be parsed.
365
- * @param {boolean} replaceFeatures - A boolean flag indicating whether to replace the existing features.
366
- * @param {boolean} animate - A boolean flag indicating whether to animate the map on feature change.
368
+ * @param {boolean} [replaceFeatures=false] - A boolean flag indicating whether to replace the existing features.
369
+ * @param {boolean} [animate=true] - A boolean flag indicating whether to animate the map on feature change.
370
+ * @param {boolean} [isUser=false] - Whether the change was user-initiated.
367
371
  * @ignore
368
372
  */
369
- handleFeatureChange(text, replaceFeatures = false, animate = true) {
373
+ handleFeatureChange(
374
+ text,
375
+ replaceFeatures = false,
376
+ animate = true,
377
+ isUser = false,
378
+ ) {
370
379
  this.eoxMap.parseTextToFeature(
371
380
  text || JSON.stringify(DUMMY_GEO_JSON),
372
381
  this.drawLayer,
373
382
  this.eoxMap,
374
383
  replaceFeatures,
375
384
  animate,
385
+ isUser,
376
386
  );
377
387
  }
378
388
 
@@ -389,7 +399,7 @@ export class EOxDrawTools extends LitElement {
389
399
  * @ignore
390
400
  */
391
401
  onModifyEnd() {
392
- this.emitDrawnFeatures();
402
+ this.emitDrawnFeatures(true);
393
403
  }
394
404
 
395
405
  /**
@@ -406,9 +416,10 @@ export class EOxDrawTools extends LitElement {
406
416
 
407
417
  /**
408
418
  * Triggers different events when the drawing of a shape is completed.
419
+ * @param {boolean} [isUser=false]
409
420
  * @ignore
410
421
  */
411
- emitDrawnFeatures() {
422
+ emitDrawnFeatures(isUser = false) {
412
423
  /**
413
424
  * @param {import("./methods/draw/emit-drawn-features").EmitFormat} value
414
425
  */
@@ -418,7 +429,11 @@ export class EOxDrawTools extends LitElement {
418
429
  * is the `drawnFeatures` array
419
430
  * @type Array<import("ol").Feature>
420
431
  */
421
- this.dispatchEvent(new CustomEvent("drawupdate", { detail: value }));
432
+ dispatchElementEvent(this, "drawupdate", {
433
+ detail: value,
434
+ activity: isUser,
435
+ action: "drawupdate",
436
+ });
422
437
  };
423
438
  emitDrawnFeaturesMethod(this, drawUpdateEvent);
424
439
  }
@@ -534,9 +549,9 @@ export class EOxDrawTools extends LitElement {
534
549
  <eox-drawtools-controller
535
550
  .drawFunc=${{
536
551
  start: () => this.startDrawing(),
537
- discard: () => this.discardDrawing(),
552
+ discard: () => this.discardDrawing(true),
538
553
  editor: (/** @type {{ target: { value: string; }; }} */ evt) =>
539
- this.handleFeatureChange(evt.target.value, true),
554
+ this.handleFeatureChange(evt.target.value, true, true, true),
540
555
  import: (/** @type {DragEvent} */ evt) => this.handleFilesChange(evt),
541
556
  }}
542
557
  ?select=${!!this.layerId}
@@ -3,6 +3,7 @@
3
3
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
4
4
  */
5
5
  import { toFeature } from "ol/render/Feature";
6
+ import { dispatchElementEvent } from "@eox/elements-utils";
6
7
 
7
8
  const createSelectHandler = (EoxDrawTool) => {
8
9
  /**
@@ -21,9 +22,12 @@ const createSelectHandler = (EoxDrawTool) => {
21
22
  e.detail.feature = toFeature(e.detail.feature);
22
23
  }
23
24
  EoxDrawTool.drawLayer.getSource().addFeature(e.detail.feature);
24
- EoxDrawTool.eoxMap.dispatchEvent(
25
- new CustomEvent("addfeatures", { detail: e.detail }),
26
- );
25
+ const event = dispatchElementEvent(EoxDrawTool.eoxMap, "addfeatures", {
26
+ detail: e.detail,
27
+ activity: false,
28
+ action: "addfeatures",
29
+ });
30
+ event.isUser = true;
27
31
  };
28
32
 
29
33
  /**
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
6
6
  */
7
- const discardDrawingMethod = (EoxDrawTool) => {
7
+ const discardDrawingMethod = (EoxDrawTool, isUser = false) => {
8
8
  // Function to discard drawing interactions and features
9
9
  const discardDrawingActions = () => {
10
10
  // Reset drawnFeatures, deactivate drawing, and clear drawLayer's source
@@ -19,7 +19,7 @@ const discardDrawingMethod = (EoxDrawTool) => {
19
19
 
20
20
  // Function to trigger updates after discarding drawing
21
21
  const triggerUpdates = () => {
22
- EoxDrawTool.emitDrawnFeatures();
22
+ EoxDrawTool.emitDrawnFeatures(isUser);
23
23
  EoxDrawTool.currentlyDrawing = false;
24
24
  EoxDrawTool.requestUpdate();
25
25
  };
@@ -8,7 +8,7 @@ import { getElement } from "@eox/elements-utils";
8
8
  * Initializes the draw layer, interacts with the map, and returns map instances.
9
9
  *
10
10
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
11
- * @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
11
+ * @param {boolean} multipleFeatures - Allow adding more than one feature at a time
12
12
  */
13
13
  const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
14
14
  const mapQuery = getElement(EoxDrawTool.for);
@@ -122,7 +122,10 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
122
122
  }
123
123
 
124
124
  const onModifyEnd = () => EoxDrawTool.onModifyEnd();
125
- const onAddFeatures = () => onDrawEndMethod(EoxDrawTool);
125
+ const onAddFeatures = (evt) => {
126
+ const isUser = Boolean(/** @type {any} */ (evt)?.isUser);
127
+ onDrawEndMethod(EoxDrawTool, isUser);
128
+ };
126
129
 
127
130
  EoxDrawTool.modify?.on("modifyend", onModifyEnd);
128
131
 
@@ -4,10 +4,10 @@
4
4
  *
5
5
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
6
6
  */
7
- const onDrawEndMethod = (EoxDrawTool) => {
7
+ const onDrawEndMethod = (EoxDrawTool, isUser = false) => {
8
8
  // Function to handle actions when drawing ends
9
9
  const handleDrawEnd = () => {
10
- EoxDrawTool.emitDrawnFeatures(); // Emit drawn features
10
+ EoxDrawTool.emitDrawnFeatures(isUser); // Emit drawn features
11
11
  if (!EoxDrawTool.multipleFeatures) {
12
12
  EoxDrawTool.draw?.setActive(false); // Deactivate drawing
13
13
  EoxDrawTool.selectionEvents.removeSelectionEvent();
@@ -16,7 +16,7 @@ const deleteFeatureMethod = (evt, EoxDrawToolList, EoxDrawTool) => {
16
16
  // Remove the feature from the draw layer and update the drawnFeatures array
17
17
  EoxDrawToolList.drawLayer.getSource().removeFeature(feature);
18
18
  EoxDrawToolList.drawnFeatures.splice(index, 1);
19
- EoxDrawTool.emitDrawnFeatures();
19
+ EoxDrawTool.emitDrawnFeatures(true);
20
20
 
21
21
  // Request an update to reflect the changes
22
22
  EoxDrawToolList.requestUpdate();
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
5
5
  * @param {number | string | undefined} featureId - The ID of the feature to hover.
6
- * @param {Boolean} mouseOut - Flag indicating mouse out event.
6
+ * @param {boolean} mouseOut - Flag indicating mouse out event.
7
7
  */
8
8
  const hoverFeatureMethod = (EoxDrawToolList, featureId, mouseOut) => {
9
9
  // Check if the feature is currently clicked; if so, don't perform hover effect
@@ -127,7 +127,7 @@ export class EOxDrawToolsList extends LitElement {
127
127
  /**
128
128
  *
129
129
  * @param {number | string | undefined} featureId - The ID of the feature to hover.
130
- * @param {Boolean} mouseOut - Flag indicating mouse out event.
130
+ * @param {boolean} mouseOut - Flag indicating mouse out event.
131
131
  */
132
132
  _handleHoverFeature(featureId: number | string | undefined, mouseOut?: boolean): void;
133
133
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/components/list.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAEF;;OAEG;IACH,kBAFU,GAAyB,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,kBAFU,GAAyB,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAER;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAKN;;OAEG;IACH,cAFS,OAAO,SAAS,EAAE,YAAY,CAEf;IAExB;;OAEG;IACH,YAAkB;IAElB;;OAEG;IACH,OAFS,OAAO,IAAI,EAAE,GAAG,CAER;IAEjB;;;OAGG;IAEH,MAHS,OAAO,gBAAgB,EAAE,IAAI,CAGtB;IAEhB;;;OAGG;IAEH,WAHS,OAAO,UAAU,EAAE,MAAM,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,CAGzC;IAErB;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAA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IAEvB;;OAEG;IACH,oBAA4B;IAE5B;;OAEG;IACH,oBAA0B;IAE1B;;;OAGG;IAEH,QAHS,OAAO,gBAAgB,EAAE,MAAM,CAGtB;IAElB;;OAEG;IACH,kBAAqB;IAGvB;;;;OAIG;IACH,mBAFW,KAAK,GAAG;QAAE,MAAM,EAAE,iBAAiB,CAAA;KAAE,QAK/C;IAED;;;;OAIG;IACH,yCAFW,OAAO,IAAI,EAAE,OAAO,QAI9B;IAED;;;;OAIG;IACH,+BAHW,MAAM,GAAG,MAAM,GAAG,SAAS,aAC3B,OAAO,QAIjB;IAED;;OAEG;IACH,qBAEC;IAED;;OAEG;IACH,yBAEC;IAED,+CAwEC;CACF;2BAlOyC,KAAK"}
package/types/main.d.ts CHANGED
@@ -29,6 +29,7 @@
29
29
  *
30
30
  * @element eox-drawtools
31
31
  * @fires {CustomEvent} drawupdate - Fires whenever features are added, modified or discarded
32
+ * @fires {CustomEvent<import("@eox/elements-utils").EOxActivityDetail>} eox:activity - Fires on genuine user interactions, wrapping the original event for analytics tracking.
32
33
  */
33
34
  export class EOxDrawTools extends LitElement {
34
35
  static get properties(): {
@@ -123,7 +124,7 @@ export class EOxDrawTools extends LitElement {
123
124
  * Query selector of an `eox-map` (`String`, passed as an attribute or property)
124
125
  * or an `eox-map` DOM element (`HTMLElement`, passed as property)
125
126
  *
126
- * @type {String|HTMLElement}
127
+ * @type {string | HTMLElement}
127
128
  */
128
129
  for: string | HTMLElement;
129
130
  /**
@@ -222,7 +223,7 @@ export class EOxDrawTools extends LitElement {
222
223
  /**
223
224
  * Renders the element without a shadow root
224
225
  *
225
- * @type {Boolean}
226
+ * @type {boolean}
226
227
  */
227
228
  noShadow: boolean;
228
229
  /**
@@ -259,8 +260,9 @@ export class EOxDrawTools extends LitElement {
259
260
  stopDrawing(): void;
260
261
  /**
261
262
  * Triggers discarding/stopping the drawing interaction and deleting the drawn shapes.
263
+ * @param {boolean} [isUser=false]
262
264
  */
263
- discardDrawing(): void;
265
+ discardDrawing(isUser?: boolean): void;
264
266
  /**
265
267
  * Removes a feature from the drawn features.
266
268
  * @param {import("ol").Feature} feature - The feature to remove.
@@ -273,11 +275,12 @@ export class EOxDrawTools extends LitElement {
273
275
  removeFeatureByIndex(index: number): void;
274
276
  /**
275
277
  * @param {string} text - The string representation of the features to be parsed.
276
- * @param {boolean} replaceFeatures - A boolean flag indicating whether to replace the existing features.
277
- * @param {boolean} animate - A boolean flag indicating whether to animate the map on feature change.
278
+ * @param {boolean} [replaceFeatures=false] - A boolean flag indicating whether to replace the existing features.
279
+ * @param {boolean} [animate=true] - A boolean flag indicating whether to animate the map on feature change.
280
+ * @param {boolean} [isUser=false] - Whether the change was user-initiated.
278
281
  * @ignore
279
282
  */
280
- handleFeatureChange(text: string, replaceFeatures?: boolean, animate?: boolean): void;
283
+ handleFeatureChange(text: string, replaceFeatures?: boolean, animate?: boolean, isUser?: boolean): void;
281
284
  /**
282
285
  * @param {DragEvent | InputEvent & { target: HTMLInputElement }} evt - The event object from the file input interaction.
283
286
  * @ignore
@@ -297,9 +300,10 @@ export class EOxDrawTools extends LitElement {
297
300
  updateGeoJSON(): void;
298
301
  /**
299
302
  * Triggers different events when the drawing of a shape is completed.
303
+ * @param {boolean} [isUser=false]
300
304
  * @ignore
301
305
  */
302
- emitDrawnFeatures(): void;
306
+ emitDrawnFeatures(isUser?: boolean): void;
303
307
  /**
304
308
  * initializes the EOxMap and OlMap instances
305
309
  * And stores them in the private properties #eoxMap and #olMap, respectively.
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBC;IA4CC;;OAEG;IACH,qBAAwB;IAExB;;;;;OAKG;IACH,KAFU,SAAO,WA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;IAED;;;;OAIG;IACH,2BAHW,OAAO,QAoBjB;IAUD;;;;OAIG;IACH,oBAWC;IAHC,iEAAuB;IAkDzB,uBAIC;IAZD;;;OAGG;IACH,kBAEC;IA3CD;;;;;OAKG;IACH,qBAYC;IAED,cAAc;IACd,sCAcC;IAiCD,+CAqDC;;CACF;2BA5kByC,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-select-handler.d.ts","sourceRoot":"","sources":["../../../src/methods/draw/create-select-handler.js"],"names":[],"mappings":";AAMA;;;EAgDC"}
1
+ {"version":3,"file":"create-select-handler.d.ts","sourceRoot":"","sources":["../../../src/methods/draw/create-select-handler.js"],"names":[],"mappings":";AAOA;;;EAmDC"}
@@ -5,5 +5,5 @@ export default discardDrawingMethod;
5
5
  *
6
6
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
7
7
  */
8
- declare function discardDrawingMethod(EoxDrawTool: import("../../main").EOxDrawTools): void;
8
+ declare function discardDrawingMethod(EoxDrawTool: import("../../main").EOxDrawTools, isUser?: boolean): void;
9
9
  //# sourceMappingURL=discard-drawing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"discard-drawing.d.ts","sourceRoot":"","sources":["../../../src/methods/draw/discard-drawing.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,mDAFW,OAAO,YAAY,EAAE,YAAY,QAyB3C"}
1
+ {"version":3,"file":"discard-drawing.d.ts","sourceRoot":"","sources":["../../../src/methods/draw/discard-drawing.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,mDAFW,OAAO,YAAY,EAAE,YAAY,0BAyB3C"}
@@ -3,7 +3,7 @@ export default initLayerMethod;
3
3
  * Initializes the draw layer, interacts with the map, and returns map instances.
4
4
  *
5
5
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
6
- * @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
6
+ * @param {boolean} multipleFeatures - Allow adding more than one feature at a time
7
7
  */
8
8
  declare function initLayerMethod(EoxDrawTool: import("../../main").EOxDrawTools, multipleFeatures: boolean): {
9
9
  EoxMap: any;
@@ -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;;;yBAsI/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,oBACjC,OAAO;;;yBAwIL,OAAO,YAAY,EAAE,YAAY;EAqB7C"}
@@ -5,5 +5,5 @@ export default onDrawEndMethod;
5
5
  *
6
6
  * @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
7
7
  */
8
- declare function onDrawEndMethod(EoxDrawTool: import("../../main").EOxDrawTools): void;
8
+ declare function onDrawEndMethod(EoxDrawTool: import("../../main").EOxDrawTools, isUser?: boolean): void;
9
9
  //# sourceMappingURL=on-draw-end.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"on-draw-end.d.ts","sourceRoot":"","sources":["../../../src/methods/draw/on-draw-end.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,8CAFW,OAAO,YAAY,EAAE,YAAY,QAiC3C"}
1
+ {"version":3,"file":"on-draw-end.d.ts","sourceRoot":"","sources":["../../../src/methods/draw/on-draw-end.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,8CAFW,OAAO,YAAY,EAAE,YAAY,0BAiC3C"}
@@ -4,7 +4,7 @@ export default hoverFeatureMethod;
4
4
  *
5
5
  * @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
6
6
  * @param {number | string | undefined} featureId - The ID of the feature to hover.
7
- * @param {Boolean} mouseOut - Flag indicating mouse out event.
7
+ * @param {boolean} mouseOut - Flag indicating mouse out event.
8
8
  */
9
9
  declare function hoverFeatureMethod(EoxDrawToolList: import("../../components/list").EOxDrawToolsList, featureId: number | string | undefined, mouseOut: boolean): void;
10
10
  //# sourceMappingURL=hover-feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hover-feature.d.ts","sourceRoot":"","sources":["../../../src/methods/list/hover-feature.js"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,qDAJW,OAAO,uBAAuB,EAAE,gBAAgB,aAChD,MAAM,GAAG,MAAM,GAAG,SAAS,2BAUrC"}
1
+ {"version":3,"file":"hover-feature.d.ts","sourceRoot":"","sources":["../../../src/methods/list/hover-feature.js"],"names":[],"mappings":";AAAA;;;;;;GAMG;AACH,qDAJW,OAAO,uBAAuB,EAAE,gBAAgB,aAChD,MAAM,GAAG,MAAM,GAAG,SAAS,YAC3B,OAAO,QASjB"}