View in #cornerstone3d on Slack
@Enas_Mostafa: Hello,
I’m encountering an issue after upgrading to Cornerstone 2.
The left rotation (e.g., -90 degrees) is not working as expected.
Here’s the code I’m using:
const presentation = viewport.getViewPresentation();
const { rotation: currentRotation } = presentation;
const newRotation = (currentRotation + rotation) % 360;
viewport.setViewPresentation({ rotation: newRotation });
viewport.render();
@Alireza_Sedghi: Does this fix it https://github.com/OHIF/Viewers/pull/4533
#4533 support cycling rotateViewportCCW
@Enas_Mostafa: Thank you so much will check it