fix: Call load if necessary before rehydration prompt. Jump to first measurement on rehydration (OHIF-369) (#2184)
This commit is contained in:
1 parent
2f4cba28a5
commit
e0a31caebf
9 files changed
+59
-49
No files matched your search
@@ -122,9 +122,7 @@ function _load(displaySet, servicesManager, extensionManager) {
|
||||
);
|
||||
|
||||
displaySet.isHydrated = false;
|
||||
displaySet.isRehydratable = isRehydratable(displaySet, mappings)
|
||||
? true
|
||||
: false;
|
||||
displaySet.isRehydratable = isRehydratable(displaySet, mappings);
|
||||
displaySet.isLoaded = true;
|
||||
|
||||
// Check currently added displaySets and add measurements if the sources exist.
|
||||
|
||||
@@ -3,7 +3,7 @@ import { adapters } from 'dcmjs';
|
||||
const cornerstoneAdapters = adapters.Cornerstone;
|
||||
|
||||
/**
|
||||
* Checks if the given `displySet`can be rehydrated into the `MeasurementService`.
|
||||
* Checks if the given `displaySet`can be rehydrated into the `MeasurementService`.
|
||||
*
|
||||
* @param {object} displaySet The SR `displaySet` to check.
|
||||
* @param {object[]} mappings The CornerstoneTools 4 mappings to the `MeasurementService`.
|
||||
|
||||
@@ -205,6 +205,8 @@ function OHIFCornerstoneSRViewport({
|
||||
setTrackingUniqueIdentifiersForElement(targetElement);
|
||||
setElement(targetElement);
|
||||
|
||||
// TODO: Enabled Element appears to be incorrect here, it should be called
|
||||
// 'element' since it is the DOM element, not the enabledElement object
|
||||
const OHIFCornerstoneEnabledElementEvent = new CustomEvent(
|
||||
'ohif-cornerstone-enabled-element-event',
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user