@eox/drawtools 0.13.3 → 0.13.5
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 +1265 -1269
- package/dist/eox-drawtools.umd.cjs +32 -32
- package/package.json +8 -6
- package/src/components/controller.js +4 -1
- package/src/components/list.js +3 -3
- package/src/helpers/generate-upload-events.js +5 -3
- package/src/main.js +36 -8
- package/src/methods/draw/handle-layer-id.js +1 -1
- package/src/methods/draw/init-layer.js +6 -7
- package/src/methods/draw/init-selection.js +6 -8
- package/src/methods/draw/on-draw-end.js +14 -0
- package/types/drawtools/src/components/controller.d.ts.map +1 -1
- package/types/drawtools/src/components/list.d.ts +6 -6
- package/types/drawtools/src/components/list.d.ts.map +1 -1
- package/types/drawtools/src/enums/stories.d.ts.map +1 -1
- package/types/drawtools/src/helpers/features-to-geojson.d.ts +2 -1
- package/types/drawtools/src/helpers/features-to-geojson.d.ts.map +1 -1
- package/types/drawtools/src/helpers/generate-upload-events.d.ts +4 -4
- package/types/drawtools/src/helpers/generate-upload-events.d.ts.map +1 -1
- package/types/drawtools/src/main.d.ts +36 -11
- package/types/drawtools/src/main.d.ts.map +1 -1
- package/types/drawtools/src/methods/controller/update-button-states.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/emit-drawn-features.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts +2 -2
- package/types/drawtools/src/methods/draw/handle-layer-id.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-layer.d.ts +2 -2
- package/types/drawtools/src/methods/draw/init-layer.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/init-selection.d.ts +2 -2
- package/types/drawtools/src/methods/draw/init-selection.d.ts.map +1 -1
- package/types/drawtools/src/methods/draw/on-draw-end.d.ts.map +1 -1
- package/types/map/src/components/tooltip.d.ts +1 -1
- package/types/map/src/controls/controls.d.ts +2 -2
- package/types/map/src/controls/controls.d.ts.map +1 -1
- package/types/map/src/controls/geo-location.d.ts +2 -2
- package/types/map/src/controls/geo-location.d.ts.map +1 -1
- package/types/map/src/controls/loading-indicator.d.ts +2 -2
- package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
- package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
- package/types/map/src/helpers/center.d.ts.map +1 -1
- package/types/map/src/helpers/coordinates-roughly-equals.d.ts.map +1 -1
- package/types/map/src/helpers/draw.d.ts +6 -6
- package/types/map/src/helpers/draw.d.ts.map +1 -1
- package/types/map/src/helpers/generate.d.ts +9 -8
- package/types/map/src/helpers/generate.d.ts.map +1 -1
- package/types/map/src/helpers/layer.d.ts +5 -5
- package/types/map/src/helpers/layer.d.ts.map +1 -1
- package/types/map/src/helpers/parse-feature.d.ts.map +1 -1
- package/types/map/src/helpers/register-projection-from-code.d.ts.map +1 -1
- package/types/map/src/helpers/register-projection.d.ts.map +1 -1
- package/types/map/src/helpers/select.d.ts +11 -11
- package/types/map/src/helpers/select.d.ts.map +1 -1
- package/types/map/src/helpers/tile-grid.d.ts +2 -2
- package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
- package/types/map/src/helpers/transform.d.ts +2 -2
- package/types/map/src/helpers/transform.d.ts.map +1 -1
- package/types/map/src/main.d.ts +26 -26
- package/types/map/src/main.d.ts.map +1 -1
- package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
- package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
- package/types/map/src/methods/map/getters.d.ts.map +1 -1
- package/types/map/src/methods/map/setters.d.ts +12 -12
- package/types/map/src/methods/map/setters.d.ts.map +1 -1
- package/types/map/{types.d.ts → src/types.d.ts} +13 -2
- package/types/map/src/types.d.ts.map +1 -0
- package/types/map/types.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eox/drawtools",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"devDependencies": {
|
|
6
|
+
"@eox/map": "^1.19.3",
|
|
6
7
|
"vite": "^6.0.3"
|
|
7
8
|
},
|
|
8
9
|
"engines": {
|
|
@@ -15,25 +16,26 @@
|
|
|
15
16
|
"src"
|
|
16
17
|
],
|
|
17
18
|
"main": "./src/main.js",
|
|
18
|
-
"types": "./types/
|
|
19
|
+
"types": "./types/main.d.ts",
|
|
19
20
|
"typesVersions": {
|
|
20
21
|
"*": {
|
|
21
22
|
".": [
|
|
22
|
-
"./types/
|
|
23
|
+
"./types/main.d.ts"
|
|
23
24
|
],
|
|
24
25
|
"src/*": [
|
|
25
|
-
"./types
|
|
26
|
+
"./types/*"
|
|
26
27
|
]
|
|
27
28
|
}
|
|
28
29
|
},
|
|
29
30
|
"scripts": {
|
|
30
|
-
"
|
|
31
|
+
"types:generate": "tsc --project tsconfig.build.json || true",
|
|
32
|
+
"prepack": "npm run types:generate",
|
|
31
33
|
"build": "vite build",
|
|
32
34
|
"watch": "vite build --watch"
|
|
33
35
|
},
|
|
34
36
|
"dependencies": {
|
|
35
37
|
"@eox/elements-utils": "^0.1.5",
|
|
36
38
|
"lit": "^3.2.0",
|
|
37
|
-
"ol": "^10.
|
|
39
|
+
"ol": "^10.4.0"
|
|
38
40
|
}
|
|
39
41
|
}
|
|
@@ -155,7 +155,10 @@ export class EOxDrawToolsController extends LitElement {
|
|
|
155
155
|
<button
|
|
156
156
|
data-cy="importBtn"
|
|
157
157
|
class="import icon"
|
|
158
|
-
@click=${() =>
|
|
158
|
+
@click=${() =>
|
|
159
|
+
/**@type {HTMLElement}*/ (
|
|
160
|
+
this.querySelector("#import-file")
|
|
161
|
+
).click()}
|
|
159
162
|
>
|
|
160
163
|
import
|
|
161
164
|
</button>
|
package/src/components/list.js
CHANGED
|
@@ -25,12 +25,12 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* @type import("
|
|
28
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
29
29
|
*/
|
|
30
30
|
hoverInteraction;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* @type import("
|
|
33
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
34
34
|
*/
|
|
35
35
|
clickInteraction;
|
|
36
36
|
|
|
@@ -48,7 +48,7 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
48
48
|
super();
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* @type import("
|
|
51
|
+
* @type import("@eox/map").EOxMap
|
|
52
52
|
*/
|
|
53
53
|
this.eoxMap = null;
|
|
54
54
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* It configures the map to react visually to drag-and-drop actions and processes dropped files.
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EOxMap - The EOx Map instance.
|
|
7
7
|
*/
|
|
8
8
|
export function initMapDragDropImport(EOxDrawTool, EOxMap) {
|
|
9
9
|
// Helper function to prevent default behavior for drag and drop events
|
|
@@ -49,14 +49,16 @@ function preventDefaults(e) {
|
|
|
49
49
|
* Handles file input from drag-and-drop or file selection events,
|
|
50
50
|
* forwarding each file to a specified processing function.
|
|
51
51
|
*
|
|
52
|
-
* @param {DragEvent
|
|
52
|
+
* @param {DragEvent} e - The event object from the file input interaction.
|
|
53
53
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
54
54
|
*/
|
|
55
55
|
export function handleFiles(e, EOxDrawTool) {
|
|
56
56
|
preventDefaults(e);
|
|
57
57
|
|
|
58
58
|
// Extract files from the event, supporting both drag-and-drop and file input sources
|
|
59
|
-
const files = e.dataTransfer
|
|
59
|
+
const files = e.dataTransfer
|
|
60
|
+
? e.dataTransfer.files
|
|
61
|
+
: /**@type {HTMLInputElement}*/ (e.target).files;
|
|
60
62
|
|
|
61
63
|
Array.from(files).forEach((file) => importFile(file, EOxDrawTool));
|
|
62
64
|
}
|
package/src/main.js
CHANGED
|
@@ -29,10 +29,12 @@ export class EOxDrawTools extends LitElement {
|
|
|
29
29
|
allowModify: { attribute: "allow-modify", type: Boolean },
|
|
30
30
|
for: { type: String },
|
|
31
31
|
currentlyDrawing: { attribute: false, state: true, type: Boolean },
|
|
32
|
+
continuous: { type: Boolean },
|
|
32
33
|
draw: { attribute: false, state: true },
|
|
33
34
|
drawLayer: { attribute: false, state: true },
|
|
34
|
-
layerId: { attribute: "layer-id", type: String },
|
|
35
35
|
drawnFeatures: { attribute: false, state: true, type: Array },
|
|
36
|
+
layerId: { attribute: "layer-id", type: String },
|
|
37
|
+
featureStyles: { attribute: false },
|
|
36
38
|
modify: { attribute: false, state: true },
|
|
37
39
|
multipleFeatures: { attribute: "multiple-features", type: Boolean },
|
|
38
40
|
importFeatures: { attribute: "import-features", type: Boolean },
|
|
@@ -47,7 +49,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
/**
|
|
50
|
-
* @type import("
|
|
52
|
+
* @type import("@eox/map").EOxMap
|
|
51
53
|
*/
|
|
52
54
|
#eoxMap;
|
|
53
55
|
|
|
@@ -65,6 +67,10 @@ export class EOxDrawTools extends LitElement {
|
|
|
65
67
|
* @type string
|
|
66
68
|
*/
|
|
67
69
|
#layerId;
|
|
70
|
+
/**
|
|
71
|
+
* @type boolean
|
|
72
|
+
*/
|
|
73
|
+
#continuous;
|
|
68
74
|
|
|
69
75
|
constructor() {
|
|
70
76
|
super();
|
|
@@ -89,7 +95,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
89
95
|
|
|
90
96
|
/**
|
|
91
97
|
* The current native OpenLayers `draw` interaction
|
|
92
|
-
* @type import("ol/interaction").Draw | import("@eox/map
|
|
98
|
+
* @type import("ol/interaction").Draw | import("@eox/map").EOxMap["selectInteractions"][string]
|
|
93
99
|
*/
|
|
94
100
|
this.draw = null;
|
|
95
101
|
|
|
@@ -111,6 +117,16 @@ export class EOxDrawTools extends LitElement {
|
|
|
111
117
|
*/
|
|
112
118
|
this.drawnFeatures = [];
|
|
113
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Flat styles for the drawn/selected features
|
|
122
|
+
* @type {{
|
|
123
|
+
* layer?: import("ol/style/flat").FlatStyleLike
|
|
124
|
+
* hover?: import("ol/style/flat").FlatStyleLike
|
|
125
|
+
* click?: import("ol/style/flat").FlatStyleLike
|
|
126
|
+
* } | null}
|
|
127
|
+
*/
|
|
128
|
+
this.featureStyles = null;
|
|
129
|
+
|
|
114
130
|
/**
|
|
115
131
|
* The current native OpenLayers `modify` interaction
|
|
116
132
|
* @type import("ol/interaction").Modify
|
|
@@ -174,8 +190,21 @@ export class EOxDrawTools extends LitElement {
|
|
|
174
190
|
}
|
|
175
191
|
|
|
176
192
|
/**
|
|
177
|
-
*
|
|
178
|
-
*
|
|
193
|
+
* Enables the user to draw continuously one feature after another
|
|
194
|
+
* without having to discard previous ones manually
|
|
195
|
+
* @type {boolean}
|
|
196
|
+
*/
|
|
197
|
+
set continuous(value) {
|
|
198
|
+
this.#continuous = value;
|
|
199
|
+
if (value) this.multipleFeatures = true;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
get continuous() {
|
|
203
|
+
return this.#continuous;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Enables selection mode for the passed layer
|
|
179
208
|
* @type {string}
|
|
180
209
|
*/
|
|
181
210
|
set layerId(value) {
|
|
@@ -216,7 +245,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
216
245
|
}
|
|
217
246
|
|
|
218
247
|
/**
|
|
219
|
-
* @param {DragEvent
|
|
248
|
+
* @param {DragEvent} evt - The event object from the file input interaction.
|
|
220
249
|
*/
|
|
221
250
|
handleFilesChange(evt) {
|
|
222
251
|
handleFiles(evt, this);
|
|
@@ -320,8 +349,7 @@ export class EOxDrawTools extends LitElement {
|
|
|
320
349
|
discard: () => this.discardDrawing(),
|
|
321
350
|
editor: (/** @type {{ target: { value: string; }; }} */ evt) =>
|
|
322
351
|
this.handleFeatureChange(evt.target.value, true),
|
|
323
|
-
import: (/** @type {DragEvent
|
|
324
|
-
this.handleFilesChange(evt),
|
|
352
|
+
import: (/** @type {DragEvent} */ evt) => this.handleFilesChange(evt),
|
|
325
353
|
}}
|
|
326
354
|
?select=${!!this.layerId}
|
|
327
355
|
.unstyled=${this.unstyled}
|
|
@@ -4,7 +4,7 @@ import { initSelection } from ".";
|
|
|
4
4
|
* handles switching between selection and drawing and updates of the selection layer
|
|
5
5
|
*
|
|
6
6
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
7
|
-
* @param {import("@eox/map
|
|
7
|
+
* @param {import("@eox/map").EOxMap} EoxMap
|
|
8
8
|
* @param {string} oldLayerId
|
|
9
9
|
* @param {string} updatedLayerId
|
|
10
10
|
* @returns
|
|
@@ -7,12 +7,12 @@ import { getElement } from "@eox/elements-utils";
|
|
|
7
7
|
*
|
|
8
8
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
9
9
|
* @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
|
|
10
|
-
* @returns {{EoxMap: import("@eox/map
|
|
10
|
+
* @returns {{EoxMap: import("@eox/map").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
11
11
|
*/
|
|
12
12
|
const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
13
13
|
const mapQuery = getElement(EoxDrawTool.for);
|
|
14
14
|
|
|
15
|
-
const EoxMap = /** @type {import("@eox/map
|
|
15
|
+
const EoxMap = /** @type {import("@eox/map").EOxMap} */ (mapQuery);
|
|
16
16
|
|
|
17
17
|
const OlMap = EoxMap.map;
|
|
18
18
|
|
|
@@ -21,7 +21,6 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
21
21
|
type: "Vector",
|
|
22
22
|
properties: {
|
|
23
23
|
id: "drawLayer",
|
|
24
|
-
// @ts-expect-error TODO
|
|
25
24
|
layerControlHide: true,
|
|
26
25
|
isDrawingEnabled: false,
|
|
27
26
|
multipleFeatures: multipleFeatures,
|
|
@@ -29,6 +28,7 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
29
28
|
source: {
|
|
30
29
|
type: "Vector",
|
|
31
30
|
},
|
|
31
|
+
style: EoxDrawTool.featureStyles?.["layer"],
|
|
32
32
|
interactions: [
|
|
33
33
|
{
|
|
34
34
|
type: "draw",
|
|
@@ -38,15 +38,15 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
38
38
|
type: EoxDrawTool.type,
|
|
39
39
|
modify: EoxDrawTool.allowModify,
|
|
40
40
|
stopClick: true,
|
|
41
|
+
style: EoxDrawTool.featureStyles?.["layer"],
|
|
41
42
|
},
|
|
42
43
|
},
|
|
43
44
|
{
|
|
44
45
|
type: "select",
|
|
45
|
-
//@ts-expect-error TODO
|
|
46
46
|
options: {
|
|
47
47
|
id: "selectHover",
|
|
48
48
|
condition: "pointermove",
|
|
49
|
-
style: {
|
|
49
|
+
style: EoxDrawTool.featureStyles?.["hover"] || {
|
|
50
50
|
"fill-color": "rgba(51, 153, 204,0.5)",
|
|
51
51
|
"stroke-color": "#3399CC",
|
|
52
52
|
"stroke-width": 2.5,
|
|
@@ -56,12 +56,11 @@ const initLayerMethod = (EoxDrawTool, multipleFeatures) => {
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
type: "select",
|
|
59
|
-
//@ts-expect-error TODO
|
|
60
59
|
options: {
|
|
61
60
|
id: "selectClick",
|
|
62
61
|
condition: "click",
|
|
63
62
|
panIn: true,
|
|
64
|
-
style: {
|
|
63
|
+
style: EoxDrawTool.featureStyles?.["click"] || {
|
|
65
64
|
"fill-color": "rgba(51, 153, 204,0.5)",
|
|
66
65
|
"stroke-color": "#3399CC",
|
|
67
66
|
"stroke-width": 2.5,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Initializes the selection interactions for the given layer ID to the DrawTool.
|
|
3
3
|
*
|
|
4
4
|
* @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
5
|
-
* @param {import("@eox/map
|
|
5
|
+
* @param {import("@eox/map").EOxMap} EoxMap - The map instance.
|
|
6
6
|
*/
|
|
7
7
|
const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
8
8
|
if (!updatedLayerId || !EoxMap) {
|
|
@@ -12,7 +12,7 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
|
12
12
|
const selectionLayer =
|
|
13
13
|
JSON.parse(
|
|
14
14
|
JSON.stringify(
|
|
15
|
-
/** @type {import("
|
|
15
|
+
/** @type {import("@eox/map").EoxLayer} */ (
|
|
16
16
|
EoxMap.getLayerById(updatedLayerId).get("_jsonDefinition")
|
|
17
17
|
),
|
|
18
18
|
),
|
|
@@ -22,16 +22,15 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
/** @type {import("
|
|
25
|
+
/** @type {import("@eox/map/src/types").EOxInteraction} */
|
|
26
26
|
const hoverInteraction = {
|
|
27
27
|
type: "select",
|
|
28
28
|
active: false,
|
|
29
|
-
//@ts-expect-error TODO
|
|
30
29
|
options: {
|
|
31
30
|
id: "SelectLayerHoverInteraction",
|
|
32
31
|
condition: "pointermove",
|
|
33
32
|
active: false,
|
|
34
|
-
style: {
|
|
33
|
+
style: EoxDrawTool.featureStyles?.["hover"] || {
|
|
35
34
|
"fill-color": "rgba(0, 0, 0,0.0)",
|
|
36
35
|
"stroke-color": "#3399CC",
|
|
37
36
|
"stroke-width": 2.5,
|
|
@@ -39,17 +38,16 @@ const initSelection = (EoxDrawTool, EoxMap, updatedLayerId) => {
|
|
|
39
38
|
},
|
|
40
39
|
};
|
|
41
40
|
|
|
42
|
-
/** @type {import("
|
|
41
|
+
/** @type {import("@eox/map/src/types").EOxInteraction} */
|
|
43
42
|
const clickInteraction = {
|
|
44
43
|
type: "select",
|
|
45
|
-
//@ts-expect-error TODO
|
|
46
44
|
options: {
|
|
47
45
|
id: "SelectLayerClickInteraction",
|
|
48
46
|
condition: "click",
|
|
49
47
|
multi: EoxDrawTool.multipleFeatures,
|
|
50
48
|
modify: EoxDrawTool.allowModify,
|
|
51
49
|
active: false,
|
|
52
|
-
style: {
|
|
50
|
+
style: EoxDrawTool.featureStyles?.["click"] || {
|
|
53
51
|
"fill-color": "rgba(0, 0, 0,0.0)",
|
|
54
52
|
"stroke-color": "rgba(0, 0, 0,0.0)",
|
|
55
53
|
},
|
|
@@ -12,6 +12,20 @@ const onDrawEndMethod = (EoxDrawTool) => {
|
|
|
12
12
|
EoxDrawTool.draw.setActive(false); // Deactivate drawing
|
|
13
13
|
EoxDrawTool.selectionEvents.removeSelectionEvent();
|
|
14
14
|
EoxDrawTool.currentlyDrawing = false; // Update drawing status flag
|
|
15
|
+
} else {
|
|
16
|
+
if (EoxDrawTool.continuous) {
|
|
17
|
+
// the selection event selects the feature after draw ends
|
|
18
|
+
if (!EoxDrawTool.layerId) {
|
|
19
|
+
EoxDrawTool.drawLayer.getSource().clear(true);
|
|
20
|
+
EoxDrawTool.drawnFeatures = [];
|
|
21
|
+
} else {
|
|
22
|
+
const features = EoxDrawTool.drawLayer.getSource().getFeatures();
|
|
23
|
+
const latest = features.at(-1);
|
|
24
|
+
EoxDrawTool.drawLayer.getSource().clear(true);
|
|
25
|
+
EoxDrawTool.drawLayer.getSource().addFeature(latest);
|
|
26
|
+
EoxDrawTool.drawnFeatures = [latest];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
15
29
|
}
|
|
16
30
|
};
|
|
17
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/components/controller.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAeA;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,eAFS,
|
|
1
|
+
{"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../src/components/controller.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAeA;;OAEG;IACH,0BAA6B;IAE7B;;;;;OAKG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;OAGG;IACH,wBAA2B;IAE3B;;;OAGG;IACH,oBAAuB;IAEvB;;OAEG;IACH,0BAA6B;IAE7B;;OAEG;IACH,cAAoB;IAEpB;;;OAGG;IACH,gBAAiB;IAEjB;;OAEG;IACH,kBAAqB;IAErB;;OAEG;IACH,gBAAmB;IAGrB;;OAEG;IACH,2BAKC;IAED;;OAEG;IACH,yBAEC;IAED,+CAoFC;;CACF;2BAjMyC,KAAK"}
|
|
@@ -35,13 +35,13 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
|
-
* @type import("
|
|
38
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
39
39
|
*/
|
|
40
|
-
hoverInteraction:
|
|
40
|
+
hoverInteraction: import("@eox/map").EOxMap["selectInteractions"][string];
|
|
41
41
|
/**
|
|
42
|
-
* @type import("
|
|
42
|
+
* @type {import("@eox/map").EOxMap["selectInteractions"][string]}
|
|
43
43
|
*/
|
|
44
|
-
clickInteraction:
|
|
44
|
+
clickInteraction: import("@eox/map").EOxMap["selectInteractions"][string];
|
|
45
45
|
/**
|
|
46
46
|
* @type string | number
|
|
47
47
|
*/
|
|
@@ -51,9 +51,9 @@ export class EOxDrawToolsList extends LitElement {
|
|
|
51
51
|
*/
|
|
52
52
|
clickId: string | number;
|
|
53
53
|
/**
|
|
54
|
-
* @type import("
|
|
54
|
+
* @type import("@eox/map").EOxMap
|
|
55
55
|
*/
|
|
56
|
-
eoxMap:
|
|
56
|
+
eoxMap: import("@eox/map").EOxMap;
|
|
57
57
|
/**
|
|
58
58
|
* @type import("ol").Map
|
|
59
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/components/list.js"],"names":[],"mappings":"AAUA;;;;GAIG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQE;IAEF;;OAEG;IACH,kBAFU,OAAO,UAAU,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAEhD;IAEjB;;OAEG;IACH,kBAFU,OAAO,UAAU,EAAE,MAAM,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,QAFS,OAAO,UAAU,EAAE,MAAM,CAEhB;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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF
|
|
1
|
+
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/enums/stories.js"],"names":[],"mappings":"AAAA;;;;;IAOE;AAEF;;;;;;;;;;;;;;;;;IAmBE;AAEF,gCAAiC,8BAA8B,CAAC;AAEhE;;;IAKE"}
|
|
@@ -5,7 +5,8 @@ export default featuresToGeoJson;
|
|
|
5
5
|
* @param {import("ol").Feature[]} features
|
|
6
6
|
* @param {(Parameters<GeoJson["writeFeaturesObject"]>)["1"]} [options]
|
|
7
7
|
*/
|
|
8
|
-
declare function featuresToGeoJson(features: import("ol").Feature[], options?:
|
|
8
|
+
declare function featuresToGeoJson(features: import("ol").Feature[], options?: Parameters<GeoJson["writeFeaturesObject"]>["1"]): import("geojson").FeatureCollection<import("geojson").Geometry, {
|
|
9
9
|
[name: string]: any;
|
|
10
10
|
}>;
|
|
11
|
+
import GeoJson from "ol/format/GeoJSON";
|
|
11
12
|
//# sourceMappingURL=features-to-geojson.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features-to-geojson.d.ts","sourceRoot":"","sources":["../../../../src/helpers/features-to-geojson.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,6CAHW,OAAO,IAAI,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"features-to-geojson.d.ts","sourceRoot":"","sources":["../../../../src/helpers/features-to-geojson.js"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,6CAHW,OAAO,IAAI,EAAE,OAAO,EAAE,YACrB,UAAU,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAE,GAAG,CAAC;;GAK3D;oBAXmB,mBAAmB"}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* It configures the map to react visually to drag-and-drop actions and processes dropped files.
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EOxMap - The EOx Map instance.
|
|
7
7
|
*/
|
|
8
|
-
export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawTools, EOxMap:
|
|
8
|
+
export function initMapDragDropImport(EOxDrawTool: import("../main.js").EOxDrawTools, EOxMap: import("@eox/map").EOxMap): void;
|
|
9
9
|
/**
|
|
10
10
|
* Handles file input from drag-and-drop or file selection events,
|
|
11
11
|
* forwarding each file to a specified processing function.
|
|
12
12
|
*
|
|
13
|
-
* @param {DragEvent
|
|
13
|
+
* @param {DragEvent} e - The event object from the file input interaction.
|
|
14
14
|
* @param {import("../main.js").EOxDrawTools} EOxDrawTool - The drawing tool instance.
|
|
15
15
|
*/
|
|
16
|
-
export function handleFiles(e: DragEvent
|
|
16
|
+
export function handleFiles(e: DragEvent, EOxDrawTool: import("../main.js").EOxDrawTools): void;
|
|
17
17
|
//# sourceMappingURL=generate-upload-events.d.ts.map
|
|
@@ -1 +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,
|
|
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,UACjC,OAAO,UAAU,EAAE,MAAM,QA6BnC;AAaD;;;;;;GAMG;AACH,+BAHW,SAAS,eACT,OAAO,YAAY,EAAE,YAAY,QAW3C"}
|
|
@@ -17,6 +17,9 @@ export class EOxDrawTools extends LitElement {
|
|
|
17
17
|
state: boolean;
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
};
|
|
20
|
+
continuous: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
};
|
|
20
23
|
draw: {
|
|
21
24
|
attribute: boolean;
|
|
22
25
|
state: boolean;
|
|
@@ -25,14 +28,17 @@ export class EOxDrawTools extends LitElement {
|
|
|
25
28
|
attribute: boolean;
|
|
26
29
|
state: boolean;
|
|
27
30
|
};
|
|
31
|
+
drawnFeatures: {
|
|
32
|
+
attribute: boolean;
|
|
33
|
+
state: boolean;
|
|
34
|
+
type: ArrayConstructor;
|
|
35
|
+
};
|
|
28
36
|
layerId: {
|
|
29
37
|
attribute: string;
|
|
30
38
|
type: StringConstructor;
|
|
31
39
|
};
|
|
32
|
-
|
|
40
|
+
featureStyles: {
|
|
33
41
|
attribute: boolean;
|
|
34
|
-
state: boolean;
|
|
35
|
-
type: ArrayConstructor;
|
|
36
42
|
};
|
|
37
43
|
modify: {
|
|
38
44
|
attribute: boolean;
|
|
@@ -87,17 +93,16 @@ export class EOxDrawTools extends LitElement {
|
|
|
87
93
|
currentlyDrawing: boolean;
|
|
88
94
|
/**
|
|
89
95
|
* The current native OpenLayers `draw` interaction
|
|
90
|
-
* @type import("ol/interaction").Draw | import("@eox/map
|
|
96
|
+
* @type import("ol/interaction").Draw | import("@eox/map").EOxMap["selectInteractions"][string]
|
|
91
97
|
*/
|
|
92
|
-
draw: import("ol/interaction").Draw |
|
|
98
|
+
draw: import("ol/interaction").Draw | import("@eox/map").EOxMap["selectInteractions"][string];
|
|
93
99
|
/**
|
|
94
100
|
* The current native OpenLayers draw `layer` (initialized with a `zIndex` of 100)
|
|
95
101
|
* @type import("ol/layer/Vector").default
|
|
96
102
|
*/
|
|
97
103
|
drawLayer: import("ol/layer/Vector").default;
|
|
98
104
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
105
|
+
* Enables selection mode for the passed layer
|
|
101
106
|
* @type {string}
|
|
102
107
|
*/
|
|
103
108
|
set layerId(value: string);
|
|
@@ -107,6 +112,19 @@ export class EOxDrawTools extends LitElement {
|
|
|
107
112
|
* @type Array<import("ol").Feature>
|
|
108
113
|
*/
|
|
109
114
|
drawnFeatures: Array<import("ol").Feature>;
|
|
115
|
+
/**
|
|
116
|
+
* Flat styles for the drawn/selected features
|
|
117
|
+
* @type {{
|
|
118
|
+
* layer?: import("ol/style/flat").FlatStyleLike
|
|
119
|
+
* hover?: import("ol/style/flat").FlatStyleLike
|
|
120
|
+
* click?: import("ol/style/flat").FlatStyleLike
|
|
121
|
+
* } | null}
|
|
122
|
+
*/
|
|
123
|
+
featureStyles: {
|
|
124
|
+
layer?: import("ol/style/flat").FlatStyleLike;
|
|
125
|
+
hover?: import("ol/style/flat").FlatStyleLike;
|
|
126
|
+
click?: import("ol/style/flat").FlatStyleLike;
|
|
127
|
+
} | null;
|
|
110
128
|
/**
|
|
111
129
|
* The current native OpenLayers `modify` interaction
|
|
112
130
|
* @type import("ol/interaction").Modify
|
|
@@ -158,6 +176,13 @@ export class EOxDrawTools extends LitElement {
|
|
|
158
176
|
* @type {Boolean}
|
|
159
177
|
*/
|
|
160
178
|
noShadow: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* Enables the user to draw continuously one feature after another
|
|
181
|
+
* without having to discard previous ones manually
|
|
182
|
+
* @type {boolean}
|
|
183
|
+
*/
|
|
184
|
+
set continuous(value: boolean);
|
|
185
|
+
get continuous(): boolean;
|
|
161
186
|
/**
|
|
162
187
|
* @onClick Event handler triggered to start drawing on the map.
|
|
163
188
|
*/
|
|
@@ -173,9 +198,9 @@ export class EOxDrawTools extends LitElement {
|
|
|
173
198
|
*/
|
|
174
199
|
handleFeatureChange(text: string, replaceFeatures?: boolean): void;
|
|
175
200
|
/**
|
|
176
|
-
* @param {DragEvent
|
|
201
|
+
* @param {DragEvent} evt - The event object from the file input interaction.
|
|
177
202
|
*/
|
|
178
|
-
handleFilesChange(evt: DragEvent
|
|
203
|
+
handleFilesChange(evt: DragEvent): void;
|
|
179
204
|
/**
|
|
180
205
|
* @event onModifyEnd triggered when the modification of a shape is completed.
|
|
181
206
|
*/
|
|
@@ -194,8 +219,8 @@ export class EOxDrawTools extends LitElement {
|
|
|
194
219
|
* It then calls requestUpdate to trigger a re-render.
|
|
195
220
|
*/
|
|
196
221
|
firstUpdated(): void;
|
|
197
|
-
set eoxMap(value: import("
|
|
198
|
-
get eoxMap(): import("
|
|
222
|
+
set eoxMap(value: import("@eox/map").EOxMap);
|
|
223
|
+
get eoxMap(): import("@eox/map").EOxMap;
|
|
199
224
|
updated(changedProperties: any): void;
|
|
200
225
|
render(): import("lit-html").TemplateResult<1>;
|
|
201
226
|
#private;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAmBA;;;;GAIG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBC;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;IAmGvB;;;OAGG;IACH,2BAGC;IAED,sBAEC;IAvGC;;;OAGG;IACH,eAFS,KAAK,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,CAEb;IAEvB;;;;;;;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;;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,iBAFU,UAAU,CAAC,cAAc,sCAAsC,EAAE,OAAO,CAAC,CAExD;IAE3B;;;;;OAKG;IACH,QAFU,SAAS,GAAE,SAAS,GAAG,KAAK,CAEf;IAEvB;;OAEG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAGvB;;;;OAIG;IACH,+BAGC;IAED,0BAEC;IAeD;;OAEG;IACH,qBAEC;IAED;;;OAGG;IACH,uBAEC;IAED;;;OAGG;IACH,0BAHW,MAAM,oBACN,OAAO,QASjB;IAED;;OAEG;IACH,uBAFW,SAAS,QAInB;IAED;;OAEG;IACH,oBAEC;IAED;;OAEG;IACH,sBAMC;IAED;;OAEG;IACH,0BAaC;IASD;;;;OAIG;IACH,qBAUC;IAcD,6CAIC;IARD,wCAEC;IAVD,sCAMC;IAiBD,+CA4CC;;CACF;2BA7XyC,KAAK"}
|
|
@@ -1 +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,
|
|
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,GAAG,iCAAqB,CAAC;IAAC,eAAe,EAAE,OAAO,GAAG,iCAAqB,CAAA;CAAE,CAgB/G"}
|
|
@@ -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,
|
|
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"}
|
|
@@ -3,10 +3,10 @@ export default handleLayerId;
|
|
|
3
3
|
* handles switching between selection and drawing and updates of the selection layer
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EoxMap
|
|
7
7
|
* @param {string} oldLayerId
|
|
8
8
|
* @param {string} updatedLayerId
|
|
9
9
|
* @returns
|
|
10
10
|
*/
|
|
11
|
-
declare function handleLayerId(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap:
|
|
11
|
+
declare function handleLayerId(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: import("@eox/map").EOxMap, updatedLayerId: string, oldLayerId: string): void;
|
|
12
12
|
//# sourceMappingURL=handle-layer-id.d.ts.map
|
|
@@ -1 +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
|
|
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,UACjC,OAAO,UAAU,EAAE,MAAM,kBAEzB,MAAM,cADN,MAAM,QAuBhB"}
|
|
@@ -4,10 +4,10 @@ export default initLayerMethod;
|
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../../main").EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
6
|
* @param {Boolean} multipleFeatures - Allow adding more than one feature at a time
|
|
7
|
-
* @returns {{EoxMap: import("@eox/map
|
|
7
|
+
* @returns {{EoxMap: import("@eox/map").EOxMap, OlMap: import("ol").Map}} - The map instances.
|
|
8
8
|
*/
|
|
9
9
|
declare function initLayerMethod(EoxDrawTool: import("../../main").EOxDrawTools, multipleFeatures: boolean): {
|
|
10
|
-
EoxMap:
|
|
10
|
+
EoxMap: import("@eox/map").EOxMap;
|
|
11
11
|
OlMap: import("ol").Map;
|
|
12
12
|
};
|
|
13
13
|
//# sourceMappingURL=init-layer.d.ts.map
|
|
@@ -1 +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,
|
|
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,EAAE,OAAO,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,IAAI,EAAE,GAAG,CAAA;CAAC,CA+ExE"}
|
|
@@ -3,7 +3,7 @@ export default initSelection;
|
|
|
3
3
|
* Initializes the selection interactions for the given layer ID to the DrawTool.
|
|
4
4
|
*
|
|
5
5
|
* @param {import('../../main').EOxDrawTools} EoxDrawTool - The drawing tool instance.
|
|
6
|
-
* @param {import("@eox/map
|
|
6
|
+
* @param {import("@eox/map").EOxMap} EoxMap - The map instance.
|
|
7
7
|
*/
|
|
8
|
-
declare function initSelection(EoxDrawTool: import(
|
|
8
|
+
declare function initSelection(EoxDrawTool: import("../../main").EOxDrawTools, EoxMap: import("@eox/map").EOxMap, updatedLayerId: any): void;
|
|
9
9
|
//# sourceMappingURL=init-selection.d.ts.map
|
|
@@ -1 +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,
|
|
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,UACjC,OAAO,UAAU,EAAE,MAAM,6BA8DnC"}
|
|
@@ -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,
|
|
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,QA8B3C"}
|