@cornerstonejs/tools 1.61.4 → 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/dist/cjs/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js +1 -0
- package/dist/cjs/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js.map +1 -1
- package/dist/cjs/utilities/pointInShapeCallback.d.ts +1 -1
- package/dist/cjs/utilities/pointInShapeCallback.js +6 -1
- package/dist/cjs/utilities/pointInShapeCallback.js.map +1 -1
- package/dist/esm/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js +1 -0
- package/dist/esm/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.js.map +1 -1
- package/dist/esm/utilities/pointInShapeCallback.js +6 -1
- package/dist/esm/utilities/pointInShapeCallback.js.map +1 -1
- package/dist/types/utilities/pointInShapeCallback.d.ts +1 -1
- package/dist/types/utilities/pointInShapeCallback.d.ts.map +1 -1
- package/dist/umd/985.index.js +1 -1
- package/dist/umd/985.index.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +3 -3
- package/src/eventListeners/annotations/contourSegmentation/contourSegmentationCompleted.ts +1 -0
- package/src/utilities/pointInShapeCallback.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "1.61.
|
|
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.
|
|
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": "
|
|
62
|
+
"gitHead": "4d53b47bb74d03a1858b78489b38996e7d537adc"
|
|
63
63
|
}
|
|
@@ -220,6 +220,7 @@ function createPolylineHole(
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
addChildAnnotation(targetAnnotation, holeAnnotation);
|
|
223
|
+
contourSegUtils.removeContourSegmentationAnnotation(holeAnnotation);
|
|
223
224
|
|
|
224
225
|
const { element } = viewport;
|
|
225
226
|
const enabledElement = getEnabledElement(element);
|
|
@@ -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({
|
|
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
|
}
|