-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
I have an issue with exporting a pie chart svg using jspdf 1.5.3.
This issue can be reproduced using the examples/canvg_context2d/bar_graph_with_text_and_lines.html using the following svg:
<svg id="svg" width="815.29" height="481.78" xmlns="http://www.w3.org/2000/svg">
<g transform="translate(0, 0)">
<g transform="translate(440.5, 168.5)">
<g>
<path fill="#5cbae6" d="M7.841413454940502e-15,-128.06A128.06,128.06 0 1,1 -126.47379768010367,-20.093334725032697L0,0Z" />
</g>
<g>
<path fill="#b6d957" d="M-126.47379768010367,-20.093334725032697A128.06,128.06 0 0,1 -2.3524240364821506e-14,-128.06L0,0Z" />
</g>
</g>
</g>
</svg>
The resulting pdf doesn't have the correct arcs drawn.
This was not reproducible using the 1.4.1 version of jspdf before the context2d refactor.