@cornerstonejs/core 3.26.0 → 3.26.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/dist/esm/RenderingEngine/BaseVolumeViewport.js +3 -2
- package/dist/esm/RenderingEngine/VolumeViewport.js +3 -2
- package/dist/esm/RenderingEngine/helpers/createVolumeActor.js +1 -1
- package/dist/esm/cache/classes/ImageVolume.d.ts +1 -0
- package/dist/esm/cache/classes/ImageVolume.js +3 -2
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -2
|
@@ -706,9 +706,10 @@ class BaseVolumeViewport extends Viewport {
|
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
async setVolumes(volumeInputArray, immediate = false, suppressEvents = false) {
|
|
709
|
-
const
|
|
709
|
+
const volumeId = volumeInputArray[0].volumeId;
|
|
710
|
+
const firstImageVolume = cache.getVolume(volumeId);
|
|
710
711
|
if (!firstImageVolume) {
|
|
711
|
-
throw new Error(`imageVolume with id: ${
|
|
712
|
+
throw new Error(`imageVolume with id: ${volumeId} does not exist, you need to create/allocate the volume first`);
|
|
712
713
|
}
|
|
713
714
|
const FrameOfReferenceUID = firstImageVolume.metadata.FrameOfReferenceUID;
|
|
714
715
|
this._isValidVolumeInputArray(volumeInputArray, FrameOfReferenceUID);
|
|
@@ -84,9 +84,10 @@ class VolumeViewport extends BaseVolumeViewport {
|
|
|
84
84
|
this._useAcquisitionPlaneForViewPlane = true;
|
|
85
85
|
}
|
|
86
86
|
async setVolumes(volumeInputArray, immediate = false, suppressEvents = false) {
|
|
87
|
-
const
|
|
87
|
+
const volumeId = volumeInputArray[0].volumeId;
|
|
88
|
+
const firstImageVolume = cache.getVolume(volumeId);
|
|
88
89
|
if (!firstImageVolume) {
|
|
89
|
-
throw new Error(`imageVolume with id: ${
|
|
90
|
+
throw new Error(`imageVolume with id: ${volumeId} does not exist`);
|
|
90
91
|
}
|
|
91
92
|
if (this._useAcquisitionPlaneForViewPlane) {
|
|
92
93
|
this._setViewPlaneToAcquisitionPlane(firstImageVolume);
|
|
@@ -19,7 +19,7 @@ async function createVolumeActor(props, element, viewportId, suppressEvents = fa
|
|
|
19
19
|
volumeActor.setMapper(volumeMapper);
|
|
20
20
|
const { numberOfComponents } = imageData.get('numberOfComponents');
|
|
21
21
|
const volumeProperty = volumeActor.getProperty();
|
|
22
|
-
volumeProperty.set({ viewportId: viewportId });
|
|
22
|
+
volumeProperty.set({ viewportId: viewportId }, true);
|
|
23
23
|
if (numberOfComponents === 3) {
|
|
24
24
|
volumeActor.getProperty().setIndependentComponents(false);
|
|
25
25
|
}
|
|
@@ -16,6 +16,7 @@ export class ImageVolume {
|
|
|
16
16
|
throw new Error('Data type is required, please provide a data type as string such as "Uint8Array", "Float32Array", etc.');
|
|
17
17
|
}
|
|
18
18
|
let { imageData } = props;
|
|
19
|
+
this.suppressWarnings = true;
|
|
19
20
|
this.imageIds = imageIds;
|
|
20
21
|
this.volumeId = volumeId;
|
|
21
22
|
this.metadata = metadata;
|
|
@@ -47,10 +48,10 @@ export class ImageVolume {
|
|
|
47
48
|
voxelManager: this.voxelManager,
|
|
48
49
|
id: volumeId,
|
|
49
50
|
numberOfComponents: numberOfComponents || 1,
|
|
50
|
-
});
|
|
51
|
+
}, this.suppressWarnings);
|
|
51
52
|
imageData.set({
|
|
52
53
|
hasScalarVolume: false,
|
|
53
|
-
});
|
|
54
|
+
}, this.suppressWarnings);
|
|
54
55
|
this.imageData = imageData;
|
|
55
56
|
this.numFrames = this._getNumFrames();
|
|
56
57
|
this._reprocessImageIds();
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "3.26.
|
|
1
|
+
export declare const version = "3.26.2";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.26.
|
|
1
|
+
export const version = '3.26.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.2",
|
|
4
4
|
"description": "Cornerstone3D Core",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"type": "individual",
|
|
98
98
|
"url": "https://ohif.org/donate"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "1a6e3b0943d84164898586a86e289c13812bf876"
|
|
101
101
|
}
|