From 781015c4528d108f57fa793f1cd55afb6fd1a95a Mon Sep 17 00:00:00 2001 From: Alireza Date: Mon, 22 Apr 2024 12:17:05 -0400 Subject: [PATCH] Update dependencies in package.json files --- extensions/cornerstone-dicom-seg/package.json | 4 ++-- extensions/cornerstone-dicom-sr/package.json | 6 +++--- .../cornerstone-dynamic-volume/package.json | 6 +++--- extensions/cornerstone/package.json | 10 +++++----- extensions/measurement-tracking/package.json | 4 ++-- .../PanelROIThresholdExport.tsx | 2 +- extensions/tmtv/src/commandsModule.js | 20 ++++++++++++++++++- platform/app/package.json | 2 +- platform/core/package.json | 2 +- 9 files changed, 37 insertions(+), 19 deletions(-) diff --git a/extensions/cornerstone-dicom-seg/package.json b/extensions/cornerstone-dicom-seg/package.json index 6c751e13933..d6267e32504 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 e1c2674d003..1a27b01a1c1 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 7dd06a1ad66..243cfe345c3 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 cb87fe45b09..ec2a6258c93 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 8302e8d35aa..c3ea63cac3a 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 bcbe0a4a7f3..a16eaa8122f 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 dfca7569f5e..d948f46a99a 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 0838c0d10f1..03c15098408 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 bcf571d75dd..95e4ec491f5 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"