@abi-software/map-utilities 0.0.0-beta.6 → 1.0.0-beta.1
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/LICENSE +201 -201
- package/README.md +27 -27
- package/dist/map-utilities.js +10982 -5002
- package/dist/map-utilities.umd.cjs +54 -40
- package/dist/style.css +1 -1
- package/jsconfig.json +8 -8
- package/package.json +45 -40
- package/src/App.vue +630 -511
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +5 -5
- package/src/components/DrawToolbar/ConnectionDialog.vue +118 -118
- package/src/components/DrawToolbar/DrawToolbar.vue +627 -627
- package/src/components/EventBus.js +3 -3
- package/src/components/HelpModeDialog/HelpModeDialog.vue +394 -394
- package/src/components/Tooltip/AnnotationPopup.vue +467 -467
- package/src/components/Tooltip/ExternalResourceCard.vue +108 -108
- package/src/components/Tooltip/ImageGalleryPopup.vue +166 -0
- package/src/components/Tooltip/ProvenancePopup.vue +519 -518
- package/src/components/Tooltip/Tooltip.vue +62 -53
- package/src/components/TreeControls/TreeControls.vue +418 -350
- package/src/components/index.js +6 -6
- package/src/components.d.ts +2 -0
- package/src/main.js +16 -16
- package/vite.config.js +56 -56
|
@@ -1,53 +1,62 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tooltip-container" id="tooltip-container">
|
|
3
|
-
<template v-if="
|
|
4
|
-
<annotation-popup
|
|
5
|
-
:annotationEntry="annotationEntry"
|
|
6
|
-
@annotation="$emit('annotation', $event)"
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
<template v-
|
|
10
|
-
<provenance-popup :
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type:
|
|
26
|
-
default:
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
type: Object,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tooltip-container" id="tooltip-container">
|
|
3
|
+
<template v-if="tooltipType === 'annotation'">
|
|
4
|
+
<annotation-popup
|
|
5
|
+
:annotationEntry="annotationEntry"
|
|
6
|
+
@annotation="$emit('annotation', $event)"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
<template v-if="tooltipType === 'provenance'">
|
|
10
|
+
<provenance-popup :provenanceEntry="provenanceEntry" />
|
|
11
|
+
</template>
|
|
12
|
+
<template v-if="tooltipType === 'image'">
|
|
13
|
+
<image-gallery-popup :imageEntry="imageEntry" />
|
|
14
|
+
</template>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script>
|
|
19
|
+
import EventBus from "../EventBus.js";
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: "Tooltip",
|
|
23
|
+
props: {
|
|
24
|
+
tooltipType: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "",
|
|
27
|
+
},
|
|
28
|
+
provenanceEntry: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: {},
|
|
31
|
+
},
|
|
32
|
+
annotationEntry: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: {},
|
|
35
|
+
},
|
|
36
|
+
imageEntry: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: [],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
mounted: function () {
|
|
42
|
+
// Emit events from child components
|
|
43
|
+
EventBus.on("onActionClick", (data) => {
|
|
44
|
+
this.$emit("onActionClick", data);
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
</script>
|
|
49
|
+
|
|
50
|
+
<style lang="scss" scoped>
|
|
51
|
+
.tooltip-container {
|
|
52
|
+
text-align: justify;
|
|
53
|
+
border-radius: 4px;
|
|
54
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
55
|
+
pointer-events: auto;
|
|
56
|
+
background: #fff;
|
|
57
|
+
border: 1px solid $app-primary-color;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: center;
|
|
61
|
+
}
|
|
62
|
+
</style>
|