react-sketch-canvas
react-sketch-canvas copied to clipboard
Is there a way to rotate the canvas?
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I am using the module to annotate images by setting the image as the background and canvas as a layer on top of the image. Now when I am trying to rotate the canvas, the background image is rotated but the pen behaves weird by moving in different directions.
Can we please have an option for a rotating background?
Here is the small video snippet I created for a better understanding:- https://www.loom.com/share/28effbb145bf4fd88af7bc4f2bc60d52
Very interesting use case!
I'll try out something this weekend. Incase you figure out a solution please send a pull request.
Hi Vinoth,
Did you get a chance to look at it? Would really appreciate.
Hi @akashdeepsinghal. Sorry, I did not have the time to look at it.
As a workaround, for now, you can use the underlying Canvas implementation and update the paths on rotation. You can look at issue #14 as a reference.
Once I have time (maybe October), I will add a flag to enable rotation.
Hey @vinothpandian If possible, can you please look into it? This would be really really helpful for us. 🙏🏻
@akashdeepsinghal Sure. I will try to add this feature in the upcoming version