diff options
author | Joe Westcott <joewestcott@users.noreply.github.com> | 2019-02-04 14:21:12 +0000 |
---|---|---|
committer | Joe Westcott <joewestcott@users.noreply.github.com> | 2019-02-04 14:21:12 +0000 |
commit | f0fc8388f6baa9b9e425e64bcf56dba615ece2c8 (patch) | |
tree | 84ad731a86c53571bf507009ad9437a5aab00d14 /svgwrite.go | |
parent | 82f8581de0da69bda7696183c7e9d890be24fa63 (diff) |
SVG closepath support
Diffstat (limited to 'svgwrite.go')
-rw-r--r-- | svgwrite.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svgwrite.go b/svgwrite.go index 04f6cb3..7e455fb 100644 --- a/svgwrite.go +++ b/svgwrite.go @@ -50,6 +50,8 @@ func (f *Fpdf) SVGBasicWrite(sb *SVGBasicType, scale float64) { newX, newY = val(4) f.CurveCubic(x, y, cx0, cy0, newX, newY, cx1, cy1, "D") x, y = newX, newY + case 'Z': + f.Line(x, y, originX, originY) default: f.SetErrorf("Unexpected path command '%c'", seg.Cmd) } |