fix: enhance preview accept method (#5199)

This commit is contained in:
rodrigobasilio2022 authored and GitHub committed 2025-07-11 17:15:26 -04:00
1 parent df926e2513
commit 540923ad8b
11 files changed
+125 -122

No files matched your search

+7 -7
View File
@@ -38,7 +38,7 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "^1.2.2",
"@cornerstonejs/codec-openjpeg": "^1.2.4",
"@cornerstonejs/codec-openjph": "^2.4.5",
"@cornerstonejs/dicom-image-loader": "^3.30.0",
"@cornerstonejs/dicom-image-loader": "^3.30.3",
"@ohif/core": "3.11.0-beta.82",
"@ohif/ui": "3.11.0-beta.82",
"dcmjs": "^0.42.0",
@@ -51,12 +51,12 @@
},
"dependencies": {
"@babel/runtime": "^7.20.13",
"@cornerstonejs/adapters": "^3.30.0",
"@cornerstonejs/ai": "^3.30.0",
"@cornerstonejs/core": "^3.30.0",
"@cornerstonejs/labelmap-interpolation": "^3.30.0",
"@cornerstonejs/polymorphic-segmentation": "^3.30.0",
"@cornerstonejs/tools": "^3.30.0",
"@cornerstonejs/adapters": "^3.30.3",
"@cornerstonejs/ai": "^3.30.3",
"@cornerstonejs/core": "^3.30.3",
"@cornerstonejs/labelmap-interpolation": "^3.30.3",
"@cornerstonejs/polymorphic-segmentation": "^3.30.3",
"@cornerstonejs/tools": "^3.30.3",
"@itk-wasm/morphological-contour-interpolation": "1.1.0",
"@kitware/vtk.js": "32.12.0",
"html2canvas": "^1.4.1",
+4 -1
View File
@@ -58,7 +58,10 @@ const getLabelmapTools = ({ toolGroupService }) => {
// tools is an object with toolName as the key and tool as the value
Object.keys(tools).forEach(toolName => {
const tool = tools[toolName];
if (tool instanceof cornerstoneTools.LabelmapBaseTool) {
if (
tool instanceof cornerstoneTools.LabelmapBaseTool &&
tool.shouldResolvePreviewRequests()
) {
labelmapTools.push(tool);
}
});