@abi-software/flatmapvuer 0.5.9 → 0.6.0-vue3-0
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/babel.config.js +0 -14
- package/dist/favicon.ico +0 -0
- package/dist/flatmapvuer.js +69542 -0
- package/dist/flatmapvuer.umd.cjs +1021 -0
- package/dist/index.html +17 -0
- package/dist/style.css +1 -0
- package/package.json +29 -21
- package/src/App.vue +180 -105
- package/src/assets/styles.scss +2 -3
- package/src/components/AnnotationTool.vue +193 -153
- package/src/components/EventBus.js +3 -3
- package/src/components/ExternalResourceCard.vue +39 -30
- package/src/components/FlatmapVuer.vue +734 -676
- package/src/components/MultiFlatmapVuer.vue +313 -246
- package/src/components/ProvenancePopup.vue +195 -121
- package/src/components/SelectionsGroup.vue +93 -84
- package/src/components/Tooltip.vue +11 -13
- package/src/components/TreeControls.vue +67 -64
- package/src/components/index.js +4 -7
- package/src/components/legends/DynamicLegends.vue +13 -19
- package/src/components/legends/SvgLegends.vue +72 -27
- package/src/components.d.ts +46 -0
- package/src/icons/flatmap-marker.js +1 -1
- package/src/icons/fonts/mapicon-species.eot +0 -0
- package/src/icons/fonts/mapicon-species.svg +0 -0
- package/src/icons/yellowstar.js +2 -2
- package/src/legends/legend.svg +0 -0
- package/src/main.js +2 -6
- package/src/services/flatmapQueries.js +175 -139
- package/vite.config.js +76 -0
- package/vue.config.js +14 -0
- package/CHANGELOG.md +0 -402
- package/dist/demo.html +0 -10
- package/dist/flatmapvuer.common.js +0 -22741
- package/dist/flatmapvuer.common.js.map +0 -1
- package/dist/flatmapvuer.css +0 -1
- package/dist/flatmapvuer.umd.js +0 -22751
- package/dist/flatmapvuer.umd.js.map +0 -1
- package/dist/flatmapvuer.umd.min.js +0 -4
- package/dist/flatmapvuer.umd.min.js.map +0 -1
- package/package-lock.json +0 -18473
|
@@ -1,21 +1,66 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="legends-container">
|
|
3
|
-
<svg
|
|
3
|
+
<svg
|
|
4
|
+
version="1.1"
|
|
5
|
+
id="Layer_1"
|
|
6
|
+
x="0px"
|
|
7
|
+
y="0px"
|
|
8
|
+
viewBox="0 0 500 500"
|
|
9
|
+
style="enable-background: new 0 0 500 500"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
xmlns:bx="https://boxy-svg.com"
|
|
12
|
+
>
|
|
4
13
|
<defs>
|
|
5
|
-
<bx:grid height="30.447" width="32.516" x="0" y="0"/>
|
|
14
|
+
<bx:grid height="30.447" width="32.516" x="0" y="0" />
|
|
6
15
|
</defs>
|
|
7
|
-
<path
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<path
|
|
12
|
-
|
|
16
|
+
<path
|
|
17
|
+
class="st0 st0-translate"
|
|
18
|
+
d="M61.3,103.8c-15.9,0-28.8-12.3-28.8-27.3c0-15,13-27.3,28.8-27.3s28.8,12.3,28.8,27.3 C90.1,91.5,77.2,103.8,61.3,103.8z"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
class="st1"
|
|
22
|
+
d="M40.3,356.1C29.5,345,29.8,328,41.5,317.5c11.7-10.5,29.6-9.9,40.7,1.1c11.1,11,10.5,28.1-1.2,38.5 C69.3,367.4,51.1,366.9,40.3,356.1z"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
class="st2"
|
|
26
|
+
d="M61.2,396.9c-5.3,9.3-15.3,15.1-26.1,15.1l-0.4,0.6c5.1,9,5.1,20,0,29l0.4,0.6c10.7,0,20.8,5.8,26.1,15.1 c5.3-9.3,15.3-15.1,26.1-15.1c-5.3-9.3-5.3-20.9,0-30.4C76.6,412.1,66.7,406.3,61.2,396.9z"
|
|
27
|
+
/>
|
|
28
|
+
<text
|
|
29
|
+
transform="matrix(0.9908 0 0 1 118.0161 171.7975)"
|
|
30
|
+
class="st3 st4 st5"
|
|
31
|
+
style="white-space: pre"
|
|
32
|
+
>
|
|
33
|
+
Tissue region
|
|
34
|
+
</text>
|
|
35
|
+
<path
|
|
36
|
+
class="st6"
|
|
37
|
+
d="M40.9,231.1c11.3-10.6,29.5-10.6,40.8,0c11.3,10.6,11.3,27.9,0,38.5c-11.3,10.6-29.5,10.6-40.8,0 C29.7,259,29.7,241.7,40.9,231.1z"
|
|
38
|
+
/>
|
|
39
|
+
<text
|
|
40
|
+
transform="matrix(0.9908 0 0 1 118.0161 257.675)"
|
|
41
|
+
class="st3 st4 st5"
|
|
42
|
+
style="white-space: pre"
|
|
43
|
+
>
|
|
44
|
+
Brain nuclei
|
|
45
|
+
</text>
|
|
13
46
|
<!-- Hide this unti we can clarify the label
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<text
|
|
18
|
-
|
|
47
|
+
<path class="st7" d="M34.3,174c-6.2-13.9,0.6-29.9,15.3-35.7c14.7-5.9,31.6,0.6,37.8,14.4c1.5,3.5,2.3,7,2.3,10.6 c0,10.6-6.6,20.8-17.6,25.2C57.5,194.3,40.5,187.9,34.3,174z"/>
|
|
48
|
+
<text transform="matrix(0.9908 0 0 1 117.5474 171.7975)" class="st3 st4 st5" style="white-space: pre;">Specific anatomical structure</text>
|
|
49
|
+
-->
|
|
50
|
+
<text
|
|
51
|
+
transform="matrix(0.9908 0 0 1 118.0903 345.5266)"
|
|
52
|
+
class="st3 st4 st5"
|
|
53
|
+
style="white-space: pre"
|
|
54
|
+
>
|
|
55
|
+
Ganglia
|
|
56
|
+
</text>
|
|
57
|
+
<text
|
|
58
|
+
transform="matrix(0.9908 0 0 1 118.0903 433.1613)"
|
|
59
|
+
class="st3 st4 st5"
|
|
60
|
+
style="white-space: pre"
|
|
61
|
+
>
|
|
62
|
+
Ganglionated nerve plexus
|
|
63
|
+
</text>
|
|
19
64
|
</svg>
|
|
20
65
|
<svg width="72px" height="72px" viewBox="0 0 24 24" fill="yellow"></svg>
|
|
21
66
|
</div>
|
|
@@ -23,11 +68,11 @@
|
|
|
23
68
|
|
|
24
69
|
<script>
|
|
25
70
|
export default {
|
|
26
|
-
|
|
71
|
+
name: 'SvgLegends',
|
|
27
72
|
}
|
|
28
73
|
</script>
|
|
29
74
|
|
|
30
|
-
<style
|
|
75
|
+
<style lang="scss" scoped>
|
|
31
76
|
.legends-container {
|
|
32
77
|
pointer-events: none;
|
|
33
78
|
transform: translate(0px, -35px);
|
|
@@ -37,31 +82,31 @@ export default {
|
|
|
37
82
|
transform: translate(0px, 88px);
|
|
38
83
|
}
|
|
39
84
|
.st0 {
|
|
40
|
-
fill
|
|
85
|
+
fill: #ff33cc;
|
|
41
86
|
}
|
|
42
87
|
.st1 {
|
|
43
|
-
fill
|
|
88
|
+
fill: #b2f074;
|
|
44
89
|
}
|
|
45
90
|
.st2 {
|
|
46
|
-
opacity:0.64;
|
|
47
|
-
fill
|
|
48
|
-
enable-background:new;
|
|
91
|
+
opacity: 0.64;
|
|
92
|
+
fill: #e4e417;
|
|
93
|
+
enable-background: new;
|
|
49
94
|
}
|
|
50
95
|
.st3 {
|
|
51
|
-
fill
|
|
96
|
+
fill: #333333;
|
|
52
97
|
}
|
|
53
98
|
.st4 {
|
|
54
|
-
font-family:Asap, sans-serif;
|
|
99
|
+
font-family: Asap, sans-serif;
|
|
55
100
|
}
|
|
56
101
|
.st5 {
|
|
57
|
-
font-size:32px;
|
|
102
|
+
font-size: 32px;
|
|
58
103
|
}
|
|
59
104
|
.st6 {
|
|
60
|
-
fill
|
|
105
|
+
fill: #f15a24;
|
|
61
106
|
}
|
|
62
107
|
.st7 {
|
|
63
|
-
fill
|
|
64
|
-
stroke
|
|
65
|
-
stroke-width:3;
|
|
108
|
+
fill: #66ffff;
|
|
109
|
+
stroke: #000000;
|
|
110
|
+
stroke-width: 3;
|
|
66
111
|
}
|
|
67
112
|
</style>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// Generated by unplugin-vue-components
|
|
5
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
declare module 'vue' {
|
|
9
|
+
export interface GlobalComponents {
|
|
10
|
+
AnnotationTool: typeof import('./components/AnnotationTool.vue')['default']
|
|
11
|
+
DynamicLegends: typeof import('./components/legends/DynamicLegends.vue')['default']
|
|
12
|
+
ElButton: typeof import('element-plus/es')['ElButton']
|
|
13
|
+
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
|
14
|
+
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
|
|
15
|
+
ElCol: typeof import('element-plus/es')['ElCol']
|
|
16
|
+
ElIcon: typeof import('element-plus/es')['ElIcon']
|
|
17
|
+
ElIconArrowDown: typeof import('@element-plus/icons-vue')['ArrowDown']
|
|
18
|
+
ElIconArrowLeft: typeof import('@element-plus/icons-vue')['ArrowLeft']
|
|
19
|
+
ElIconArrowUp: typeof import('@element-plus/icons-vue')['ArrowUp']
|
|
20
|
+
ElIconClose: typeof import('@element-plus/icons-vue')['Close']
|
|
21
|
+
ElIconEdit: typeof import('@element-plus/icons-vue')['Edit']
|
|
22
|
+
ElIconWarning: typeof import('@element-plus/icons-vue')['Warning']
|
|
23
|
+
ElIconWarningFilled: typeof import('@element-plus/icons-vue')['WarningFilled']
|
|
24
|
+
ElInput: typeof import('element-plus/es')['ElInput']
|
|
25
|
+
ElMain: typeof import('element-plus/es')['ElMain']
|
|
26
|
+
ElOption: typeof import('element-plus/es')['ElOption']
|
|
27
|
+
ElPopover: typeof import('element-plus/es')['ElPopover']
|
|
28
|
+
ElRadio: typeof import('element-plus/es')['ElRadio']
|
|
29
|
+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
|
30
|
+
ElRow: typeof import('element-plus/es')['ElRow']
|
|
31
|
+
ElSelect: typeof import('element-plus/es')['ElSelect']
|
|
32
|
+
ElTree: typeof import('element-plus/es')['ElTree']
|
|
33
|
+
ExternalResourceCard: typeof import('./components/ExternalResourceCard.vue')['default']
|
|
34
|
+
FlatmapVuer: typeof import('./components/FlatmapVuer.vue')['default']
|
|
35
|
+
MultiFlatmapVuer: typeof import('./components/MultiFlatmapVuer.vue')['default']
|
|
36
|
+
ProvenancePopup: typeof import('./components/ProvenancePopup.vue')['default']
|
|
37
|
+
SelectionsGroup: typeof import('./components/SelectionsGroup.vue')['default']
|
|
38
|
+
SvgLegends: typeof import('./components/legends/SvgLegends.vue')['default']
|
|
39
|
+
Tooltip: typeof import('./components/Tooltip.vue')['default']
|
|
40
|
+
TreeControls: typeof import('./components/TreeControls.vue')['default']
|
|
41
|
+
}
|
|
42
|
+
export interface ComponentCustomProperties {
|
|
43
|
+
vLoading: typeof import('element-plus/es')['ElLoadingDirective']
|
|
44
|
+
vPopover: typeof import('element-plus/es')['ElPopoverDirective']
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '<div class="flatmap-marker"><svg display="block" height="41px" width="27px" viewBox="0 0 27 41"><g fill-rule="nonzero"><g transform="translate(3.0, 29.0)" fill="#000000"><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="10.5" ry="5.25002273"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="10.5" ry="5.25002273"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="9.5" ry="4.77275007"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="8.5" ry="4.29549936"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="7.5" ry="3.81822308"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="6.5" ry="3.34094679"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="5.5" ry="2.86367051"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="4.5" ry="2.38636864"></ellipse></g><g fill="#005974"><path d="M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"></path></g><g opacity="0.25" fill="#000000"><path d="M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"></path></g><g transform="translate(6.0, 7.0)" fill="#FFFFFF"></g><g transform="translate(8.0, 8.0)"><circle fill="#000000" opacity="0.25" cx="5.5" cy="5.5" r="5.4999962"></circle><circle fill="#FFFFFF" cx="5.5" cy="5.5" r="5.4999962"></circle></g></g></svg></div>'
|
|
1
|
+
export default '<div class="flatmap-marker"><svg display="block" height="41px" width="27px" viewBox="0 0 27 41"><g fill-rule="nonzero"><g transform="translate(3.0, 29.0)" fill="#000000"><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="10.5" ry="5.25002273"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="10.5" ry="5.25002273"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="9.5" ry="4.77275007"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="8.5" ry="4.29549936"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="7.5" ry="3.81822308"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="6.5" ry="3.34094679"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="5.5" ry="2.86367051"></ellipse><ellipse opacity="0.04" cx="10.5" cy="5.80029008" rx="4.5" ry="2.38636864"></ellipse></g><g fill="#005974"><path d="M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"></path></g><g opacity="0.25" fill="#000000"><path d="M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"></path></g><g transform="translate(6.0, 7.0)" fill="#FFFFFF"></g><g transform="translate(8.0, 8.0)"><circle fill="#000000" opacity="0.25" cx="5.5" cy="5.5" r="5.4999962"></circle><circle fill="#FFFFFF" cx="5.5" cy="5.5" r="5.4999962"></circle></g></g></svg></div>'
|
|
Binary file
|
|
File without changes
|
package/src/icons/yellowstar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default '<svg width="160px" height="24px" viewBox="0 0 160 24" fill="yellow">' +
|
|
2
2
|
'<path d="M22.0748 3.25583C22.4141 2.42845 23.5859 2.42845 23.9252 3.25583L25.6493 7.45955C25.793 7.80979 26.1221 8.04889 26.4995 8.07727L31.0303 8.41798C31.922 8.48504 32.2841 9.59942 31.6021 10.1778L28.1369 13.1166C27.8482 13.3614 27.7225 13.7483 27.8122 14.1161L28.8882 18.5304C29.1 19.3992 28.152 20.0879 27.3912 19.618L23.5255 17.2305C23.2034 17.0316 22.7966 17.0316 22.4745 17.2305L18.60881 19.618C17.84796 20.0879 16.9 19.3992 17.1118 18.5304L18.18785 14.1161C18.2775 13.7483 18.1518 13.3614 17.86309 13.1166L14.3979 10.1778C13.71588 9.59942 14.07796 8.48504 14.96971 8.41798L19.50046 8.07727C19.87794 8.04889 20.20704 7.80979 20.35068 7.45955L22.0748 3.25583Z" stroke="#000000" stroke-width="2"/>' +
|
|
3
3
|
// Adjusting the x attribute and adding padding for the text element
|
|
4
|
-
'<text x="42" y="50%" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#000000">Featured marker</text>' +
|
|
5
|
-
'</svg>'
|
|
4
|
+
'<text x="42" y="50%" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#000000">Featured dataset marker</text>' +
|
|
5
|
+
'</svg>'
|
package/src/legends/legend.svg
CHANGED
|
File without changes
|