[OHIF-248] - Update cornerstoneTools version to get handle rendering improvements. (#1854)
* Only process SR on consumption of viewport. * Hide handles whilst moving + correct hide handles on hover. * Up CST version * Update cst * Remove added cornerstone viewport checks
This commit is contained in:
1 parent
0e6c9258b7
commit
61fc093fc5
10 files changed
+18
-13
No files matched your search
@@ -33,7 +33,7 @@
|
||||
"@ohif/ui": "^0.50.0",
|
||||
"cornerstone-core": "^2.3.0",
|
||||
"cornerstone-math": "^0.1.8",
|
||||
"cornerstone-tools": "4.16.1",
|
||||
"cornerstone-tools": "4.17.0",
|
||||
"cornerstone-wado-image-loader": "^3.1.2",
|
||||
"dcmjs": "0.14.2",
|
||||
"dicom-parser": "^1.8.3",
|
||||
|
||||
@@ -163,6 +163,7 @@ export default function init({ servicesManager, configuration }) {
|
||||
/**
|
||||
* drawHandles - Never/Always show handles
|
||||
* drawHandlesOnHover - Only show handles on handle hover (pointNearHandle)
|
||||
* hideHandlesIfMoving - Hides the handles whilst you are moving them, for better visibility.
|
||||
*
|
||||
* Does not apply to tools where handles aren't placed in predictable
|
||||
* locations.
|
||||
@@ -173,8 +174,12 @@ export default function init({ servicesManager, configuration }) {
|
||||
) {
|
||||
if (props.configuration) {
|
||||
parsedProps.configuration.drawHandlesOnHover = true;
|
||||
parsedProps.configuration.hideHandlesIfMoving = true;
|
||||
} else {
|
||||
parsedProps.configuration = { drawHandlesOnHover: true };
|
||||
parsedProps.configuration = {
|
||||
drawHandlesOnHover: true,
|
||||
hideHandlesIfMoving: true,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user