fix(Volume3DViewport): Replacing the volume 3D viewport with another reconstructable series (#3281)
* fix(Volume3DViewport) - Replacing the volume 3D viewport with another reconstructable series fails - updated cornerstone3D core package dependency - checked for null presentations when setting presentations - added viewportIndex as a dependency for enabling and disabling an OHIFCornerstoneViewport * PR feedback - removed viewportIndex useEffect dependency for enabling/disabling OHIFCornerstoneViewport
This commit is contained in:
1 parent
d3200a6383
commit
ed7ded05db
5 files changed
+13
-5
No files matched your search
@@ -46,7 +46,7 @@
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"classnames": "^2.3.2",
|
||||
"@cornerstonejs/adapters": "^0.4.1",
|
||||
"@cornerstonejs/core": "^0.36.2",
|
||||
"@cornerstonejs/core": "^0.36.5",
|
||||
"@cornerstonejs/tools": "^0.55.1"
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.20.13",
|
||||
"@cornerstonejs/adapters": "^0.4.1",
|
||||
"@cornerstonejs/core": "^0.36.2",
|
||||
"@cornerstonejs/core": "^0.36.5",
|
||||
"@cornerstonejs/streaming-image-volume-loader": "^0.15.1",
|
||||
"@cornerstonejs/tools": "^0.55.1",
|
||||
"@kitware/vtk.js": "26.5.6",
|
||||
|
||||
@@ -173,9 +173,9 @@ class CornerstoneViewportService extends PubSubService
|
||||
}
|
||||
|
||||
public setPresentations(viewport, presentations?: Presentations): void {
|
||||
const properties = presentations.lutPresentation?.properties;
|
||||
const properties = presentations?.lutPresentation?.properties;
|
||||
if (properties) viewport.setProperties(properties);
|
||||
const camera = presentations.positionPresentation?.camera;
|
||||
const camera = presentations?.positionPresentation?.camera;
|
||||
if (camera) viewport.setCamera(camera);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"peerDependencies": {
|
||||
"@ohif/core": "^3.0.0",
|
||||
"classnames": "^2.3.2",
|
||||
"@cornerstonejs/core": "^0.36.2",
|
||||
"@cornerstonejs/core": "^0.36.5",
|
||||
"@cornerstonejs/tools": "^0.55.1",
|
||||
"@ohif/extension-cornerstone-dicom-sr": "^3.0.0",
|
||||
"dcmjs": "^0.29.4",
|
||||
|
||||
Reference in new issue
Block a user