@abi-software/scaffoldvuer 1.11.0-beta.1 → 1.11.0-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/scaffoldvuer",
3
- "version": "1.11.0-beta.1",
3
+ "version": "1.11.0-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "*.js"
42
42
  ],
43
43
  "dependencies": {
44
- "@abi-software/map-utilities": "^1.6.0",
44
+ "@abi-software/map-utilities": "1.6.1-beta.6",
45
45
  "@abi-software/sparc-annotation": "^0.3.2",
46
46
  "@abi-software/svg-sprite": "^1.0.1",
47
47
  "@element-plus/icons-vue": "^2.3.1",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- v-show="material || isTextureSlides"
3
+ v-show="hasValidPrimitive"
4
4
  class="primitive-controls"
5
5
  :class="{ open: drawerOpen, close: !drawerOpen }"
6
6
  >
@@ -85,6 +85,10 @@ export default {
85
85
  createData: {
86
86
  type: Object,
87
87
  },
88
+ viewingMode: {
89
+ type: String,
90
+ default: "Exploration",
91
+ }
88
92
  },
89
93
  data: function() {
90
94
  return {
@@ -99,6 +103,14 @@ export default {
99
103
  displayString: "100%"
100
104
  };
101
105
  },
106
+ computed: {
107
+ hasValidPrimitive: function () {
108
+ if (this.viewingMode === 'Exploration' || this.viewingMode === 'Annotation') {
109
+ return (this.material !== undefined || this.isTextureSlides === true);
110
+ }
111
+ return false;
112
+ }
113
+ },
102
114
  methods: {
103
115
  formatTooltip: function(val) {
104
116
  this.displayString = Math.floor(100 * val + 0.5) + "%";
@@ -109,9 +109,9 @@
109
109
  </el-popover>
110
110
  <div class="primitive-controls-box">
111
111
  <primitive-controls
112
- v-show="viewingMode === 'Exploration' || viewingMode === 'Annotation'"
113
112
  ref="primitiveControls"
114
113
  :createData="createData"
114
+ :viewingMode="viewingMode"
115
115
  @primitivesUpdated="primitivesUpdated"
116
116
  />
117
117
  </div>
@@ -822,7 +822,6 @@ const getNerveMaps = () => {
822
822
  });
823
823
  }
824
824
  });
825
- console.log(curatedMap)
826
825
  return curatedMap;
827
826
  }
828
827