@abi-software/map-utilities 1.2.2-beta.7 → 1.2.2-beta.8
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,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="connectivity-graph" v-loading="loading">
|
|
2
|
+
<div class="connectivity-graph" v-loading="loading" ref="connectivityGraphRef">
|
|
3
3
|
|
|
4
4
|
<div ref="graphCanvas" class="graph-canvas"></div>
|
|
5
5
|
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
:content="resetLabel"
|
|
10
10
|
placement="top"
|
|
11
11
|
effect="control-tooltip"
|
|
12
|
+
:teleported="true"
|
|
13
|
+
:append-to="connectivityGraphContainer"
|
|
12
14
|
>
|
|
13
15
|
<el-button
|
|
14
16
|
class="control-button"
|
|
@@ -26,6 +28,8 @@
|
|
|
26
28
|
:content="zoomLockLabel"
|
|
27
29
|
placement="top"
|
|
28
30
|
effect="control-tooltip"
|
|
31
|
+
:teleported="true"
|
|
32
|
+
:append-to="connectivityGraphContainer"
|
|
29
33
|
>
|
|
30
34
|
<el-button
|
|
31
35
|
class="control-button"
|
|
@@ -48,6 +52,8 @@
|
|
|
48
52
|
:content="zoomInLabel"
|
|
49
53
|
placement="left"
|
|
50
54
|
effect="control-tooltip"
|
|
55
|
+
:teleported="true"
|
|
56
|
+
:append-to="connectivityGraphContainer"
|
|
51
57
|
>
|
|
52
58
|
<el-button
|
|
53
59
|
class="control-button"
|
|
@@ -65,6 +71,8 @@
|
|
|
65
71
|
:content="zoomOutLabel"
|
|
66
72
|
placement="left"
|
|
67
73
|
effect="control-tooltip"
|
|
74
|
+
:teleported="true"
|
|
75
|
+
:append-to="connectivityGraphContainer"
|
|
68
76
|
>
|
|
69
77
|
<el-button
|
|
70
78
|
class="control-button"
|
|
@@ -164,9 +172,11 @@ export default {
|
|
|
164
172
|
zoomEnabled: false,
|
|
165
173
|
connectivityError: null,
|
|
166
174
|
timeoutID: undefined,
|
|
175
|
+
connectivityGraphContainer: null,
|
|
167
176
|
};
|
|
168
177
|
},
|
|
169
178
|
mounted() {
|
|
179
|
+
this.updateTooltipContainer();
|
|
170
180
|
this.refreshCache();
|
|
171
181
|
this.loadCacheData();
|
|
172
182
|
this.run().then((res) => {
|
|
@@ -174,6 +184,9 @@ export default {
|
|
|
174
184
|
});
|
|
175
185
|
},
|
|
176
186
|
methods: {
|
|
187
|
+
updateTooltipContainer: function () {
|
|
188
|
+
this.connectivityGraphContainer = this.$refs.connectivityGraphRef;
|
|
189
|
+
},
|
|
177
190
|
loadCacheData: function () {
|
|
178
191
|
const selectedSource = sessionStorage.getItem('connectivity-graph-source');
|
|
179
192
|
const labelCache = sessionStorage.getItem('connectivity-graph-labels');
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
:hide-after="autoHideTimeout"
|
|
6
6
|
effect="clipboard-tooltip"
|
|
7
7
|
@hide="resetSettings"
|
|
8
|
+
:teleported="true"
|
|
9
|
+
:append-to="tooltipContainer"
|
|
8
10
|
>
|
|
9
11
|
<el-button
|
|
10
12
|
class="copy-clipboard-button"
|
|
@@ -51,8 +53,18 @@ export default {
|
|
|
51
53
|
textLabel: this.label,
|
|
52
54
|
autoHideTimeout: 0,
|
|
53
55
|
iconColor: APP_PRIMARY_COLOR,
|
|
56
|
+
tooltipContainer: null,
|
|
54
57
|
};
|
|
55
58
|
},
|
|
59
|
+
mounted() {
|
|
60
|
+
const fullscreenContainer = document.querySelector('.mapcontent');
|
|
61
|
+
|
|
62
|
+
if (fullscreenContainer) {
|
|
63
|
+
this.tooltipContainer = fullscreenContainer;
|
|
64
|
+
} else {
|
|
65
|
+
this.tooltipContainer = document.body;
|
|
66
|
+
}
|
|
67
|
+
},
|
|
56
68
|
methods: {
|
|
57
69
|
copyToClipboard: async function () {
|
|
58
70
|
let copiedSuccessfully = true;
|