@abi-software/scaffoldvuer 1.16.0-beta.0 → 1.16.0-beta.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/scaffoldvuer.js +3988 -4022
- package/dist/scaffoldvuer.umd.cjs +38 -35
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +1 -1
- package/src/components/ScaffoldVuer.vue +2 -2
- package/src/scripts/niftiHelper.js +2 -78
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "1.16.0-beta.
|
|
3
|
+
"version": "1.16.0-beta.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -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.19.
|
|
56
|
+
"zincjs": "^1.19.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/eslint-parser": "^7.28.0",
|
package/src/App.vue
CHANGED
|
@@ -616,8 +616,8 @@ export default {
|
|
|
616
616
|
const scene = this.$refs.scaffold.$module.scene;
|
|
617
617
|
newTexture.setBrightness(0.38);
|
|
618
618
|
newTexture.setContrast(3.5);
|
|
619
|
+
newTexture.setPosition(-158.73, -150.51, -198.50);
|
|
619
620
|
scene.addZincObject(newTexture);
|
|
620
|
-
console.log(newTexture)
|
|
621
621
|
},
|
|
622
622
|
saveSettings: function () {
|
|
623
623
|
this.sceneSettings.push(this.$refs.scaffold.getState());
|
|
@@ -3132,8 +3132,8 @@ export default {
|
|
|
3132
3132
|
this.setMarkerModeForObjectsWithName(key, value, "on");
|
|
3133
3133
|
}
|
|
3134
3134
|
},
|
|
3135
|
-
readNIFTIFromSource: async function(urls, useHeaderInfo, maskURL) {
|
|
3136
|
-
const newTexture = await readNIFTIFromSource(urls, useHeaderInfo, maskURL);
|
|
3135
|
+
readNIFTIFromSource: async function(urls, useHeaderInfo, maskURL, settings, options) {
|
|
3136
|
+
const newTexture = await readNIFTIFromSource(urls, useHeaderInfo, maskURL, settings, options);
|
|
3137
3137
|
return newTexture;
|
|
3138
3138
|
},
|
|
3139
3139
|
},
|
|
@@ -1,84 +1,8 @@
|
|
|
1
1
|
//import * as nifti from 'nifti-reader-js';
|
|
2
2
|
import { createPrimitivesFromNIFTI } from "zincjs/src/loaders/niftiReader.js";
|
|
3
|
-
import {
|
|
4
|
-
THREE
|
|
5
|
-
} from "zincjs";
|
|
6
3
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
hideBlackPixel: false,
|
|
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);
|
|
4
|
+
const readNIFTIFromSource = async (url, useHeaderInfo, maskURL, settings, options) => {
|
|
5
|
+
const images = await createPrimitivesFromNIFTI(url, useHeaderInfo, maskURL, settings, options);
|
|
82
6
|
return images;
|
|
83
7
|
}
|
|
84
8
|
|