Skip to content

Commit

Permalink
Update beta text.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jun 1, 2023
1 parent 8a1ba42 commit ed865ca
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abi-software/flatmapvuer",
"version": "0.4.3",
"version": "0.4.4",
"license": "Apache-2.0",
"main": "./dist/flatmapvuer.common.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
availableSpecies : {
"Human Female":{taxo: "NCBITaxon:9606", biologicalSex: "PATO:0000383", iconClass:"mapicon-icon_human", displayWarning:true},
"Human Male":{taxo: "NCBITaxon:9606", biologicalSex: "PATO:0000384", iconClass:"mapicon-icon_human", displayWarning:true},
"Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:false, displayLatestChanges:true},
"Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:true, displayLatestChanges:true},
"Mouse":{taxo: "NCBITaxon:10090", iconClass:"mapicon-icon_mouse", displayWarning:true},
"Kember":{taxo: "ABI:1000001", displayWarning:true},
"Pig":{taxo: "NCBITaxon:9823", iconClass:"mapicon-icon_pig", displayWarning:true},
Expand Down
46 changes: 33 additions & 13 deletions src/components/FlatmapVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,41 @@
<div class="beta-popovers">
<div>
<el-popover
:content="getWarningMessage"
placement="right"
:appendToBody="false"
trigger="manual"
popper-class="warning-popper flatmap-popper right-popper"
v-model="hoverVisibilities[6].value"
ref="warningPopover"
></el-popover>
>
<p v-if="isLegacy" @mouseover="showToolitip(6)" @mouseout="hideToolitip(6)">
This is a legacy map, you may view the latest map instead.
</p>
<p v-else-if="isFC" @mouseover="showToolitip(6)" @mouseout="hideToolitip(6)">
This map displays the connectivity of individual neurons.
Specifically, those which align with (parts of) the neuron
populations from the
<a href="https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew" target="_blank" >
ApiNATOMY
</a>
models available in
<a href="https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD" target="_blank" >
SCKAN
</a>.
</p>
<p v-else @mouseover="showToolitip(6)" @mouseout="hideToolitip(6)">
This map displays the connectivity of neuron populations.
Specifically, those from the primarily rat-based
<a href="https://sparc.science/resources/1ZUKXU2YmLcn2reCyXjlew" target="_blank" >
ApiNATOMY
</a>
models available in
<a href="https://sparc.science/resources/6eg3VpJbwQR4B84CjrvmyD" target="_blank" >
SCKAN
</a>. New connectivity and species
specificity will be added as the SPARC program progresses.
</p>
</el-popover>
<i
class="el-icon-warning warning-icon"
v-if="displayWarning"
Expand Down Expand Up @@ -580,15 +607,18 @@ export default {
},
showToolitip: function(tooltipNumber) {
if (!this.inHelp) {
clearTimeout(this.tooltipWait);
this.tooltipWait = setTimeout(() => {
this.hoverVisibilities[tooltipNumber].value = true;
}, 500);
}
},
hideToolitip: function(tooltipNumber) {
if (!this.inHelp) {
this.hoverVisibilities[tooltipNumber].value = false;
clearTimeout(this.tooltipWait);
this.tooltipWait = setTimeout(() => {
this.hoverVisibilities[tooltipNumber].value = false;
}, 500);
}
},
displayTooltip: function() {
Expand Down Expand Up @@ -985,16 +1015,6 @@ export default {
deep: true
}
},
computed: {
getWarningMessage: function() {
if (this.isLegacy) {
return "This is a legacy map, you may view the latest map instead.";
} else if (this.isFC) {
return "Beta feature - The connectivity shown here is the subset of neurons from the neuron populations in ApiNATOMY models which are at the same spatial scale and level of granularity.";
}
return "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress.";
},
},
mounted: function() {
const flatmap = require("@abi-software/flatmap-viewer");
this.mapManager = new flatmap.MapManager(this.flatmapAPI);
Expand Down

0 comments on commit ed865ca

Please sign in to comment.