wip on react transition

This commit is contained in:
Erik Ziegler committed 2018-11-30 11:40:16 -05:00
1 parent 5a4deedda8
commit 7425c2beb8
36 files changed
+1676 -251

No files matched your search

@@ -17,7 +17,7 @@ export function updateOrientationMarkers(element, viewport) {
// Updates the orientation labels on the viewport
const enabledElement = cornerstone.getEnabledElement(element);
const imagePlane = cornerstone.metaData.get('imagePlane', enabledElement.image.imageId);
if (!imagePlane || !imagePlane.rowCosines || !imagePlane.columnCosines) {
return;
}
@@ -42,6 +42,8 @@ export function updateOrientationMarkers(element, viewport) {
markers.left = cornerstoneTools.orientation.invertOrientationString(markers.left);
}
// TODO[react]: This should set values in the redux store
// Get the viewport orientation marker DOM elements
const viewportOrientationMarkers = $(element).siblings('.viewportOrientationMarkers');
const topMarker = viewportOrientationMarkers.find('.topMid');