@abi-software/scaffoldvuer 1.16.0-beta.1 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "1.16.0-beta.1",
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.3"
56
+ "zincjs": "^1.19.4"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@babel/eslint-parser": "^7.28.0",
@@ -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,81 +1,8 @@
1
1
  //import * as nifti from 'nifti-reader-js';
2
2
  import { createPrimitivesFromNIFTI } from "zincjs/src/loaders/niftiReader.js";
3
3
 
4
- const options = {
5
- hideWhitePixel: false,
6
- hideBlackPixel: false,
7
- keepScalePosition: true,
8
- filterByValue: true,
9
- timeEnabled: true,
10
- }
11
-
12
- const textureSettings = {
13
- v1: {
14
- "id": "mesh-location-orientation",
15
- "locations": [
16
- {
17
- "identifier": 1,
18
- "label": "original",
19
- "orientation": [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
20
- "position": [-283, -363, 1090],
21
- "scale": [540, 540, 276],
22
- "flipY": false,
23
- "reference_point": "corner"
24
- }
25
- ],
26
- "settings": {
27
- "slides": [
28
- {
29
- "direction": "x",
30
- "value": 0.5
31
- },
32
- {
33
- "direction": "y",
34
- "value": 0.5
35
- },
36
- {
37
- "direction": "z",
38
- "value": 0.45
39
- }
40
- ]
41
- },
42
- "type": "slides"
43
- },
44
- v2: {
45
- "id": "mesh-location-orientation",
46
- "locations": [
47
- {
48
- "identifier": 1,
49
- "label": "original",
50
- "orientation": [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0],
51
- "position": [-183, -343, 1034],
52
- "scale": [520, 520, 235],
53
- "flipY": false,
54
- "reference_point": "corner"
55
- }
56
- ],
57
- "settings": {
58
- "slides": [
59
- {
60
- "direction": "x",
61
- "value": 0.5
62
- },
63
- {
64
- "direction": "y",
65
- "value": 0.5
66
- },
67
- {
68
- "direction": "z",
69
- "value": 0.45
70
- }
71
- ]
72
- },
73
- "type": "slides"
74
- }
75
- }
76
-
77
- const readNIFTIFromSource = async (url, useHeaderInfo, maskURL) => {
78
- 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);
79
6
  return images;
80
7
  }
81
8