@abi-software/map-utilities 0.0.0-beta.6 → 0.0.0-beta.7
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 +10817 -4666
- 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 +511 -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/ImageDialog/IframeImageDialog.vue +70 -0
- package/src/components/Tooltip/AnnotationPopup.vue +467 -467
- package/src/components/Tooltip/ExternalResourceCard.vue +108 -108
- package/src/components/Tooltip/ImageGalleryPopup.vue +343 -0
- package/src/components/Tooltip/ProvenancePopup.vue +601 -518
- package/src/components/Tooltip/Tooltip.vue +75 -53
- package/src/components/TreeControls/TreeControls.vue +418 -350
- package/src/components/index.js +7 -6
- package/src/components.d.ts +3 -0
- package/src/main.js +16 -16
- package/src/mixins/flatmapImageMixin.js +42 -0
- package/vite.config.js +56 -56
|
@@ -1,53 +1,75 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tooltip-container" id="tooltip-container">
|
|
3
|
-
<template v-if="annotationDisplay">
|
|
4
|
-
<annotation-popup
|
|
5
|
-
:annotationEntry="annotationEntry"
|
|
6
|
-
@annotation="$emit('annotation', $event)"
|
|
7
|
-
/>
|
|
8
|
-
</template>
|
|
9
|
-
<template v-
|
|
10
|
-
<provenance-popup
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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' && annotationDisplay">
|
|
4
|
+
<annotation-popup
|
|
5
|
+
:annotationEntry="annotationEntry"
|
|
6
|
+
@annotation="$emit('annotation', $event)"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
<template v-if="tooltipType === 'provenance'">
|
|
10
|
+
<provenance-popup
|
|
11
|
+
:tooltipEntry="tooltipEntry"
|
|
12
|
+
@view-image="viewImage"
|
|
13
|
+
/>
|
|
14
|
+
</template>
|
|
15
|
+
<template v-if="tooltipType === 'image-gallery'">
|
|
16
|
+
<image-gallery-popup
|
|
17
|
+
:galleryItems="galleryItems"
|
|
18
|
+
@viewImage="viewImage"
|
|
19
|
+
/>
|
|
20
|
+
</template>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import EventBus from '../EventBus.js';
|
|
26
|
+
|
|
27
|
+
export default {
|
|
28
|
+
name: "Tooltip",
|
|
29
|
+
props: {
|
|
30
|
+
tooltipEntry: {
|
|
31
|
+
type: Object,
|
|
32
|
+
},
|
|
33
|
+
tooltipType: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: 'provenance',
|
|
36
|
+
},
|
|
37
|
+
annotationDisplay: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false,
|
|
40
|
+
},
|
|
41
|
+
annotationEntry: {
|
|
42
|
+
type: Object,
|
|
43
|
+
},
|
|
44
|
+
galleryItems: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default: () => [],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
mounted: function() {
|
|
50
|
+
// Emit events from child components
|
|
51
|
+
EventBus.on("onActionClick", (data) => {
|
|
52
|
+
this.$emit("onActionClick", data);
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
methods: {
|
|
56
|
+
viewImage: function (url) {
|
|
57
|
+
this.$emit('view-image', url)
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style lang="scss" scoped>
|
|
64
|
+
.tooltip-container {
|
|
65
|
+
text-align: justify;
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
68
|
+
pointer-events: auto;
|
|
69
|
+
background: #fff;
|
|
70
|
+
border: 1px solid $app-primary-color;
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
align-items: center;
|
|
74
|
+
}
|
|
75
|
+
</style>
|