Skip to content

Commit

Permalink
fix path drawing to ignore paths with empty instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusrdSantos authored and Sharcoux committed Nov 19, 2023
1 parent 39786cd commit e501eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,9 @@ const runnersToPage = (
});
},
async path(element) {
if (!element.svgAttributes.d) return
// See https://jsbin.com/kawifomupa/edit?html,output and
page.drawSvgPath(element.svgAttributes.d!, {
page.drawSvgPath(element.svgAttributes.d, {
x: element.svgAttributes.x || 0,
y: element.svgAttributes.y || 0,
borderColor: element.svgAttributes.stroke,
Expand Down

0 comments on commit e501eec

Please sign in to comment.