other
Key Changes:
connectToolsToMeasurementServiceparameters: TheconnectToolsToMeasurementServicefunction from the@ohif/cornerstone-extensionsnow take different arguments.data-viewportIdThedata-viewportIdnaming was not compliant with react and was causing warnings. Rename references todata-viewportid.setIsReferenceViewableis no longer available or required by ViewportGridService. Instead, the cornerstone viewports themselves provide the isReferenceViewable. This occurs because there were a lot more deciding issues to navigate to viewports than could be added to viewport grid service.JUMP_TO_MEASUREMENT_VIEWPORTandJUMP_TO_MEASUREMENT_LAYOUTare combined intoJUMP_TO_MEASUREMENTwith no consume event. Only the single event is fired. This will need to be handled to redirect the changes to the appropriate viewport type as it was not possible to figure that out with generic information available inViewportGridService
Migration Steps:
-
Update
connectToolsToMeasurementServiceMethod Calls:- Now the connectToolsToMeasurementService receives all service object arguments (servicesManager, commandsManager and extensionManager).
// Before
- connectToolsToMeasurementService(servicesManager);
// After
+ connectToolsToMeasurementService({
+ servicesManager,
+ commandsManager,
+ extensionsManager
+ });
Images sort by position patient
The ImageSet sort has been modified: images are now sorted by ImagePositionPatient by default. If ImagePositionPatient is not available, the sort will fall back to InstanceNumber.
To revert to the previous sorting method, you can add the customization instanceSortingCriteria as shown below:
customizationService.setCustomizations({
'instanceSortingCriteria': {
$set: {defaultSortFunctionName: 'default'},
},
});