@abi-software/flatmapvuer 1.1.4 → 1.2.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/LICENSE +201 -201
- package/README.md +120 -120
- package/cypress.config.js +23 -23
- package/dist/flatmapvuer.js +43570 -38544
- package/dist/flatmapvuer.umd.cjs +182 -182
- package/dist/index.html +17 -17
- package/dist/style.css +1 -1
- package/package.json +95 -95
- package/public/index.html +17 -17
- package/reporter-config.json +9 -9
- package/src/App.vue +379 -379
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +5 -5
- package/src/components/AnnotationTool.vue +501 -501
- package/src/components/ConnectionDialog.vue +134 -134
- package/src/components/DrawTool.vue +502 -502
- package/src/components/EventBus.js +3 -3
- package/src/components/ExternalResourceCard.vue +109 -109
- package/src/components/FlatmapVuer.vue +3515 -3461
- package/src/components/HelpModeDialog.vue +360 -360
- package/src/components/MultiFlatmapVuer.vue +814 -814
- package/src/components/ProvenancePopup.vue +530 -530
- package/src/components/SelectionsGroup.vue +363 -363
- package/src/components/Tooltip.vue +50 -50
- package/src/components/TreeControls.vue +236 -236
- package/src/components/index.js +8 -8
- package/src/components/legends/DynamicLegends.vue +106 -106
- package/src/components/legends/SvgLegends.vue +112 -112
- package/src/icons/flatmap-marker.js +9 -9
- package/src/icons/fonts/mapicon-species.svg +14 -14
- package/src/icons/fonts/mapicon-species.ttf +0 -0
- package/src/icons/fonts/mapicon-species.woff +0 -0
- package/src/icons/mapicon-species-style.css +42 -42
- package/src/icons/yellowstar.js +5 -5
- package/src/legends/legend.svg +25 -25
- package/src/main.js +19 -19
- package/src/services/flatmapQueries.js +475 -475
- package/src/store/index.js +23 -23
- package/vite.config.js +73 -73
- package/vite.static-build.js +12 -12
- package/vuese-generator.js +64 -64
package/src/icons/yellowstar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export default '<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow">' +
|
|
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
|
-
// Adjusting the x attribute and adding padding for the text element
|
|
4
|
-
'<text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text>' +
|
|
5
|
-
'</svg>'
|
|
1
|
+
export default '<svg width="195px" height="24px" viewBox="0 0 200 24" fill="yellow">' +
|
|
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
|
+
// Adjusting the x attribute and adding padding for the text element
|
|
4
|
+
'<text x="47" y="52%" style="white-space: pre" dominant-baseline="middle" text-anchor="start" font-family="Asap, sans-serif" font-size="12" fill="#333333">Featured dataset marker</text>' +
|
|
5
|
+
'</svg>'
|
package/src/legends/legend.svg
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<svg version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">
|
|
3
|
-
<style type="text/css">
|
|
4
|
-
.st0{fill:#FF33CC;}
|
|
5
|
-
.st1{fill:#B2F074;}
|
|
6
|
-
.st2{opacity:0.64;fill:#E4E417;enable-background:new ;}
|
|
7
|
-
.st3{fill:#333333;}
|
|
8
|
-
.st4{font-family:'ArialMT';}
|
|
9
|
-
.st5{font-size:25.0633px;}
|
|
10
|
-
.st6{fill:#F15A24;}
|
|
11
|
-
.st7{fill:#66FFFF;stroke:#000000;stroke-width:3;}
|
|
12
|
-
</style>
|
|
13
|
-
<defs>
|
|
14
|
-
<bx:grid height="30.447" width="32.516" x="0" y="0"/>
|
|
15
|
-
</defs>
|
|
16
|
-
<path class="st0" 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"/>
|
|
17
|
-
<path class="st1" 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"/>
|
|
18
|
-
<path class="st2" 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"/>
|
|
19
|
-
<text transform="matrix(0.9908 0 0 1 118.0161 83.7712)" class="st3 st4 st5" style="white-space: pre;">Tissue region</text>
|
|
20
|
-
<path class="st6" 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"/>
|
|
21
|
-
<text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space: pre;">Brain nuclei</text>
|
|
22
|
-
<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"/>
|
|
23
|
-
<text transform="matrix(0.9908 0 0 1 117.5474 171.7975)" class="st3 st4 st5" style="white-space: pre;">Specific anatomical structure</text>
|
|
24
|
-
<text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space: pre;">Ganglia</text>
|
|
25
|
-
<text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space: pre;">Nerve plexus</text>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xmlns="http://www.w3.org/2000/svg" xmlns:bx="https://boxy-svg.com">
|
|
3
|
+
<style type="text/css">
|
|
4
|
+
.st0{fill:#FF33CC;}
|
|
5
|
+
.st1{fill:#B2F074;}
|
|
6
|
+
.st2{opacity:0.64;fill:#E4E417;enable-background:new ;}
|
|
7
|
+
.st3{fill:#333333;}
|
|
8
|
+
.st4{font-family:'ArialMT';}
|
|
9
|
+
.st5{font-size:25.0633px;}
|
|
10
|
+
.st6{fill:#F15A24;}
|
|
11
|
+
.st7{fill:#66FFFF;stroke:#000000;stroke-width:3;}
|
|
12
|
+
</style>
|
|
13
|
+
<defs>
|
|
14
|
+
<bx:grid height="30.447" width="32.516" x="0" y="0"/>
|
|
15
|
+
</defs>
|
|
16
|
+
<path class="st0" 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"/>
|
|
17
|
+
<path class="st1" 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"/>
|
|
18
|
+
<path class="st2" 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"/>
|
|
19
|
+
<text transform="matrix(0.9908 0 0 1 118.0161 83.7712)" class="st3 st4 st5" style="white-space: pre;">Tissue region</text>
|
|
20
|
+
<path class="st6" 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"/>
|
|
21
|
+
<text transform="matrix(0.9908 0 0 1 118.0161 257.675)" class="st3 st4 st5" style="white-space: pre;">Brain nuclei</text>
|
|
22
|
+
<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"/>
|
|
23
|
+
<text transform="matrix(0.9908 0 0 1 117.5474 171.7975)" class="st3 st4 st5" style="white-space: pre;">Specific anatomical structure</text>
|
|
24
|
+
<text transform="matrix(0.9908 0 0 1 118.0903 345.5266)" class="st3 st4 st5" style="white-space: pre;">Ganglia</text>
|
|
25
|
+
<text transform="matrix(0.9908 0 0 1 118.0903 433.1613)" class="st3 st4 st5" style="white-space: pre;">Nerve plexus</text>
|
|
26
26
|
</svg>
|
package/src/main.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { createApp } from 'vue'
|
|
2
|
-
import { createPinia } from 'pinia'
|
|
3
|
-
import App from './App.vue'
|
|
4
|
-
import { useMainStore } from '@/store/index'
|
|
5
|
-
|
|
6
|
-
const pinia = createPinia()
|
|
7
|
-
const app = createApp(App)
|
|
8
|
-
|
|
9
|
-
app.use(pinia)
|
|
10
|
-
|
|
11
|
-
const mainStore = useMainStore()
|
|
12
|
-
const token = document.cookie
|
|
13
|
-
.split("; ")
|
|
14
|
-
.find((row) => row.startsWith("user-token"))
|
|
15
|
-
if (mainStore && token) {
|
|
16
|
-
mainStore.setUserToken(token.split("=")[1])
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
app.mount('#app')
|
|
1
|
+
import { createApp } from 'vue'
|
|
2
|
+
import { createPinia } from 'pinia'
|
|
3
|
+
import App from './App.vue'
|
|
4
|
+
import { useMainStore } from '@/store/index'
|
|
5
|
+
|
|
6
|
+
const pinia = createPinia()
|
|
7
|
+
const app = createApp(App)
|
|
8
|
+
|
|
9
|
+
app.use(pinia)
|
|
10
|
+
|
|
11
|
+
const mainStore = useMainStore()
|
|
12
|
+
const token = document.cookie
|
|
13
|
+
.split("; ")
|
|
14
|
+
.find((row) => row.startsWith("user-token"))
|
|
15
|
+
if (mainStore && token) {
|
|
16
|
+
mainStore.setUserToken(token.split("=")[1])
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
app.mount('#app')
|