diff --git a/extensions/cornerstone-dicom-seg/package.json b/extensions/cornerstone-dicom-seg/package.json index 6c751e1393..d6267e3250 100644 --- a/extensions/cornerstone-dicom-seg/package.json +++ b/extensions/cornerstone-dicom-seg/package.json @@ -46,8 +46,8 @@ }, "dependencies": { "@babel/runtime": "^7.20.13", - "@cornerstonejs/adapters": "^1.70.10", - "@cornerstonejs/core": "^1.70.10", + "@cornerstonejs/adapters": "^1.70.12", + "@cornerstonejs/core": "^1.70.12", "@kitware/vtk.js": "30.3.3", "react-color": "^2.19.3" } diff --git a/extensions/cornerstone-dicom-sr/package.json b/extensions/cornerstone-dicom-sr/package.json index e1c2674d00..1a27b01a1c 100644 --- a/extensions/cornerstone-dicom-sr/package.json +++ b/extensions/cornerstone-dicom-sr/package.json @@ -46,9 +46,9 @@ }, "dependencies": { "@babel/runtime": "^7.20.13", - "@cornerstonejs/adapters": "^1.70.10", - "@cornerstonejs/core": "^1.70.10", - "@cornerstonejs/tools": "^1.70.10", + "@cornerstonejs/adapters": "^1.70.12", + "@cornerstonejs/core": "^1.70.12", + "@cornerstonejs/tools": "^1.70.12", "classnames": "^2.3.2" } } diff --git a/extensions/cornerstone-dynamic-volume/package.json b/extensions/cornerstone-dynamic-volume/package.json index 7dd06a1ad6..243cfe345c 100644 --- a/extensions/cornerstone-dynamic-volume/package.json +++ b/extensions/cornerstone-dynamic-volume/package.json @@ -42,9 +42,9 @@ }, "dependencies": { "@babel/runtime": "^7.20.13", - "@cornerstonejs/core": "^1.70.10", - "@cornerstonejs/streaming-image-volume-loader": "^1.70.10", - "@cornerstonejs/tools": "^1.70.10", + "@cornerstonejs/core": "^1.70.12", + "@cornerstonejs/streaming-image-volume-loader": "^1.70.12", + "@cornerstonejs/tools": "^1.70.12", "classnames": "^2.3.2" } } diff --git a/extensions/cornerstone/package.json b/extensions/cornerstone/package.json index cb87fe45b0..ec2a6258c9 100644 --- a/extensions/cornerstone/package.json +++ b/extensions/cornerstone/package.json @@ -38,7 +38,7 @@ "@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2", "@cornerstonejs/codec-openjpeg": "^1.2.2", "@cornerstonejs/codec-openjph": "^2.4.2", - "@cornerstonejs/dicom-image-loader": "^1.70.10", + "@cornerstonejs/dicom-image-loader": "^1.70.12", "@icr/polyseg-wasm": "^0.4.0", "@ohif/core": "3.8.0-beta.88", "@ohif/ui": "3.8.0-beta.88", @@ -55,10 +55,10 @@ }, "dependencies": { "@babel/runtime": "^7.20.13", - "@cornerstonejs/adapters": "^1.70.10", - "@cornerstonejs/core": "^1.70.10", - "@cornerstonejs/streaming-image-volume-loader": "^1.70.10", - "@cornerstonejs/tools": "^1.70.10", + "@cornerstonejs/adapters": "^1.70.12", + "@cornerstonejs/core": "^1.70.12", + "@cornerstonejs/streaming-image-volume-loader": "^1.70.12", + "@cornerstonejs/tools": "^1.70.12", "@icr/polyseg-wasm": "^0.4.0", "@kitware/vtk.js": "30.3.3", "html2canvas": "^1.4.1", diff --git a/extensions/measurement-tracking/package.json b/extensions/measurement-tracking/package.json index 8302e8d35a..c3ea63cac3 100644 --- a/extensions/measurement-tracking/package.json +++ b/extensions/measurement-tracking/package.json @@ -32,8 +32,8 @@ "start": "yarn run dev" }, "peerDependencies": { - "@cornerstonejs/core": "^1.70.10", - "@cornerstonejs/tools": "^1.70.10", + "@cornerstonejs/core": "^1.70.12", + "@cornerstonejs/tools": "^1.70.12", "@ohif/core": "3.8.0-beta.88", "@ohif/extension-cornerstone-dicom-sr": "3.8.0-beta.88", "@ohif/ui": "3.8.0-beta.88", diff --git a/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/PanelROIThresholdExport.tsx b/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/PanelROIThresholdExport.tsx index bcbe0a4a7f..a16eaa8122 100644 --- a/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/PanelROIThresholdExport.tsx +++ b/extensions/tmtv/src/Panels/PanelROIThresholdSegmentation/PanelROIThresholdExport.tsx @@ -76,7 +76,7 @@ export default function PanelRoiThresholdSegmentation({ servicesManager, command } }; - eventTarget.addEventListenerDebounced(Enums.Events.SEGMENTATION_DATA_MODIFIED, callback, 300); + eventTarget.addEventListenerDebounced(Enums.Events.SEGMENTATION_DATA_MODIFIED, callback, 250); return () => { eventTarget.removeEventListenerDebounced(Enums.Events.SEGMENTATION_DATA_MODIFIED, callback); diff --git a/extensions/tmtv/src/commandsModule.js b/extensions/tmtv/src/commandsModule.js index dfca7569f5..d948f46a99 100644 --- a/extensions/tmtv/src/commandsModule.js +++ b/extensions/tmtv/src/commandsModule.js @@ -316,10 +316,28 @@ const commandsModule = ({ servicesManager, commandsManager, extensionManager }) metadata: referencedVolume.metadata, }; + // metadata in annotations has enabledElement which is not serializable + // we need to remove it + // Todo: we should probably have a sanitization function for this + const annotationsToSend = annotations.map(annotation => { + return { + ...annotation, + metadata: { + ...annotation.metadata, + enabledElement: { + ...annotation.metadata.enabledElement, + viewport: null, + renderingEngine: null, + element: null, + }, + }, + }; + }); + const suvPeak = await workerManager.executeTask('suv-peak-worker', 'calculateSuvPeak', { labelmapProps, referenceVolumeProps, - annotations, + annotations: annotationsToSend, segmentIndex, }); diff --git a/platform/app/package.json b/platform/app/package.json index 0838c0d10f..03c1509840 100644 --- a/platform/app/package.json +++ b/platform/app/package.json @@ -54,7 +54,7 @@ "@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2", "@cornerstonejs/codec-openjpeg": "^1.2.2", "@cornerstonejs/codec-openjph": "^2.4.5", - "@cornerstonejs/dicom-image-loader": "^1.70.10", + "@cornerstonejs/dicom-image-loader": "^1.70.12", "@emotion/serialize": "^1.1.3", "@ohif/core": "3.8.0-beta.88", "@ohif/extension-cornerstone": "3.8.0-beta.88", diff --git a/platform/core/package.json b/platform/core/package.json index bcf571d75d..95e4ec491f 100644 --- a/platform/core/package.json +++ b/platform/core/package.json @@ -37,7 +37,7 @@ "@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2", "@cornerstonejs/codec-openjpeg": "^1.2.2", "@cornerstonejs/codec-openjph": "^2.4.2", - "@cornerstonejs/dicom-image-loader": "^1.70.10", + "@cornerstonejs/dicom-image-loader": "^1.70.12", "@ohif/ui": "3.8.0-beta.88", "cornerstone-math": "0.1.9", "dicom-parser": "^1.8.21"