@abi-software/scaffoldvuer 1.16.0-beta.2 → 1.16.0
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 +5826 -5781
- package/dist/scaffoldvuer.umd.cjs +173 -165
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/App.vue +40 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abi-software/scaffoldvuer",
|
|
3
|
-
"version": "1.16.0
|
|
3
|
+
"version": "1.16.0",
|
|
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.
|
|
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": "
|
|
56
|
+
"zincjs": "1.20.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/eslint-parser": "^7.28.0",
|
package/src/App.vue
CHANGED
|
@@ -605,12 +605,51 @@ export default {
|
|
|
605
605
|
testSlides(this.$refs.scaffold, texture_prefix);
|
|
606
606
|
},
|
|
607
607
|
multipleNifti: async function () {
|
|
608
|
+
const v1 = {
|
|
609
|
+
"id": "mesh-location-orientation",
|
|
610
|
+
"locations": [
|
|
611
|
+
{
|
|
612
|
+
"identifier": 1,
|
|
613
|
+
"label": "original",
|
|
614
|
+
"orientation": [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
|
|
615
|
+
"position": [-283, -363, 1090],
|
|
616
|
+
"scale": [540, 540, 276],
|
|
617
|
+
"flipY": false,
|
|
618
|
+
"flipZ": true,
|
|
619
|
+
"reference_point": "corner"
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"settings": {
|
|
623
|
+
"slides": [
|
|
624
|
+
{
|
|
625
|
+
"direction": "x",
|
|
626
|
+
"value": 0.5
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"direction": "y",
|
|
630
|
+
"value": 0.5
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"direction": "z",
|
|
634
|
+
"value": 0.45
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
"type": "slides"
|
|
639
|
+
}
|
|
640
|
+
const options = {
|
|
641
|
+
hideWhitePixel: false,
|
|
642
|
+
hideBlackPixel: false,
|
|
643
|
+
keepScalePosition: true,
|
|
644
|
+
filterByValue: true,
|
|
645
|
+
timeEnabled: true,
|
|
646
|
+
}
|
|
608
647
|
const urls = [
|
|
609
648
|
"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/digital_twins/080626-demo/downsample_phase_1.nii.gz",
|
|
610
649
|
"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/digital_twins/080626-demo/downsample_phase_3.nii.gz",
|
|
611
650
|
"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/digital_twins/080626-demo/downsample_phase_5.nii.gz"
|
|
612
651
|
]
|
|
613
|
-
const newTexture = await this.$refs.scaffold.readNIFTIFromSource(urls, true, this.maskUrl);
|
|
652
|
+
const newTexture = await this.$refs.scaffold.readNIFTIFromSource(urls, true, this.maskUrl, v1, options, true);
|
|
614
653
|
newTexture.timeEnabled = true;
|
|
615
654
|
newTexture.setIsPickable(false);
|
|
616
655
|
const scene = this.$refs.scaffold.$module.scene;
|