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

rotation is not working properly when we need multiple angles.. #1276

Closed
patson12 opened this issue Jul 23, 2022 · 1 comment
Closed

rotation is not working properly when we need multiple angles.. #1276

patson12 opened this issue Jul 23, 2022 · 1 comment

Comments

@patson12
Copy link

patson12 commented Jul 23, 2022

Bug report

i am working on guage .. needle is not rotating correctly .. it works like if first rotate angle is 30 then needle goes to 30 degree then next value is 50 then it starts from 30 angle and goest to 30+50= 80 and so on. no getting it exact angle..i have fixed centerx and centery point ..rotation is not working properly exactly it should be..

Fiddle

https://jsfiddle.net/harshadpatson/vjzywu1d/10/

Explanation

angle is not working if there is multiple angle.. new angle is added in old and so .. on

@Fuzzyma
Copy link
Member

Fuzzyma commented Jul 24, 2022

Try .transform({ rotate: angle, originX: centerX, originY: centerY}) instead. However, your center is way off so it still looks strange

@Fuzzyma Fuzzyma closed this as completed Sep 3, 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