-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
New version of bug #13 fix #15
Conversation
@puzrin Now if rx~=0 or ry~=0 the arc is replaced by a line segment as you suggested, but I can't check if this is consistent with what chrome is doing because if the transform is not reversible, like scale=(0,2) the path is not displayed (even with |
It's better to squash into single comit & update codig style to make tests pass ( The second. I don't see radii correction as in https://github.com/fontello/svgpath/blob/master/lib/a2c.js#L131-L140. That's important. I think, after you try to add those, your signatures can change, because you do no pass size info now ((x2-x1)/2 and (y2-y1)/2). |
We do not rely on chrome. We follow SVG implementation notes http://www.w3.org/TR/SVG/implnote.html#ArcCorrectionOutOfRangeRadii. It says arc should be replaced with line if rx or ry = 0. It also says in other chapters that arc should be dropped if end point === start point. |
Sorry I don't have so much time right now ... I'll move to other things probably.
The resulting radii are positif by construction and if they are almost the same they are corrected to be the same (circle case). if some other corrections should be done, you can probably add them. Thanks. |
No problem. Let's keep it open until we do the rest. That will be complete at the start of nearest week. |
81de040
to
c17ff59
Compare
Could you squash this PR to single commit ( |
@kpym could you join all to single commit? |
2f6d1df
to
b78685d
Compare
b78685d
to
14efddb
Compare
Is it ok now ? |
Yes, thank you for you patience! Did you checked arc transforms results visually or i should do it for sure? |
I have checked a lot, but better you check some also. |
Ok. Can i take 2 days before release or it's urgent? |
Nothing is urgent for me ;) |
I have created a new module
ellipse
where the hard part of the calculation is.I have reverted my changes to
matrix
module, because you don't like mycopy
method ;)