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

typescript error for Konva.getAngle #1663

Closed
bonnie57 opened this issue Nov 7, 2023 · 3 comments
Closed

typescript error for Konva.getAngle #1663

bonnie57 opened this issue Nov 7, 2023 · 3 comments

Comments

@bonnie57
Copy link

bonnie57 commented Nov 7, 2023

I find there is ts error for Konva.getAngle. Because I use (Konva as any).getAngle and I can access this method. But I cannot directly access this method, it will throw Property  getAngle  does not exist on type  typeof Konva

@lavrton
Copy link
Member

lavrton commented Nov 7, 2023

Hmm. It works just fine for me. Can you make a repo to reproduce?

Why do you use this method?

@bonnie57
Copy link
Author

bonnie57 commented Nov 8, 2023

Sure, This is Code.
The reason is that I want to implement to rotating shape around the center.
This is official Demo.

lavrton added a commit that referenced this issue Nov 8, 2023
@lavrton
Copy link
Member

lavrton commented Nov 8, 2023

I see now. Thanks for the demo. I will release it later.

@lavrton lavrton closed this as completed Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants