@abi-software/map-utilities 1.2.0-beta.3 → 1.2.0-beta.6
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/map-utilities.js +333 -337
- package/dist/map-utilities.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +39 -0
- package/src/components/Tooltip/CreateTooltipContent.vue +7 -7
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -244,12 +244,42 @@ function changeActive(value) {
|
|
|
244
244
|
function changeHover(value) {
|
|
245
245
|
console.log("🚀 ~ changeHover ~ value:", value);
|
|
246
246
|
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* CreatTooltipContent
|
|
250
|
+
*/
|
|
251
|
+
const createData = ref({
|
|
252
|
+
drawingBox: false,
|
|
253
|
+
toBeConfirmed: true,
|
|
254
|
+
points: [[1.0, 1.0, 1.0]],
|
|
255
|
+
shape: "Lines",
|
|
256
|
+
x: 0,
|
|
257
|
+
y: 0,
|
|
258
|
+
editingIndex: -1,
|
|
259
|
+
faceIndex: -1,
|
|
260
|
+
toBeDeleted: false,
|
|
261
|
+
})
|
|
262
|
+
function cancelCreate() {
|
|
263
|
+
console.log("🚀 ~ CreateTooltipContent : cancelCreate");
|
|
264
|
+
}
|
|
265
|
+
function confirmCreate(value) {
|
|
266
|
+
console.log("🚀 ~ CreateTooltipContent : confirmCreate", value);
|
|
267
|
+
}
|
|
247
268
|
</script>
|
|
248
269
|
|
|
249
270
|
<template>
|
|
250
271
|
<div ref="appRef">
|
|
251
272
|
<div class="maplibregl-canvas"></div>
|
|
252
273
|
<el-row>
|
|
274
|
+
<el-col>
|
|
275
|
+
<div class="annotation-popup">
|
|
276
|
+
<CreateTooltipContent
|
|
277
|
+
:createData="createData"
|
|
278
|
+
@cancel-create="cancelCreate"
|
|
279
|
+
@confirm-create="confirmCreate"
|
|
280
|
+
/>
|
|
281
|
+
</div>
|
|
282
|
+
</el-col>
|
|
253
283
|
<el-col>
|
|
254
284
|
<h3>DrawToolbar</h3>
|
|
255
285
|
</el-col>
|
|
@@ -491,6 +521,7 @@ function changeHover(value) {
|
|
|
491
521
|
@setColour="setColour"
|
|
492
522
|
@checkChanged="checkChanged"
|
|
493
523
|
/>
|
|
524
|
+
|
|
494
525
|
</div>
|
|
495
526
|
</template>
|
|
496
527
|
|
|
@@ -508,4 +539,12 @@ function changeHover(value) {
|
|
|
508
539
|
top: calc(50% - 100px);
|
|
509
540
|
left: calc(50% - 200px);
|
|
510
541
|
}
|
|
542
|
+
.annotation-popup{
|
|
543
|
+
margin-top: 8px;
|
|
544
|
+
width:400px;
|
|
545
|
+
border-style: solid;
|
|
546
|
+
border-width: 1px;
|
|
547
|
+
border-color: black;
|
|
548
|
+
|
|
549
|
+
}
|
|
511
550
|
</style>
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
</el-header>
|
|
6
6
|
<el-main class="slides-block">
|
|
7
7
|
<span class="create-text">
|
|
8
|
-
Primitives will be created in the
|
|
9
|
-
<br>
|
|
10
|
-
__annotation region
|
|
8
|
+
Primitives will be created in the __annotation region
|
|
11
9
|
</span>
|
|
12
10
|
<el-row class="row" v-show="showPoint">
|
|
13
11
|
<el-col :offset="0" :span="8">
|
|
@@ -100,9 +98,11 @@ export default {
|
|
|
100
98
|
},
|
|
101
99
|
watch: {
|
|
102
100
|
"createData.shape": {
|
|
103
|
-
handler: function (
|
|
104
|
-
this.group =
|
|
105
|
-
|
|
101
|
+
handler: function (newValue, oldValue) {
|
|
102
|
+
this.group = newValue;
|
|
103
|
+
if (oldValue !== undefined) {
|
|
104
|
+
this.$emit("cancel-create");
|
|
105
|
+
}
|
|
106
106
|
},
|
|
107
107
|
immediate: true,
|
|
108
108
|
},
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
165
165
|
|
|
166
166
|
|
|
167
167
|
.create-container {
|
|
168
|
-
width:
|
|
168
|
+
width: 100%;
|
|
169
169
|
height: auto;
|
|
170
170
|
border-radius: 4px;
|
|
171
171
|
border: solid 1px #d8dce6;
|