@cornerstonejs/tools 1.61.5 → 1.61.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": "@cornerstonejs/tools",
3
- "version": "1.61.5",
3
+ "version": "1.61.6",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "webpack:watch": "webpack --mode development --progress --watch --config ./.webpack/webpack.dev.js"
30
30
  },
31
31
  "dependencies": {
32
- "@cornerstonejs/core": "^1.61.5",
32
+ "@cornerstonejs/core": "^1.61.6",
33
33
  "@icr/polyseg-wasm": "0.4.0",
34
34
  "@types/offscreencanvas": "2019.7.3",
35
35
  "comlink": "^4.4.1",
@@ -59,5 +59,5 @@
59
59
  "type": "individual",
60
60
  "url": "https://ohif.org/donate"
61
61
  },
62
- "gitHead": "781483751c49ea99866976c6a1a938d96e0ef2c1"
62
+ "gitHead": "4d53b47bb74d03a1858b78489b38996e7d537adc"
63
63
  }
@@ -7,7 +7,7 @@ export type PointInShape = {
7
7
  value: number;
8
8
  index: number;
9
9
  pointIJK: vec3;
10
- pointLPS: vec3;
10
+ pointLPS: vec3 | number[];
11
11
  };
12
12
 
13
13
  export type PointInShapeCallback = ({
@@ -136,7 +136,12 @@ export default function pointInShapeCallback(
136
136
  value = scalarData[index];
137
137
  }
138
138
 
139
- pointsInShape.push({ value, index, pointIJK, pointLPS: currentPos });
139
+ pointsInShape.push({
140
+ value,
141
+ index,
142
+ pointIJK,
143
+ pointLPS: currentPos.slice(),
144
+ });
140
145
  if (callback) {
141
146
  callback({ value, index, pointIJK, pointLPS: currentPos });
142
147
  }