@abi-software/map-side-bar 1.2.2 → 1.3.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.
@@ -1,78 +1,78 @@
1
- <template>
2
- <div class="tab-container">
3
- <div class="title" v-for="title in tabTitles" :key="title.id">
4
- <div class="title-text-table" v-bind:class="{ highlightText : (title.id==activeId) }" v-on:click="titleClicked(title.id)">
5
- <div class="title-text">
6
- {{title.title}}
7
- </div>
8
- </div>
9
- </div>
10
- </div>
11
- </template>
12
-
13
- <script>
14
- /* eslint-disable no-alert, no-console */
15
-
16
- export default {
17
- name: "Tabs",
18
- props: {
19
- tabTitles: {
20
- type: Array,
21
- default: () => []
22
- },
23
- activeId: {
24
- type: Number,
25
- default: 1
26
- }
27
- },
28
- methods: {
29
- titleClicked: function(id) {
30
- this.$emit("titleClicked", id);
31
- },
32
- }
33
-
34
- };
35
- </script>
36
-
37
- <!-- Add "scoped" attribute to limit CSS to this component only -->
38
- <style scoped>
39
-
40
- .tab-container{
41
- height: 28px;
42
- }
43
-
44
- .title {
45
- width: 101px;
46
- height: 28px;
47
- border: solid 1px #dcdfe6;
48
- border-bottom: none;
49
- background-color: white;
50
- display:inline-block;
51
- }
52
-
53
- .title:hover {
54
- cursor: pointer;
55
- }
56
-
57
- .title-text {
58
- text-align:center;
59
- display: table-cell;
60
- vertical-align: middle;
61
- font-size: 14px;
62
- }
63
-
64
- .title-text-table {
65
- display:table;
66
- height: 100%;
67
- width: 100%;
68
- }
69
-
70
- .parent-dialog:hover .title-text {
71
- color:#8300bf;
72
- }
73
-
74
- .highlightText {
75
- color:#8300bf;
76
- }
77
-
78
- </style>
1
+ <template>
2
+ <div class="tab-container">
3
+ <div class="title" v-for="title in tabTitles" :key="title.id">
4
+ <div class="title-text-table" v-bind:class="{ highlightText : (title.id==activeId) }" v-on:click="titleClicked(title.id)">
5
+ <div class="title-text">
6
+ {{title.title}}
7
+ </div>
8
+ </div>
9
+ </div>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+ /* eslint-disable no-alert, no-console */
15
+
16
+ export default {
17
+ name: "Tabs",
18
+ props: {
19
+ tabTitles: {
20
+ type: Array,
21
+ default: () => []
22
+ },
23
+ activeId: {
24
+ type: Number,
25
+ default: 1
26
+ }
27
+ },
28
+ methods: {
29
+ titleClicked: function(id) {
30
+ this.$emit("titleClicked", id);
31
+ },
32
+ }
33
+
34
+ };
35
+ </script>
36
+
37
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
38
+ <style scoped>
39
+
40
+ .tab-container{
41
+ height: 28px;
42
+ }
43
+
44
+ .title {
45
+ width: 101px;
46
+ height: 28px;
47
+ border: solid 1px #dcdfe6;
48
+ border-bottom: none;
49
+ background-color: white;
50
+ display:inline-block;
51
+ }
52
+
53
+ .title:hover {
54
+ cursor: pointer;
55
+ }
56
+
57
+ .title-text {
58
+ text-align:center;
59
+ display: table-cell;
60
+ vertical-align: middle;
61
+ font-size: 14px;
62
+ }
63
+
64
+ .title-text-table {
65
+ display:table;
66
+ height: 100%;
67
+ width: 100%;
68
+ }
69
+
70
+ .parent-dialog:hover .title-text {
71
+ color:#8300bf;
72
+ }
73
+
74
+ .highlightText {
75
+ color:#8300bf;
76
+ }
77
+
78
+ </style>
@@ -1,80 +1,80 @@
1
- export default {
2
-
3
- }
4
- // //Uncomment the code below to add in hardcoded data
5
- // export default {
6
- // 77: {
7
- // "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
8
- // "heading": "Mapped ICN samples",
9
- // "id": "sparc.science.context_data",
10
- // "samples": [
11
- // {
12
- // "annotation": "",
13
- // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
14
- // "doi": "",
15
- // "heading": "ICNS from subject M54-8",
16
- // "id": "Sample 1",
17
- // "path": "",
18
- // "view": "View 1",
19
- // "color": "#FFFF00",
20
- // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
21
- // },
22
- // {
23
- // "annotation": "",
24
- // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
25
- // "doi": "",
26
- // "heading": "ICNS from subject M54-5",
27
- // "id": "Sample 2",
28
- // "path": "",
29
- // "view": "View 2",
30
- // "color": "#FFA500",
31
- // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
32
- // }
33
- // ],
34
- // "version": "0.1.0",
35
- // },
36
- // 221: {
37
- // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
38
- // "heading": "Digital tracings of enteric plexus",
39
- // "id": "sparc.science.context_data",
40
- // "samples": [
41
- // {
42
- // "annotation": "",
43
- // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
44
- // "doi": "",
45
- // "heading": "Digital tracing for subject M11",
46
- // "id": "Sample 1",
47
- // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
48
- // "view": "View 1"
49
- // },
50
- // {
51
- // "annotation": "",
52
- // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
53
- // "doi": "",
54
- // "heading": "Digital tracing for subject M16",
55
- // "id": "Sample 2",
56
- // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
57
- // "view": "View 2"
58
- // }
59
- // ],
60
- // "version": "0.1.0",
61
- // "views": [
62
- // {
63
- // "annotation": "--",
64
- // "description": "Digital tracing of neurons for subject M11.",
65
- // "id": "View 1",
66
- // "path": "files/derivative/Scaffolds/M11_view.json",
67
- // "sample": "Sample 1",
68
- // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
69
- // },
70
- // {
71
- // "annotation": "--",
72
- // "description": "Digital tracing of neurons for subject M16.",
73
- // "id": "View 2",
74
- // "path": "files/derivative/Scaffolds/M16_view.json",
75
- // "sample": "Sample 2",
76
- // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
77
- // }
78
- // ]
79
- // }
1
+ export default {
2
+
3
+ }
4
+ // //Uncomment the code below to add in hardcoded data
5
+ // export default {
6
+ // 77: {
7
+ // "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
8
+ // "heading": "Mapped ICN samples",
9
+ // "id": "sparc.science.context_data",
10
+ // "samples": [
11
+ // {
12
+ // "annotation": "",
13
+ // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
14
+ // "doi": "",
15
+ // "heading": "ICNS from subject M54-8",
16
+ // "id": "Sample 1",
17
+ // "path": "",
18
+ // "view": "View 1",
19
+ // "color": "#FFFF00",
20
+ // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
21
+ // },
22
+ // {
23
+ // "annotation": "",
24
+ // "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
25
+ // "doi": "",
26
+ // "heading": "ICNS from subject M54-5",
27
+ // "id": "Sample 2",
28
+ // "path": "",
29
+ // "view": "View 2",
30
+ // "color": "#FFA500",
31
+ // "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
32
+ // }
33
+ // ],
34
+ // "version": "0.1.0",
35
+ // },
36
+ // 221: {
37
+ // "description": "3D digital tracings of the enteric plexus obtained from seven subjects (M11, M16, M162, M163, M164, M168) are mapped randomly on mouse proximal colon. The data depicts individual neural wiring patterns in enteric microcircuits, and revealed both neuron and fiber units wired in a complex organization.",
38
+ // "heading": "Digital tracings of enteric plexus",
39
+ // "id": "sparc.science.context_data",
40
+ // "samples": [
41
+ // {
42
+ // "annotation": "",
43
+ // "description": "Neuronal soma and fibers in a myenteric ganglion in this subject are annotated into the following groups to highlight their interactions:\n\nNeuron1,2,3 Connex: Connections between 3 neurons and cross-ganglionic fibers\n\nNeuron4_Connex: A small neuron contacts fibers passing the ganglion\n\nNeuron5: Multiple projections of a neuron in an myenteric ganglion\n\nNeuron5,3,7 Connex: Connections between 3 neurons, nerve fibers, IGNEx (complex type of intraganglionic nerve endings) and fibers in the circular muscles.\n\nNeuron8,9,10 Connex: Connections of 3 neurons with each other and with long passing fibers. \n\nIntraganglionic Nerve Ending (IGNE): Digital traces of neurites consist of complex intraganglionic nerve endings. The blue fiber has branched terminals, more likely the afferent nerve endings; the violet and cyan terminals also interweave into the fiber nest; the orange, pink and peach fibers and one process of the neuron cross the IGNE to make 1-2 conjunctions. \n",
44
+ // "doi": "",
45
+ // "heading": "Digital tracing for subject M11",
46
+ // "id": "Sample 1",
47
+ // "path": "files/derivative/sub-M11/sam-pCm11/digital-traces/pC PHPS XFP M11 20XZ 180425_180713_2_NL_20.xml",
48
+ // "view": "View 1"
49
+ // },
50
+ // {
51
+ // "annotation": "",
52
+ // "description": "This digital trace demonstrates some types of wiring. A long process of the green neuron terminates in the intraganglionic nerve endings (IGNE) while in contact with a nerve fiber (cyan), soma of a neuron (peach) and processes of 3 neurons (magenta, yellow and red). Two neurons and one fiber are traced to an IGNE. ",
53
+ // "doi": "",
54
+ // "heading": "Digital tracing for subject M16",
55
+ // "id": "Sample 2",
56
+ // "path": "files/derivative/sub-M16/sam-pCm16/digital-traces/pC PHPS XFP M16 20XZ 180425_180524.xml",
57
+ // "view": "View 2"
58
+ // }
59
+ // ],
60
+ // "version": "0.1.0",
61
+ // "views": [
62
+ // {
63
+ // "annotation": "--",
64
+ // "description": "Digital tracing of neurons for subject M11.",
65
+ // "id": "View 1",
66
+ // "path": "files/derivative/Scaffolds/M11_view.json",
67
+ // "sample": "Sample 1",
68
+ // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M11_thumbnail.jpeg"
69
+ // },
70
+ // {
71
+ // "annotation": "--",
72
+ // "description": "Digital tracing of neurons for subject M16.",
73
+ // "id": "View 2",
74
+ // "path": "files/derivative/Scaffolds/M16_view.json",
75
+ // "sample": "Sample 2",
76
+ // "thumbnail": "https://api.sparc.science/s3-resource/221/2/files/derivative/Scaffolds/M16_thumbnail.jpeg"
77
+ // }
78
+ // ]
79
+ // }
80
80
  // }
