@abi-software/flatmapvuer 1.5.0 → 1.5.2
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/dist/flatmapvuer.js +24234 -25350
- package/dist/flatmapvuer.umd.cjs +101 -100
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +9 -0
- package/src/components/FlatmapVuer.vue +11 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/flatmapvuer",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"./src/*": "./src/*"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@abi-software/flatmap-viewer": "3.1.
|
|
46
|
+
"@abi-software/flatmap-viewer": "3.1.9",
|
|
47
47
|
"@abi-software/map-utilities": "1.1.0",
|
|
48
48
|
"@abi-software/sparc-annotation": "0.3.1",
|
|
49
49
|
"@abi-software/svg-sprite": "1.0.0",
|
package/src/App.vue
CHANGED
|
@@ -133,6 +133,15 @@ export default {
|
|
|
133
133
|
FlatmapSelected: function (resource) {
|
|
134
134
|
if (resource.eventType === 'click') {
|
|
135
135
|
if (this.consoleOn) console.log('resource', resource)
|
|
136
|
+
|
|
137
|
+
// Show marker on centreline of right vagus X nerve trunk
|
|
138
|
+
const { kind, models, location } = resource.feature;
|
|
139
|
+
if (window.flatmapImp && models && location && kind === 'centreline') {
|
|
140
|
+
window.flatmapImp.clearMarkers();
|
|
141
|
+
window.flatmapImp.addMarker(models, {
|
|
142
|
+
location: location
|
|
143
|
+
});
|
|
144
|
+
}
|
|
136
145
|
}
|
|
137
146
|
},
|
|
138
147
|
onOpenPubmedUrl: function (url) {
|
|
@@ -2027,7 +2027,10 @@ export default {
|
|
|
2027
2027
|
// Tooltip will be shown for Annotation view
|
|
2028
2028
|
if (
|
|
2029
2029
|
!this.disableUI && (
|
|
2030
|
-
|
|
2030
|
+
(
|
|
2031
|
+
this.viewingMode === 'Annotation' &&
|
|
2032
|
+
this.userInformation
|
|
2033
|
+
) ||
|
|
2031
2034
|
(
|
|
2032
2035
|
this.viewingMode === 'Exploration' &&
|
|
2033
2036
|
!this.connectivityInfoSidebar &&
|
|
@@ -2246,12 +2249,12 @@ export default {
|
|
|
2246
2249
|
identifier = { uuid: state.uuid }
|
|
2247
2250
|
} else if (state.entry) {
|
|
2248
2251
|
identifier.taxon = state.entry
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2252
|
+
}
|
|
2253
|
+
if (state.biologicalSex) {
|
|
2254
|
+
identifier['biologicalSex'] = state.biologicalSex;
|
|
2255
|
+
} else if (identifier.taxon === 'NCBITaxon:9606') {
|
|
2256
|
+
//For backward compatibility
|
|
2257
|
+
identifier['biologicalSex'] = 'PATO:0000384';
|
|
2255
2258
|
}
|
|
2256
2259
|
} else {
|
|
2257
2260
|
// Set the bioloicalSex now if map is not resumed from
|
|
@@ -2807,7 +2810,7 @@ export default {
|
|
|
2807
2810
|
if (mode === 'Annotation') {
|
|
2808
2811
|
this.loading = true
|
|
2809
2812
|
this.annotator.authenticate(this.userToken).then((userData) => {
|
|
2810
|
-
if (userData.name && userData.email) {
|
|
2813
|
+
if (userData.name && userData.email && userData.canUpdate) {
|
|
2811
2814
|
this.showAnnotator(true)
|
|
2812
2815
|
this.userInformation = userData
|
|
2813
2816
|
this.setFeatureAnnotated()
|