diff options
-rw-r--r-- | svgbasic.go | 5 |
1 files 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"` |