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

Fix Circle toSVG method adding an incorrect double quote #5085

Merged
merged 2 commits into from
Jul 12, 2018

Conversation

nmorel
Copy link
Contributor

@nmorel nmorel commented Jul 4, 2018

I also wonder if the condition if (angle === 0) should be changed.
I encountered the double quote even though my circle was "full".
The calculated angle was 1.4210854715202004e-14.
The condition could be something like if (angle < 0.001 && angle > -0.001) ?

@asturur
Copy link
Member

asturur commented Jul 6, 2018

Can you open a different issue for the angle? we should try to make the angle be calculated as 0 and figure out where the approximation error come from

@asturur
Copy link
Member

asturur commented Jul 6, 2018

Also since we do not have tests for this case, otherwise it would have fail, would you add one?

@asturur
Copy link
Member

asturur commented Jul 10, 2018

Perfect!

@asturur
Copy link
Member

asturur commented Jul 10, 2018

oh there is some linting issue.
Can you try to run npm run lint_tests and see the output?

@nmorel
Copy link
Contributor Author

nmorel commented Jul 10, 2018

Looking at Travis, it seems the issue is in master branch, on your last commit

@asturur
Copy link
Member

asturur commented Jul 12, 2018

fixed lint on master, rebuilding this and if is green, merging.

@asturur asturur merged commit efa490f into fabricjs:master Jul 12, 2018
durga598 pushed a commit to durga598/fabric.js that referenced this pull request Jul 14, 2018
* Fix Circle toSVG method adding an incorrect double quote

* Add tests for Circle.toSVG
@asturur asturur mentioned this pull request Aug 5, 2018
thiagocunha pushed a commit to thiagocunha/fabric.js that referenced this pull request Nov 18, 2019
* Fix Circle toSVG method adding an incorrect double quote

* Add tests for Circle.toSVG
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

Successfully merging this pull request may close these issues.

2 participants