-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotate image panel by 90° #595
Conversation
The display looks a bit strange for me: Maybe try to remove There's a space between the 90 and E.g.
|
There's some strange behaviour when the panel is rectangular. E.g. if I take a panel like on the left and I rotate it 90° it looks like the panel in the centre. Then if I |
src/js/models/panel_model.js
Outdated
var offset_x = viewport.x-offset | ||
var offset_y = viewport.y+offset | ||
|
||
this.cropToRoi({'x': offset_x, 'y': offset_y, 'width': viewport.height, 'height': viewport.width, 'rotation': panelRotationAngle}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me that you don't need this cropToRoi
function here?, and removing it fixes the Undo issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found it necessary for rectangular big images. If we don't crop and simply update width/height, then the image appears more zoomed-in, but for non-big images, then removing this method works properly (see below). As I already had some weird issues, regarding big images, which you couldn't reproduce, can you test on a rectangular big image if you have the same issue ?
Conflicting PR. Removed from build OMERO-plugins-push#201. See the console output for more details.
|
It looks like This is working for me with rectangular images etc.
|
You're right, it is the zoom level that causes the issue. I've corrected it. Thanks ! |
Conflicting PR. Removed from build OMERO-plugins-push#242. See the console output for more details.
--conflicts |
Conflicting PR. Removed from build OMERO-plugins-push#259. See the console output for more details.
|
Both those conflicting PRs are merged now @Rdornier |
Thanks @will-moore for merging the PRs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working fine on merge-ci now, Thanks
Fixes #484
The rotation button at the bottom rotates the image/canvas by steps of 90°