diff options
author | Richard Stöckl <richard.stoeckl@aon.at> | 2019-08-28 19:07:43 +0200 |
---|---|---|
committer | Richard Stöckl <richard.stoeckl@aon.at> | 2019-08-28 19:07:43 +0200 |
commit | dd51a599c9b1e52e1479d8a6f6e7d802431cf8c4 (patch) | |
tree | d7438d87378f32dbd40c618dc8e3f340e78c252d | |
parent | 761de3879c5b4b3e0b7d2d9d30ced3aa56f8a39d (diff) |
updated SVG comments
-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"` |