fix(reference-lines): Update reference lines for the latest changes in cornerstone tools

This commit is contained in:
Evren Ozkan committed 2018-11-29 16:02:33 -05:00
1 parent c7565c7037
commit 5a4deedda8
3 files changed
+10 -4

No files matched your search

@@ -455,7 +455,9 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
if (OHIF.viewer.refLinesEnabled) {
// ... and if reference lines are globally enabled, let cornerstoneTools know.
cornerstoneTools.referenceLines.tool.enable(element, OHIF.viewer.updateImageSynchronizer);
cornerstoneTools.setToolEnabledForElement(element, 'referenceLines', {
synchronizationContext: OHIF.viewer.updateImageSynchronizer
});
}
// If the crosshairs tool is active, update the synchronizer