fix(segmentation): List surface representations in the segmentation table for 3D views. (#5700)

This was done by using an array of representation types instead of a single type for a panel.
The first element of the array is the primary type of the panel, and the rest are secondary types
that can also be displayed in the panel.

PR feedback:
- added test to check number of segments in side panel for 3D only view
- fixed jumping to segment in 3D only view
- fixed exception when adding contour segment in 3D only view
This commit is contained in:
Joe Boccanfuso authored and GitHub committed 2026-01-13 15:57:44 -05:00
1 parent 83c9ce0f5f
commit 82e6a18735
27 files changed
+356 -293

No files matched your search

+7 -7
View File
@@ -40,7 +40,7 @@
"@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.2",
"@cornerstonejs/codec-openjpeg": "1.3.0",
"@cornerstonejs/codec-openjph": "2.4.7",
"@cornerstonejs/dicom-image-loader": "4.15.6",
"@cornerstonejs/dicom-image-loader": "4.15.7",
"@ohif/core": "3.12.0-beta.121",
"@ohif/ui": "3.12.0-beta.121",
"dcmjs": "0.45.0",
@@ -53,12 +53,12 @@
},
"dependencies": {
"@babel/runtime": "7.28.2",
"@cornerstonejs/adapters": "4.15.6",
"@cornerstonejs/ai": "4.15.6",
"@cornerstonejs/core": "4.15.6",
"@cornerstonejs/labelmap-interpolation": "4.15.6",
"@cornerstonejs/polymorphic-segmentation": "4.15.6",
"@cornerstonejs/tools": "4.15.6",
"@cornerstonejs/adapters": "4.15.7",
"@cornerstonejs/ai": "4.15.7",
"@cornerstonejs/core": "4.15.7",
"@cornerstonejs/labelmap-interpolation": "4.15.7",
"@cornerstonejs/polymorphic-segmentation": "4.15.7",
"@cornerstonejs/tools": "4.15.7",
"@itk-wasm/morphological-contour-interpolation": "1.1.0",
"@kitware/vtk.js": "34.15.1",
"html2canvas": "1.4.1",