Skip to content
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

Is there a way to rotate the canvas? #25

Open
akashdeepsinghal opened this issue Jul 16, 2021 · 5 comments
Open

Is there a way to rotate the canvas? #25

akashdeepsinghal opened this issue Jul 16, 2021 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@akashdeepsinghal
Copy link

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

@vinothpandian
Copy link
Owner

Very interesting use case!

I'll try out something this weekend. Incase you figure out a solution please send a pull request.

@vinothpandian vinothpandian added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jul 16, 2021
@akashdeepsinghal
Copy link
Author

Hi Vinoth,

Did you get a chance to look at it? Would really appreciate.

@vinothpandian
Copy link
Owner

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.

@akashdeepsinghal
Copy link
Author

Hey @vinothpandian
If possible, can you please look into it? This would be really really helpful for us. 🙏🏻

@vinothpandian
Copy link
Owner

@akashdeepsinghal Sure. I will try to add this feature in the upcoming version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants