@eox/drawtools 0.11.1-dev.1730225750.0 → 0.12.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/dist/eox-drawtools.js +34 -28
- package/dist/eox-drawtools.umd.cjs +12 -12
- package/package.json +16 -3
- package/src/main.js +5 -0
- package/src/methods/draw/emit-drawn-features.js +15 -1
- package/types/drawtools/src/components/controller.d.ts +99 -0
- package/types/drawtools/src/components/controller.d.ts.map +1 -0
- package/types/drawtools/src/components/list.d.ts +118 -0
- package/types/drawtools/src/components/list.d.ts.map +1 -0
- package/types/drawtools/src/enums/draw.d.ts +8 -0
- package/types/drawtools/src/enums/draw.d.ts.map +1 -0
- package/types/drawtools/src/enums/index.d.ts +4 -0
- package/types/drawtools/src/enums/index.d.ts.map +1 -0
- package/types/drawtools/src/enums/stories.d.ts +30 -0
- package/types/drawtools/src/enums/stories.d.ts.map +1 -0
- package/types/drawtools/src/enums/test.d.ts +8 -0
- package/types/drawtools/src/enums/test.d.ts.map +1 -0
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts +7 -0
- package/types/drawtools/src/helpers/copy-text-to-clipboard.d.ts.map +1 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +17 -0
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -0
- package/types/drawtools/src/helpers/index.d.ts +2 -0
- package/types/drawtools/src/helpers/index.d.ts.map +1 -0
- package/types/drawtools/src/main.d.ts +194 -0
- package/types/drawtools/src/main.d.ts.map +1 -0
- package/types/drawtools/src/methods/controller/index.d.ts +2 -0
- package/types/drawtools/src/methods/controller/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/controller/update-button-states.d.ts +12 -0
- package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts +10 -0
- package/types/drawtools/src/methods/draw/create-select-handler.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts +9 -0
- package/types/drawtools/src/methods/draw/discard-drawing.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts +9 -0
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +12 -0
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/index.d.ts +9 -0
- package/types/drawtools/src/methods/draw/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts +13 -0
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/init-selection.d.ts +9 -0
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts +9 -0
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -0
- package/types/drawtools/src/methods/draw/start-drawing.d.ts +9 -0
- package/types/drawtools/src/methods/draw/start-drawing.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/delete-feature.d.ts +11 -0
- package/types/drawtools/src/methods/list/delete-feature.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/first-update.d.ts +8 -0
- package/types/drawtools/src/methods/list/first-update.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/hover-feature.d.ts +10 -0
- package/types/drawtools/src/methods/list/hover-feature.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/index.d.ts +5 -0
- package/types/drawtools/src/methods/list/index.d.ts.map +1 -0
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts +9 -0
- package/types/drawtools/src/methods/list/select-deselect-feature.d.ts.map +1 -0
- package/types/drawtools/src/style.eox.d.ts +2 -0
- package/types/drawtools/src/style.eox.d.ts.map +1 -0
- package/types/map/src/components/compare.d.ts +31 -0
- package/types/map/src/components/compare.d.ts.map +1 -0
- package/types/map/src/components/tooltip.d.ts +36 -0
- package/types/map/src/components/tooltip.d.ts.map +1 -0
- package/types/map/src/controls/controls.d.ts +27 -0
- package/types/map/src/controls/controls.d.ts.map +1 -0
- package/types/map/src/controls/geo-location.d.ts +41 -0
- package/types/map/src/controls/geo-location.d.ts.map +1 -0
- package/types/map/src/controls/loading-indicator.d.ts +20 -0
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -0
- package/types/map/src/enums/index.d.ts +2 -0
- package/types/map/src/enums/index.d.ts.map +1 -0
- package/types/map/src/enums/map.d.ts +5 -0
- package/types/map/src/enums/map.d.ts.map +1 -0
- package/types/map/src/helpers/add-new-feature.d.ts +14 -0
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -0
- package/types/map/src/helpers/cancel-animation.d.ts +7 -0
- package/types/map/src/helpers/cancel-animation.d.ts.map +1 -0
- package/types/map/src/helpers/center.d.ts +12 -0
- package/types/map/src/helpers/center.d.ts.map +1 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts +12 -0
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -0
- package/types/map/src/helpers/draw.d.ts +22 -0
- package/types/map/src/helpers/draw.d.ts.map +1 -0
- package/types/map/src/helpers/generate.d.ts +30 -0
- package/types/map/src/helpers/generate.d.ts.map +1 -0
- package/types/map/src/helpers/index.d.ts +16 -0
- package/types/map/src/helpers/index.d.ts.map +1 -0
- package/types/map/src/helpers/interactions.d.ts +16 -0
- package/types/map/src/helpers/interactions.d.ts.map +1 -0
- package/types/map/src/helpers/layer.d.ts +24 -0
- package/types/map/src/helpers/layer.d.ts.map +1 -0
- package/types/map/src/helpers/parse-feature.d.ts +8 -0
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -0
- package/types/map/src/helpers/parse-text.d.ts +33 -0
- package/types/map/src/helpers/parse-text.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts +8 -0
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -0
- package/types/map/src/helpers/register-projection.d.ts +11 -0
- package/types/map/src/helpers/register-projection.d.ts.map +1 -0
- package/types/map/src/helpers/select.d.ts +77 -0
- package/types/map/src/helpers/select.d.ts.map +1 -0
- package/types/map/src/helpers/tile-grid.d.ts +14 -0
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -0
- package/types/map/src/helpers/transform.d.ts +19 -0
- package/types/map/src/helpers/transform.d.ts.map +1 -0
- package/types/map/src/main.d.ts +337 -0
- package/types/map/src/main.d.ts.map +1 -0
- package/types/map/src/methods/map/add-update-layer.d.ts +13 -0
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -0
- package/types/map/src/methods/map/animate-to-state.d.ts +7 -0
- package/types/map/src/methods/map/animate-to-state.d.ts.map +1 -0
- package/types/map/src/methods/map/first-updated.d.ts +9 -0
- package/types/map/src/methods/map/first-updated.d.ts.map +1 -0
- package/types/map/src/methods/map/getters.d.ts +15 -0
- package/types/map/src/methods/map/getters.d.ts.map +1 -0
- package/types/map/src/methods/map/index.d.ts +7 -0
- package/types/map/src/methods/map/index.d.ts.map +1 -0
- package/types/map/src/methods/map/remove.d.ts +22 -0
- package/types/map/src/methods/map/remove.d.ts.map +1 -0
- package/types/map/src/methods/map/setters.d.ts +82 -0
- package/types/map/src/methods/map/setters.d.ts.map +1 -0
- package/types/map/types.d.ts +146 -0
- package/types/map/types.d.ts.map +1 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Display list of features
|
|
3
|
+
*
|
|
4
|
+
* @element eox-drawtools-list
|
|
5
|
+
*/
|
|
6
|
+
export class EOxDrawToolsList extends LitElement {
|
|
7
|
+
static properties: {
|
|
8
|
+
eoxMap: {
|
|
9
|
+
attribute: boolean;
|
|
10
|
+
state: boolean;
|
|
11
|
+
};
|
|
12
|
+
olMap: {
|
|
13
|
+
attribute: boolean;
|
|
14
|
+
state: boolean;
|
|
15
|
+
};
|
|
16
|
+
draw: {
|
|
17
|
+
attribute: boolean;
|
|
18
|
+
state: boolean;
|
|
19
|
+
};
|
|
20
|
+
drawLayer: {
|
|
21
|
+
attribute: boolean;
|
|
22
|
+
state: boolean;
|
|
23
|
+
};
|
|
24
|
+
drawnFeatures: {
|
|
25
|
+
attribute: boolean;
|
|
26
|
+
state: boolean;
|
|
27
|
+
type: ArrayConstructor;
|
|
28
|
+
};
|
|
29
|
+
modify: {
|
|
30
|
+
attribute: boolean;
|
|
31
|
+
state: boolean;
|
|
32
|
+
};
|
|
33
|
+
unstyled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @type import("../../../map/src/select").EOxSelectInteraction
|
|
39
|
+
*/
|
|
40
|
+
hoverInteraction: any;
|
|
41
|
+
/**
|
|
42
|
+
* @type import("../../../map/src/select").EOxSelectInteraction
|
|
43
|
+
*/
|
|
44
|
+
clickInteraction: any;
|
|
45
|
+
/**
|
|
46
|
+
* @type string | number
|
|
47
|
+
*/
|
|
48
|
+
hoverId: string | number;
|
|
49
|
+
/**
|
|
50
|
+
* @type string | number
|
|
51
|
+
*/
|
|
52
|
+
clickId: string | number;
|
|
53
|
+
/**
|
|
54
|
+
* @type import("../../../map/main").EOxMap
|
|
55
|
+
*/
|
|
56
|
+
eoxMap: any;
|
|
57
|
+
/**
|
|
58
|
+
* @type import("ol").Map
|
|
59
|
+
*/
|
|
60
|
+
olMap: import("ol").Map;
|
|
61
|
+
/**
|
|
62
|
+
* The current native OpenLayers `draw` interaction
|
|
63
|
+
* @type import("ol/interaction").Draw
|
|
64
|
+
*/
|
|
65
|
+
draw: import("ol/interaction").Draw;
|
|
66
|
+
/**
|
|
67
|
+
* The current native OpenLayers draw `layer`
|
|
68
|
+
* @type import("ol/layer").Vector<import("ol/source").Vector>
|
|
69
|
+
*/
|
|
70
|
+
drawLayer: import("ol/layer").Vector<import("ol/source").Vector>;
|
|
71
|
+
/**
|
|
72
|
+
* The array of drawn native OpenLayers features. Normally includes only one feature,
|
|
73
|
+
* until multiple feature drawing is enabled.
|
|
74
|
+
*
|
|
75
|
+
* @type Array<import("ol").Feature>
|
|
76
|
+
*/
|
|
77
|
+
drawnFeatures: Array<import("ol").Feature>;
|
|
78
|
+
/**
|
|
79
|
+
* The current native OpenLayers `modify` interaction
|
|
80
|
+
* @type import("ol/interaction").Modify
|
|
81
|
+
*/
|
|
82
|
+
modify: import("ol/interaction").Modify;
|
|
83
|
+
/**
|
|
84
|
+
* Render the element without additional styles
|
|
85
|
+
*/
|
|
86
|
+
unstyled: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Handles the deletion of an individual feature.
|
|
89
|
+
*
|
|
90
|
+
* @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
|
|
91
|
+
*/
|
|
92
|
+
_handleDelete(evt: Event & {
|
|
93
|
+
target: HTMLButtonElement;
|
|
94
|
+
}): void;
|
|
95
|
+
/**
|
|
96
|
+
* Handles the selection and deselection of a feature from the list.
|
|
97
|
+
*
|
|
98
|
+
* @param {import("ol").Feature} feature - The selected feature.
|
|
99
|
+
*/
|
|
100
|
+
_handleFeatureSelectAndDeselect(feature: import("ol").Feature): void;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @param {number | string | undefined} featureId - The ID of the feature to hover.
|
|
104
|
+
* @param {Boolean} mouseOut - Flag indicating mouse out event.
|
|
105
|
+
*/
|
|
106
|
+
_handleHoverFeature(featureId: number | string | undefined, mouseOut?: boolean): void;
|
|
107
|
+
/**
|
|
108
|
+
* Initiates initial settings and event triggers upon the component's first update.
|
|
109
|
+
*/
|
|
110
|
+
firstUpdated(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Overrides createRenderRoot to handle shadow DOM.
|
|
113
|
+
*/
|
|
114
|
+
createRenderRoot(): this;
|
|
115
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
116
|
+
}
|
|
117
|
+
import { LitElement } from "lit";
|
|
118
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;OAEG;IACH,sBAAiB;IAEjB;;OAEG;IACH,sBAAiB;IAEjB;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAER;;OAEG;IACH,SAFS,MAAM,GAAG,MAAM,CAEhB;IAKN;;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,MAAM,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;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,4BAKrC;IAED;;OAEG;IACH,qBAEC;IAED;;OAEG;IACH,yBAEC;IAED,+CAiDC;CACF;2BA1LyC,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draw.d.ts","sourceRoot":"","sources":["../../../../src/enums/draw.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/enums/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const STORIES_LAYERS_ARRAY: {
|
|
2
|
+
type: string;
|
|
3
|
+
source: {
|
|
4
|
+
type: string;
|
|
5
|
+
};
|
|
6
|
+
}[];
|
|
7
|
+
export const STORIES_VECTOR_LAYERS: {
|
|
8
|
+
type: string;
|
|
9
|
+
background: string;
|
|
10
|
+
properties: {
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
source: {
|
|
14
|
+
type: string;
|
|
15
|
+
url: string;
|
|
16
|
+
format: string;
|
|
17
|
+
attributions: string;
|
|
18
|
+
};
|
|
19
|
+
style: {
|
|
20
|
+
"stroke-color": string;
|
|
21
|
+
"stroke-width": number;
|
|
22
|
+
"fill-color": string;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
25
|
+
export const STORIES_MAP_STYLE: "width: 400px; height: 300px;";
|
|
26
|
+
export const STORIES_DRAW_TYPES: {
|
|
27
|
+
id: string;
|
|
28
|
+
type: string;
|
|
29
|
+
}[];
|
|
30
|
+
//# sourceMappingURL=stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF,+DAAgE;AAEhE;;;IAKE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../src/enums/test.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy-text-to-clipboard.d.ts","sourceRoot":"","sources":["../../../../src/helpers/copy-text-to-clipboard.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,kDAFW,MAAM,QAShB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initializes upload-related event listeners for drag-and-drop interactions on a map element.
|
|
3
|
+
* It configures the map to react visually to drag-and-drop actions and processes dropped files.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
6
|
+
* @param {import("@eox/map/main").EOxMap} EOxMap - The EOx Map instance.
|
|
7
|
+
*/
|
|
8
|
+
export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawTools, EOxMap: any): void;
|
|
9
|
+
/**
|
|
10
|
+
* Handles file input from drag-and-drop or file selection events,
|
|
11
|
+
* forwarding each file to a specified processing function.
|
|
12
|
+
*
|
|
13
|
+
* @param {DragEvent | Event} e - The event object from the file input interaction.
|
|
14
|
+
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
15
|
+
*/
|
|
16
|
+
export function handleFiles(e: DragEvent | Event, EOxDrawTool: import("../main.js").EOxDrawTools): void;
|
|
17
|
+
//# sourceMappingURL=generate-upload-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-upload-events.d.ts","sourceRoot":"","sources":["../../../../src/helpers/generate-upload-events.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,mDAHW,OAAO,YAAY,EAAE,YAAY,qBA8B3C;AAaD;;;;;;GAMG;AACH,+BAHW,SAAS,GAAG,KAAK,eACjB,OAAO,YAAY,EAAE,YAAY,QAS3C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manage drawn features on a map
|
|
3
|
+
*
|
|
4
|
+
* @element eox-drawtools
|
|
5
|
+
*/
|
|
6
|
+
export class EOxDrawTools extends LitElement {
|
|
7
|
+
static get properties(): {
|
|
8
|
+
allowModify: {
|
|
9
|
+
attribute: string;
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
};
|
|
12
|
+
for: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
currentlyDrawing: {
|
|
16
|
+
attribute: boolean;
|
|
17
|
+
state: boolean;
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
draw: {
|
|
21
|
+
attribute: boolean;
|
|
22
|
+
state: boolean;
|
|
23
|
+
};
|
|
24
|
+
drawLayer: {
|
|
25
|
+
attribute: boolean;
|
|
26
|
+
state: boolean;
|
|
27
|
+
};
|
|
28
|
+
layerId: {
|
|
29
|
+
attribute: string;
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
drawnFeatures: {
|
|
33
|
+
attribute: boolean;
|
|
34
|
+
state: boolean;
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
};
|
|
37
|
+
modify: {
|
|
38
|
+
attribute: boolean;
|
|
39
|
+
state: boolean;
|
|
40
|
+
};
|
|
41
|
+
multipleFeatures: {
|
|
42
|
+
attribute: string;
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
};
|
|
45
|
+
importFeatures: {
|
|
46
|
+
attribute: string;
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
};
|
|
49
|
+
showEditor: {
|
|
50
|
+
attribute: string;
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
};
|
|
53
|
+
showList: {
|
|
54
|
+
attribute: string;
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
};
|
|
57
|
+
projection: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
};
|
|
60
|
+
noShadow: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
};
|
|
63
|
+
type: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
};
|
|
66
|
+
unstyled: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Allow modifying the drawn feature(s)
|
|
72
|
+
*/
|
|
73
|
+
allowModify: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Query selector of an `eox-map` (`String`, passed as an attribute or property)
|
|
76
|
+
* or an `eox-map` DOM element (`HTMLElement`, passed as property)
|
|
77
|
+
*
|
|
78
|
+
* @type {String|HTMLElement}
|
|
79
|
+
*/
|
|
80
|
+
for: string | HTMLElement;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the user is currently in the process of drawing or not
|
|
83
|
+
*/
|
|
84
|
+
currentlyDrawing: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* The current native OpenLayers `draw` interaction
|
|
87
|
+
* @type import("ol/interaction").Draw | import("@eox/map/src/helpers").EOxSelectInteraction
|
|
88
|
+
*/
|
|
89
|
+
draw: import("ol/interaction").Draw | any;
|
|
90
|
+
/**
|
|
91
|
+
* The current native OpenLayers draw `layer` (initialized with a `zIndex` of 100)
|
|
92
|
+
* @type import("ol/layer/Vector").default
|
|
93
|
+
*/
|
|
94
|
+
drawLayer: import("ol/layer/Vector").default;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
*/
|
|
100
|
+
set layerId(value: string);
|
|
101
|
+
get layerId(): string;
|
|
102
|
+
/**
|
|
103
|
+
* The array of drawn native OpenLayers features. Normally includes only one feature, until multiple feature drawing is enabled.
|
|
104
|
+
* @type Array<import("ol").Feature>
|
|
105
|
+
*/
|
|
106
|
+
drawnFeatures: Array<import("ol").Feature>;
|
|
107
|
+
/**
|
|
108
|
+
* The current native OpenLayers `modify` interaction
|
|
109
|
+
* @type import("ol/interaction").Modify
|
|
110
|
+
*/
|
|
111
|
+
modify: import("ol/interaction").Modify;
|
|
112
|
+
/**
|
|
113
|
+
* Allow adding more than one feature at a time
|
|
114
|
+
*/
|
|
115
|
+
multipleFeatures: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Allow import features using drag-drop and upload button
|
|
118
|
+
*/
|
|
119
|
+
importFeatures: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Show geo-json editor for draw tool
|
|
122
|
+
*/
|
|
123
|
+
showEditor: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Show list of features
|
|
126
|
+
*/
|
|
127
|
+
showList: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Projection of the emitted drawn features
|
|
130
|
+
*/
|
|
131
|
+
projection: string;
|
|
132
|
+
/**
|
|
133
|
+
* Type of the drawn feature
|
|
134
|
+
* @type {"Polygon" | "Point" | "LineString" | "Circle" | "Box"}
|
|
135
|
+
*/
|
|
136
|
+
type: "Polygon" | "Point" | "LineString" | "Circle" | "Box";
|
|
137
|
+
/**
|
|
138
|
+
* Render the element without additional styles
|
|
139
|
+
*/
|
|
140
|
+
unstyled: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Renders the element without a shadow root
|
|
143
|
+
*
|
|
144
|
+
* @type {Boolean}
|
|
145
|
+
*/
|
|
146
|
+
noShadow: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* @type {ReturnType<typeof import("./methods/draw/create-select-handler").default>}
|
|
149
|
+
*/
|
|
150
|
+
selectionEvents: ReturnType<typeof import("./methods/draw/create-select-handler").default>;
|
|
151
|
+
/**
|
|
152
|
+
* @onClick Event handler triggered to start drawing on the map.
|
|
153
|
+
*/
|
|
154
|
+
startDrawing(): void;
|
|
155
|
+
/**
|
|
156
|
+
* @onClick Event handler triggered to discard/stop drawing
|
|
157
|
+
* on the map and delete the drawn shapes.
|
|
158
|
+
*/
|
|
159
|
+
discardDrawing(): void;
|
|
160
|
+
/**
|
|
161
|
+
* @param {string} text - The string representation of the features to be parsed.
|
|
162
|
+
* @param {boolean} replaceFeatures - A boolean flag indicating whether to replace the existing features.
|
|
163
|
+
*/
|
|
164
|
+
handleFeatureChange(text: string, replaceFeatures?: boolean): void;
|
|
165
|
+
/**
|
|
166
|
+
* @param {DragEvent | Event} evt - The event object from the file input interaction.
|
|
167
|
+
*/
|
|
168
|
+
handleFilesChange(evt: DragEvent | Event): void;
|
|
169
|
+
/**
|
|
170
|
+
* @event onModifyEnd triggered when the modification of a shape is completed.
|
|
171
|
+
*/
|
|
172
|
+
onModifyEnd(): void;
|
|
173
|
+
/**
|
|
174
|
+
* Update #geoJSON with stringify feature.
|
|
175
|
+
*/
|
|
176
|
+
updateGeoJSON(): void;
|
|
177
|
+
/**
|
|
178
|
+
* Triggers different events when the drawing of a shape is completed.
|
|
179
|
+
*/
|
|
180
|
+
emitDrawnFeatures(): void;
|
|
181
|
+
/**
|
|
182
|
+
* initializes the EOxMap and OlMap instances
|
|
183
|
+
* And stores them in the private properties #eoxMap and #olMap, respectively.
|
|
184
|
+
* It then calls requestUpdate to trigger a re-render.
|
|
185
|
+
*/
|
|
186
|
+
firstUpdated(): void;
|
|
187
|
+
set eoxMap(value: import("../../map/src/main").EOxMap);
|
|
188
|
+
get eoxMap(): import("../../map/src/main").EOxMap;
|
|
189
|
+
updated(changedProperties: any): void;
|
|
190
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
191
|
+
#private;
|
|
192
|
+
}
|
|
193
|
+
import { LitElement } from "lit";
|
|
194
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBC;IAyBC;;OAEG;IACH,qBAAwB;IAExB;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;OAEG;IACH,0BAA6B;IAE7B;;;OAGG;IACH,MAFS,OAAO,gBAAgB,EAAE,IAAI,MAAsD,CAE5E;IAEhB;;;OAGG;IAEH,WAHS,OAAO,iBAAiB,EAAE,OAAO,CAGrB;IAkEvB;;;;OAIG;IACH,2BAGC;IAED,sBAEC;IAvEC;;;OAGG;IACH,eAFS,MAAM,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;OAGG;IACH,QAFS,OAAO,gBAAgB,EAAE,MAAM,CAEtB;IAElB;;OAEG;IACH,0BAA6B;IAE7B;;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,QAAQ,GAAG,KAAK,CAE1C;IAErB;;OAEG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IACrB;;OAEG;IACH,iBAFU,WAAW,cAAc,sCAAsC,EAAE,OAAO,CAAC,CAExD;IAiB7B;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;OAGG;IACH,0BAHW,MAAM,oBACN,OAAO,QASjB;IAED;;OAEG;IACH,uBAFW,SAAS,GAAG,KAAK,QAI3B;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAYC;IASD;;;;OAIG;IACH,qBAUC;IAcD,uDAIC;IARD,kDAEC;IAVD,sCAMC;IAaD,+CA6CC;;CACF;2BAlVyC,KAAK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/methods/controller/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default updateButtonStatesMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Update button state of draw and discard buttons based on specific conditions.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../components/controller").EOxDrawToolsController} EoxDrawToolController - The controller instance.
|
|
6
|
+
* @returns {{ drawDisabled: boolean | import("lit").nothing, discardDisabled: boolean | import("lit").nothing }} - The updated button states.
|
|
7
|
+
*/
|
|
8
|
+
declare function updateButtonStatesMethod(EoxDrawToolController: import("../../components/controller").EOxDrawToolsController): {
|
|
9
|
+
drawDisabled: boolean | typeof import("lit-html").nothing;
|
|
10
|
+
discardDisabled: boolean | typeof import("lit-html").nothing;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=update-button-states.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-button-states.d.ts","sourceRoot":"","sources":["../../../../../src/methods/controller/update-button-states.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,iEAHW,OAAO,6BAA6B,EAAE,sBAAsB,GAC1D;IAAE,YAAY,EAAE,OAAO,oCAAwB,CAAC;IAAC,eAAe,EAAE,OAAO,oCAAwB,CAAA;CAAE,CAgB/G"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default createSelectHandler;
|
|
2
|
+
/**
|
|
3
|
+
* Factory function to create a select event handler
|
|
4
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
5
|
+
*/
|
|
6
|
+
declare function createSelectHandler(EoxDrawTool: import("../../main").EOxDrawTools): {
|
|
7
|
+
addSelectionEvent: () => void;
|
|
8
|
+
removeSelectionEvent: () => void;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=create-select-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-select-handler.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/create-select-handler.js"],"names":[],"mappings":";AAAA;;;GAGG;AACH,kDAFW,OAAO,YAAY,EAAE,YAAY;;;EA6C3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default discardDrawingMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Discards drawing on the map, resets drawing interactions and features,
|
|
4
|
+
* clears the source, and triggers updates.
|
|
5
|
+
*
|
|
6
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
7
|
+
*/
|
|
8
|
+
declare function discardDrawingMethod(EoxDrawTool: import("../../main").EOxDrawTools): void;
|
|
9
|
+
//# sourceMappingURL=discard-drawing.d.ts.map
|
|
@@ -0,0 +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,QAwB3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default emitDrawnFeaturesMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Emits drawn features after a timeout to allow updating drawn features.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
|
+
* @param {Function} drawUpdateEvent - event to be triggered after drawFeature is updated
|
|
7
|
+
*/
|
|
8
|
+
declare function emitDrawnFeaturesMethod(EoxDrawTool: import("../../main").EOxDrawTools, drawUpdateEvent: Function): void;
|
|
9
|
+
//# sourceMappingURL=emit-drawn-features.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emit-drawn-features.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/emit-drawn-features.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,sDAHW,OAAO,YAAY,EAAE,YAAY,mCA+B3C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export default handleLayerId;
|
|
2
|
+
/**
|
|
3
|
+
* handles switching between selection and drawing and updates of the selection layer
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
6
|
+
* @param {import("@eox/map/src/main").EOxMap} EoxMap
|
|
7
|
+
* @param {string} oldLayerId
|
|
8
|
+
* @param {string} updatedLayerId
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare function handleLayerId(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: any, updatedLayerId: string, oldLayerId: string): void;
|
|
12
|
+
//# sourceMappingURL=handle-layer-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-layer-id.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/handle-layer-id.js"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AACH,4CANW,OAAO,YAAY,EAAE,YAAY,+BAGjC,MAAM,cADN,MAAM,QAuBhB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as onDrawEndMethod } from "./on-draw-end";
|
|
2
|
+
export { default as startDrawingMethod } from "./start-drawing";
|
|
3
|
+
export { default as initLayerMethod } from "./init-layer.js";
|
|
4
|
+
export { default as discardDrawingMethod } from "./discard-drawing";
|
|
5
|
+
export { default as emitDrawnFeaturesMethod } from "./emit-drawn-features";
|
|
6
|
+
export { default as createSelectHandler } from "./create-select-handler";
|
|
7
|
+
export { default as initSelection } from "./init-selection";
|
|
8
|
+
export { default as handleLayerId } from "./handle-layer-id";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default initLayerMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Initializes the draw layer, interacts with the map, and returns map instances.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
|
+
* @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
|
|
7
|
+
* @returns {{EoxMap: import("@eox/map/src/main").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
8
|
+
*/
|
|
9
|
+
declare function initLayerMethod(EoxDrawTool: import("../../main").EOxDrawTools, multipleFeatures: boolean): {
|
|
10
|
+
EoxMap: any;
|
|
11
|
+
OlMap: import("ol").Map;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=init-layer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-layer.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-layer.js"],"names":[],"mappings":";AAIA;;;;;;GAMG;AACH,8CAJW,OAAO,YAAY,EAAE,YAAY,8BAE/B;IAAC,MAAM,MAAqC;IAAC,KAAK,EAAE,OAAO,IAAI,EAAE,GAAG,CAAA;CAAC,CA+EjF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default initSelection;
|
|
2
|
+
/**
|
|
3
|
+
* Initializes the selection interactions for the given layer ID to the DrawTool.
|
|
4
|
+
*
|
|
5
|
+
* @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
|
+
* @param {import("@eox/map/src/main").EOxMap} EoxMap - The map instance.
|
|
7
|
+
*/
|
|
8
|
+
declare function initSelection(EoxDrawTool: import('../../main').EOxDrawTools, EoxMap: any, updatedLayerId: any): void;
|
|
9
|
+
//# sourceMappingURL=init-selection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-selection.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/init-selection.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,4CAHW,OAAO,YAAY,EAAE,YAAY,0CAiE3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default onDrawEndMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Handles actions after drawing ends -
|
|
4
|
+
* emits drawn features, deactivates drawing, and requests an update.
|
|
5
|
+
*
|
|
6
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
7
|
+
*/
|
|
8
|
+
declare function onDrawEndMethod(EoxDrawTool: import("../../main").EOxDrawTools): void;
|
|
9
|
+
//# sourceMappingURL=on-draw-end.d.ts.map
|
|
@@ -0,0 +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,QAgB3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default startDrawingMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Initiates the drawing process by initializing the draw layer,
|
|
4
|
+
* activating drawing, and updating the drawing status.
|
|
5
|
+
*
|
|
6
|
+
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
7
|
+
*/
|
|
8
|
+
declare function startDrawingMethod(EoxDrawTool: import("../../main").EOxDrawTools): void;
|
|
9
|
+
//# sourceMappingURL=start-drawing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-drawing.d.ts","sourceRoot":"","sources":["../../../../../src/methods/draw/start-drawing.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,iDAFW,OAAO,YAAY,EAAE,YAAY,QAqB3C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default deleteFeatureMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Deletes a feature when clicked on the delete button.
|
|
4
|
+
*
|
|
5
|
+
* @param {Event & { target: HTMLButtonElement }} evt - Event object containing button target.
|
|
6
|
+
* @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
|
|
7
|
+
*/
|
|
8
|
+
declare function deleteFeatureMethod(evt: Event & {
|
|
9
|
+
target: HTMLButtonElement;
|
|
10
|
+
}, EoxDrawToolList: import("../../components/list").EOxDrawToolsList): void;
|
|
11
|
+
//# sourceMappingURL=delete-feature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-feature.d.ts","sourceRoot":"","sources":["../../../../../src/methods/list/delete-feature.js"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,0CAHW,KAAK,GAAG;IAAE,MAAM,EAAE,iBAAiB,CAAA;CAAE,mBACrC,OAAO,uBAAuB,EAAE,gBAAgB,QAiB1D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default firstUpdatedMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Handles initial settings and event triggers upon the component's first update.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
|
|
6
|
+
*/
|
|
7
|
+
declare function firstUpdatedMethod(EoxDrawToolList: import("../../components/list").EOxDrawToolsList): void;
|
|
8
|
+
//# sourceMappingURL=first-update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"first-update.d.ts","sourceRoot":"","sources":["../../../../../src/methods/list/first-update.js"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,qDAFW,OAAO,uBAAuB,EAAE,gBAAgB,QAyB1D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default hoverFeatureMethod;
|
|
2
|
+
/**
|
|
3
|
+
* Handles the hover effect on a feature within the list.
|
|
4
|
+
*
|
|
5
|
+
* @param {import("../../components/list").EOxDrawToolsList} EoxDrawToolList - The list of drawn features.
|
|
6
|
+
* @param {number | string | undefined} featureId - The ID of the feature to hover.
|
|
7
|
+
* @param {Boolean} mouseOut - Flag indicating mouse out event.
|
|
8
|
+
*/
|
|
9
|
+
declare function hoverFeatureMethod(EoxDrawToolList: import("../../components/list").EOxDrawToolsList, featureId: number | string | undefined, mouseOut: boolean): void;
|
|
10
|
+
//# sourceMappingURL=hover-feature.d.ts.map
|
|
@@ -0,0 +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"}
|