@@ -1,8 +1,8 @@
1
- import SideBar from "./SideBar.vue"
2
-
3
- export {
4
- SideBar
5
- };
6
-
7
-
8
-
1
+ import SideBar from "./SideBar.vue"
2
+
3
+ export {
4
+ SideBar
5
+ };
6
+
7
+
8
+
@@ -1,8 +1,8 @@
1
- export default {
2
- 'homo sapiens': 'Human',
3
- 'rattus norvegicus': 'Rat',
4
- 'mus musculus': 'Mouse',
5
- 'sus scrofa domesticus': 'Pig',
6
- 'sus scrofa': 'Boar',
7
- 'felis catus': 'Cat'
8
- }
1
+ export default {
2
+ 'homo sapiens': 'Human',
3
+ 'rattus norvegicus': 'Rat',
4
+ 'mus musculus': 'Mouse',
5
+ 'sus scrofa domesticus': 'Pig',
6
+ 'sus scrofa': 'Boar',
7
+ 'felis catus': 'Cat'
8
+ }
package/src/main.js CHANGED
@@ -1,8 +1,8 @@
1
- import Vue from 'vue'
2
- import App from './App.vue'
3
-
4
- import vueCustomElement from 'vue-custom-element'
5
- Vue.use(vueCustomElement)
6
-
7
- Vue.config.productionTip = false
8
- Vue.customElement('map-side-bar', App)
1
+ import Vue from 'vue'
2
+ import App from './App.vue'
3
+
4
+ import vueCustomElement from 'vue-custom-element'
5
+ Vue.use(vueCustomElement)
6
+
7
+ Vue.config.productionTip = false
8
+ Vue.customElement('map-side-bar', App)
package/static.json CHANGED
@@ -1,7 +1,7 @@
1
- {
2
- "root": "dist",
3
- "clean_urls": true,
4
- "routes": {
5
- "/**": "index.html"
6
- }
1
+ {
2
+ "root": "dist",
3
+ "clean_urls": true,
4
+ "routes": {
5
+ "/**": "index.html"
6
+ }
7
7
  }
package/vue.config.js CHANGED
@@ -1,11 +1,11 @@
1
- const nodeExternals = require('webpack-node-externals');
2
-
3
- module.exports = {
4
- configureWebpack: config => {
5
- if(process.env.NODE_ENV === 'production') {
6
- //By including element-ui and all abi projects, the problem with element-ui
7
- //stylesheet can be avoided.
8
- config.externals = [ nodeExternals() ];
9
- }
10
- },
11
- }
1
+ const nodeExternals = require('webpack-node-externals');
2
+
3
+ module.exports = {
4
+ configureWebpack: config => {
5
+ if(process.env.NODE_ENV === 'production') {
6
+ //By including element-ui and all abi projects, the problem with element-ui
7
+ //stylesheet can be avoided.
8
+ config.externals = [ nodeExternals() ];
9
+ }
10
+ },
11
+ }
@@ -1,30 +0,0 @@
1
- {
2
- "description": "This dataset contains single cell scale anatomical map of the rat intrinsic cardiac nervous system (ICNS) across four male and three female hearts. These cell clusters can be seen by the yellow data points on the image as well as spherical markers on the 3D heart scaffold. The dataset provides an integrative framework to visualise the spatial distribution of ICNS across different hearts.",
3
- "heading": "Mapped ICN samples",
4
- "id": "sparc.science.context_data",
5
- "samples": [
6
- {
7
- "annotation": "",
8
- "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
9
- "doi": "",
10
- "heading": "ICNS from subject M54-8",
11
- "id": "Sample 1",
12
- "path": "",
13
- "view": "View 1",
14
- "color": "#FFFF00",
15
- "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/orange.png"
16
- },
17
- {
18
- "annotation": "",
19
- "description": "Spatial location of isolated ICNS mapped onto a generic heart scaffold",
20
- "doi": "",
21
- "heading": "ICNS from subject M54-5",
22
- "id": "Sample 2",
23
- "path": "",
24
- "view": "View 2",
25
- "color": "#FFA500",
26
- "thumbnail": "https://raw.githubusercontent.com/ABI-Software/map-sidebar/main/assets/temp-pics/teal.png"
27
- }
28
- ],
29
- "version": "0.1.0"
30
- }
@@ -1,22 +0,0 @@
1
- export default function (filters) {
2
- for (let filter of filters) {
3
- if (filter.includes['UBERON']) {
4
- uberonMap[filter]
5
- }
6
- }
7
- return
8
- }
9
-
10
- const _get_uberon_map = function (apiLocation) {
11
- fetch(`${apiLocation}/getOrganCuries/`)
12
- .then((response) => {
13
- if (!response.ok) {
14
- throw Error(response.statusText)
15
- } else {
16
- return response.json()
17
- }
18
- })
19
- .then((data) => {
20
- return data
21
- })
22
- }
@@ -1,29 +0,0 @@
1
- export default {
2
- 77: {
3
- version: 2, meta_file: 'integrated_metadata.json', contextCard: {
4
- title: "ICN fitted Scaffold",
5
- description: "Points are mapped to their positions on a 3d heart that is mapped to the data.",
6
- bannerImage: 'https://raw.githubusercontent.com/Tehsurfer/map-sidebar/tabs/assets/temp-pics/icn.png',
7
- keys: [{
8
- image: "https://raw.githubusercontent.com/Tehsurfer/map-sidebar/tabs/assets/temp-pics/orange.png",
9
- text: "ICN Subject 54-8"
10
- }, {
11
- image: "https://raw.githubusercontent.com/Tehsurfer/map-sidebar/tabs/assets/temp-pics/teal.png",
12
- text: "ICN Subject 54-5"
13
- }
14
- ]
15
- },
16
- },
17
- 76: { version: 2, meta_file: 'mouseColon_metadata.json' },
18
- 32: {
19
- version: 3, meta_file: 'mouse-heart-071020_metadata.json', contextCard: {
20
- title: "Neural paths mapped to a heart scaffold",
21
- description: "Points are mapped to their positions on a 3d heart that is mapped to the data.",
22
- bannerImage: 'https://raw.githubusercontent.com/Tehsurfer/map-sidebar/tabs/assets/temp-pics/aNIksBFARaKwlKhpnDCKbA.png',
23
- keys: [{
24
- image: "https://raw.githubusercontent.com/Tehsurfer/map-sidebar/tabs/assets/temp-pics/VqNcZ8fSQJu5TJEf9ahwvA.png",
25
- text: "Neural path"
26
- }],
27
- }
28
- }
29
- }