Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implemented Canvas Rotation.
Used @Variable-ind 's work as a base for this, where the viewport camera is rotated to make the canvas rotate.
-Changed the zoom label on the top bar (that could be double clicked to be edited) to a button which will be highlighted when hovered over and gave it the pointing finger mouse cursor to make it more discoverable that it can be pressed and edited. It also now only needs a single click to edit.
-Added a matching rotation button that can also be used to edit the rotation.
- Note that the value shown on this is multiplied by -1 to make going up rotate clockwise, which feels more natural. (This is because rotating the camera in one direction makes the canvas rotate in the opposite direction from the camera's perspective)
-Fixed several little things that didn't work quite right with rotation such as as zooming to the mouse location.
-Made moving the selection with the arrow keys move with the canvas rotation considered (snapped to 90 degrees)
-Made fit to frame take the rotation into consideration
-Gave each project their own rotation variables so that switching between projects restores their rotation (the same as with offset and zoom)