@cornerstonejs/tools 4.13.6 → 4.13.7
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/esm/utilities/segmentation/getOrCreateImageVolume.js +1 -1
- package/dist/esm/utilities/segmentation/getOrCreateSegmentationVolume.d.ts +1 -1
- package/dist/esm/utilities/segmentation/getOrCreateSegmentationVolume.js +2 -2
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cache, volumeLoader, utilities as csUtils, } from '@cornerstonejs/core';
|
|
2
2
|
function getOrCreateImageVolume(referencedImageIds) {
|
|
3
|
-
if (!referencedImageIds
|
|
3
|
+
if (!referencedImageIds?.length) {
|
|
4
4
|
return;
|
|
5
5
|
}
|
|
6
6
|
const isValidVolume = csUtils.isValidVolume(referencedImageIds);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Types } from '@cornerstonejs/core';
|
|
2
|
-
declare function getOrCreateSegmentationVolume(segmentationId:
|
|
2
|
+
declare function getOrCreateSegmentationVolume(segmentationId: string): Types.IImageVolume | undefined;
|
|
3
3
|
export default getOrCreateSegmentationVolume;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cache, volumeLoader, utilities, } from '@cornerstonejs/core';
|
|
1
|
+
import { cache, volumeLoader, utilities, ImageVolume, } from '@cornerstonejs/core';
|
|
2
2
|
import { getSegmentation } from '../../stateManagement/segmentation/getSegmentation';
|
|
3
3
|
function getOrCreateSegmentationVolume(segmentationId) {
|
|
4
4
|
const { representationData } = getSegmentation(segmentationId);
|
|
@@ -12,7 +12,7 @@ function getOrCreateSegmentationVolume(segmentationId) {
|
|
|
12
12
|
}
|
|
13
13
|
const { imageIds: labelmapImageIds } = representationData.Labelmap;
|
|
14
14
|
volumeId = cache.generateVolumeId(labelmapImageIds);
|
|
15
|
-
if (!labelmapImageIds || labelmapImageIds.length ===
|
|
15
|
+
if (!labelmapImageIds || labelmapImageIds.length === 0) {
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
18
|
const isValidVolume = utilities.isValidVolume(labelmapImageIds);
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.13.
|
|
1
|
+
export declare const version = "4.13.7";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.13.
|
|
1
|
+
export const version = '4.13.7';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.7",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"canvas": "3.2.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "4.13.
|
|
111
|
+
"@cornerstonejs/core": "4.13.7",
|
|
112
112
|
"@kitware/vtk.js": "34.15.1",
|
|
113
113
|
"@types/d3-array": "3.2.1",
|
|
114
114
|
"@types/d3-interpolate": "3.0.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"type": "individual",
|
|
128
128
|
"url": "https://ohif.org/donate"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "ee360e7ddba785f4980cc4a6d79c058d7d313361"
|
|
131
131
|
}
|