@abi-software/map-utilities 1.2.0-beta.4 → 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/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>
|
|
@@ -98,9 +98,11 @@ export default {
|
|
|
98
98
|
},
|
|
99
99
|
watch: {
|
|
100
100
|
"createData.shape": {
|
|
101
|
-
handler: function (
|
|
102
|
-
this.group =
|
|
103
|
-
|
|
101
|
+
handler: function (newValue, oldValue) {
|
|
102
|
+
this.group = newValue;
|
|
103
|
+
if (oldValue !== undefined) {
|
|
104
|
+
this.$emit("cancel-create");
|
|
105
|
+
}
|
|
104
106
|
},
|
|
105
107
|
immediate: true,
|
|
106
108
|
},
|