@cornerstonejs/tools 3.28.1 → 3.28.3
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/stateManagement/segmentation/config/segmentationVisibility.js +3 -0
- package/dist/esm/utilities/stackPrefetch/stackContextPrefetch.js +8 -5
- package/dist/esm/utilities/stackPrefetch/stackPrefetch.js +8 -5
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +3 -3
|
@@ -24,6 +24,9 @@ function setSegmentIndexVisibility(viewportId, specifier, segmentIndex, visibili
|
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
representations.forEach((representation) => {
|
|
27
|
+
if (!representation.segments || !representation.segments[segmentIndex]) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
27
30
|
representation.segments[segmentIndex].visible = visibility;
|
|
28
31
|
});
|
|
29
32
|
triggerSegmentationRenderBySegmentationId(specifier.segmentationId);
|
|
@@ -105,11 +105,14 @@ function prefetch(element) {
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
const requestFn = (imageId, options) => {
|
|
108
|
-
const { retrieveOptions = {} } = metaData.get(imageRetrieveMetadataProvider.IMAGE_RETRIEVE_CONFIGURATION, imageId, 'stack');
|
|
109
|
-
|
|
110
|
-
...options,
|
|
111
|
-
retrieveOptions
|
|
112
|
-
}
|
|
108
|
+
const { retrieveOptions = {} } = metaData.get(imageRetrieveMetadataProvider.IMAGE_RETRIEVE_CONFIGURATION, imageId, 'stack') || {};
|
|
109
|
+
options.retrieveOptions = {
|
|
110
|
+
...options.retrieveOptions,
|
|
111
|
+
...(retrieveOptions.default || Object.values(retrieveOptions)?.[0] || {}),
|
|
112
|
+
};
|
|
113
|
+
return imageLoader
|
|
114
|
+
.loadAndCacheImage(imageId, options)
|
|
115
|
+
.then(() => doneCallback(imageId));
|
|
113
116
|
};
|
|
114
117
|
stackPrefetch.indicesToRequest.forEach((imageIdIndex) => {
|
|
115
118
|
const imageId = stack.imageIds[imageIdIndex];
|
|
@@ -88,11 +88,14 @@ function prefetch(element) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
const requestFn = (imageId, options) => {
|
|
91
|
-
const { retrieveOptions = {} } = metaData.get(imageRetrieveMetadataProvider.IMAGE_RETRIEVE_CONFIGURATION, imageId, 'stack');
|
|
92
|
-
|
|
93
|
-
...options,
|
|
94
|
-
retrieveOptions
|
|
95
|
-
}
|
|
91
|
+
const { retrieveOptions = {} } = metaData.get(imageRetrieveMetadataProvider.IMAGE_RETRIEVE_CONFIGURATION, imageId, 'stack') || {};
|
|
92
|
+
options.retrieveOptions = {
|
|
93
|
+
...options.retrieveOptions,
|
|
94
|
+
...(retrieveOptions.default || Object.values(retrieveOptions)?.[0] || {}),
|
|
95
|
+
};
|
|
96
|
+
return imageLoader
|
|
97
|
+
.loadAndCacheImage(imageId, options)
|
|
98
|
+
.then(() => doneCallback(imageId));
|
|
96
99
|
};
|
|
97
100
|
imageIdsToPrefetch.forEach((imageId) => {
|
|
98
101
|
const options = {
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.28.
|
|
1
|
+
export declare const version = "3.28.3";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.28.
|
|
1
|
+
export const version = '3.28.3';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "3.28.
|
|
3
|
+
"version": "3.28.3",
|
|
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.1.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "^3.28.
|
|
111
|
+
"@cornerstonejs/core": "^3.28.3",
|
|
112
112
|
"@kitware/vtk.js": "32.12.1",
|
|
113
113
|
"@types/d3-array": "^3.0.4",
|
|
114
114
|
"@types/d3-interpolate": "^3.0.1",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"type": "individual",
|
|
128
128
|
"url": "https://ohif.org/donate"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "06f1b0e842571749290d9409ebe41b99315b1ec5"
|
|
131
131
|
}
|