@abi-software/flatmapvuer 1.5.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.5.1",
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.8",
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
- this.viewingMode === 'Annotation' ||
2030
+ (
2031
+ this.viewingMode === 'Annotation' &&
2032
+ this.userInformation
2033
+ ) ||
2031
2034
  (
2032
2035
  this.viewingMode === 'Exploration' &&
2033
2036
  !this.connectivityInfoSidebar &&
@@ -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()