From dd51a599c9b1e52e1479d8a6f6e7d802431cf8c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20St=C3=B6ckl?= Date: Wed, 28 Aug 2019 19:07:43 +0200 Subject: updated SVG comments --- svgbasic.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/svgbasic.go b/svgbasic.go index 51a93fe..f75d69f 100644 --- a/svgbasic.go +++ b/svgbasic.go @@ -160,7 +160,7 @@ func pathParse(pathStr string) (segs []SVGBasicSegmentType, err error) { setup(2) case 'Q', 'q': // Absolute/relative quadratic curve: x0, y0, x1, y1 setup(4) - case 'V', 'v': // Absolute/relative vertical line to: x + case 'V', 'v': // Absolute/relative vertical line to: y setup(1) case 'Z', 'z': // closepath instruction (takes no arguments) segs = append(segs, seg) @@ -201,7 +201,8 @@ type SVGBasicType struct { // information generated by jSignature, is supported. The returned path data // includes only the commands 'M' (absolute moveto: x, y), 'L' (absolute // lineto: x, y), 'C' (absolute cubic Bézier curve: cx0, cy0, cx1, cy1, -// x1,y1) and 'Z' (closepath). +// x1,y1), 'Q' (absolute quadratic Bézier curve: x0, y0, x1, y1) and 'Z' +// (closepath). func SVGBasicParse(buf []byte) (sig SVGBasicType, err error) { type pathType struct { D string `xml:"d,attr"` -- cgit v1.2.1-24-ge1ad