Closed xiaoiver closed 2 years ago
Thanks for the report, I believe this must be related to the latest optimizations, but will look into it asap.
Thanks for the report, I believe this must be related to the latest optimizations, but will look into it asap.
Thanks, I think the problem came from the following lines which calculate control points of cubic bezier: https://github.com/thednp/svg-path-commander/blob/master/src/process/lineToCubic.js#L24-L29
Exactly.
@xiaoiver please test latest master, it's solved for me.
@xiaoiver can you please confirm the fix? We're ready to push the next v1.0.5 now.
@xiaoiver can you please confirm the fix? We're ready to push the next v1.0.5 now.
I found another bug about converting A command to C, this is my test path:
M7.34788079488412e-15,-120A120,120,0,0,1,95.46267154065043,-72.71092312934756L59.66416971290652,-45.44432695584223A75,75,0,0,0,4.592425496802574e-15,-75Z
It should look like this:
But after converting to curve, it became this:
I found the problem, it's the arcToCubic
that's messing things up, also an issue introduced with the ES5->ES6 changes.
Will come back with a fix asap. Stay tuned.
@xiaoiver please test. Now this works for me
Path for testing:
after
toCurve
, I changed some CSS style: