@abi-software/scaffoldvuer 1.15.5 → 1.15.6

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.15.5",
3
+ "version": "1.15.6",
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.8.2",
44
+ "@abi-software/map-utilities": "1.8.3",
45
45
  "@abi-software/sparc-annotation": "^0.3.2",
46
46
  "@abi-software/svg-sprite": "1.0.3",
47
47
  "@element-plus/icons-vue": "^2.3.1",
@@ -53,7 +53,7 @@
53
53
  "unplugin-vue-components": "^0.26.0",
54
54
  "vue": "^3.4.21",
55
55
  "vue-router": "^4.2.5",
56
- "zincjs": "1.18.9"
56
+ "zincjs": "1.19.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/eslint-parser": "^7.28.0",
package/src/App.vue CHANGED
@@ -15,7 +15,7 @@
15
15
  @help-mode-last-item="onHelpModeLastItem"
16
16
  @shown-tooltip="onTooltipShown"
17
17
  @shown-map-tooltip="onMapTooltipShown"
18
- :display-latest-changes="true"
18
+ :display-latest-changes="false"
19
19
  :display-minimap="displayMinimap"
20
20
  :display-markers="displayMarkers"
21
21
  :enableOpenMapUI="true"
@@ -629,7 +629,7 @@ export default {
629
629
  */
630
630
  displayWarning: {
631
631
  type: Boolean,
632
- default: true,
632
+ default: false,
633
633
  },
634
634
  /**
635
635
  * Warning message for the hovered over text
@@ -0,0 +1,85 @@
1
+ //import * as nifti from 'nifti-reader-js';
2
+ import { createPrimitivesFromNIFTI } from "zincjs/src/loaders/niftiReader.js";
3
+ import {
4
+ THREE
5
+ } from "zincjs";
6
+
7
+ const options = {
8
+ hideWhitePixel: false,
9
+ hideBlackPixel: true,
10
+ keepScalePosition: true,
11
+ filterByValue: true,
12
+ timeEnabled: true,
13
+ }
14
+
15
+ const textureSettings = {
16
+ v1: {
17
+ "id": "mesh-location-orientation",
18
+ "locations": [
19
+ {
20
+ "identifier": 1,
21
+ "label": "original",
22
+ "orientation": [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
23
+ "position": [-283, -363, 1090],
24
+ "scale": [540, 540, 276],
25
+ "flipY": false,
26
+ "reference_point": "corner"
27
+ }
28
+ ],
29
+ "settings": {
30
+ "slides": [
31
+ {
32
+ "direction": "x",
33
+ "value": 0.5
34
+ },
35
+ {
36
+ "direction": "y",
37
+ "value": 0.5
38
+ },
39
+ {
40
+ "direction": "z",
41
+ "value": 0.45
42
+ }
43
+ ]
44
+ },
45
+ "type": "slides"
46
+ },
47
+ v2: {
48
+ "id": "mesh-location-orientation",
49
+ "locations": [
50
+ {
51
+ "identifier": 1,
52
+ "label": "original",
53
+ "orientation": [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
54
+ "position": [-183, -343, 1034],
55
+ "scale": [520, 520, 235],
56
+ "flipY": false,
57
+ "reference_point": "corner"
58
+ }
59
+ ],
60
+ "settings": {
61
+ "slides": [
62
+ {
63
+ "direction": "x",
64
+ "value": 0.5
65
+ },
66
+ {
67
+ "direction": "y",
68
+ "value": 0.5
69
+ },
70
+ {
71
+ "direction": "z",
72
+ "value": 0.45
73
+ }
74
+ ]
75
+ },
76
+ "type": "slides"
77
+ }
78
+ }
79
+
80
+ const readNIFTIFromSource = async (url, useHeaderInfo, maskURL) => {
81
+ const images = await createPrimitivesFromNIFTI(url, useHeaderInfo, maskURL, textureSettings['v1'], options);
82
+ return images;
83
+ }
84
+
85
+ export { readNIFTIFromSource }