@abi-software/map-side-bar 1.4.1-beta.2 → 1.4.1-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.4.1-beta.2",
3
+ "version": "1.4.1-beta.3",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
package/src/App.vue CHANGED
@@ -21,6 +21,7 @@
21
21
  /* eslint-disable no-alert, no-console */
22
22
  // optionally import default styles
23
23
  import SideBar from './components/SideBar'
24
+ import EventBus from './components/EventBus'
24
25
 
25
26
  // let testContext = {
26
27
  // "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.",
@@ -140,6 +141,9 @@ export default {
140
141
  },
141
142
  mounted: function() {
142
143
  console.log("mounted app")
144
+ EventBus.$on("contextUpdate", (payLoad) => {
145
+ console.log("contextUpdate", payLoad)
146
+ })
143
147
  },
144
148
  }
145
149
  </script>
@@ -168,6 +168,7 @@ export default {
168
168
  propogateCardAction: function(action){
169
169
  EventBus.$emit("PopoverActionClick", action)
170
170
  this.$emit('contextUpdate', action)
171
+ EventBus.$emit("contextUpdate", action) // Pass to mapintegratedvuer
171
172
  },
172
173
  splitDOI: function(doi){
173
174
  return [doi.split('/')[doi.split('/').length-2], doi.split('/')[doi.split('/').length-1]]
@@ -129,6 +129,9 @@ export default {
129
129
  value: payLoad
130
130
  })
131
131
  })
132
+ EventBus.$on('contextUpdate', (payLoad)=> {
133
+ this.$emit('contextUpdate', payLoad)
134
+ })
132
135
  }
133
136
  };
134
137
  </script>
package/delte.json DELETED
@@ -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
- }