MustParseSVGPath parses an SVG path data string and panics if it fails.
(s string)
| 2073 | |
| 2074 | // MustParseSVGPath parses an SVG path data string and panics if it fails. |
| 2075 | func MustParseSVGPath(s string) *Path { |
| 2076 | p, err := ParseSVGPath(s) |
| 2077 | if err != nil { |
| 2078 | panic(err) |
| 2079 | } |
| 2080 | return p |
| 2081 | } |
| 2082 | |
| 2083 | // ParseSVGPath parses an SVG path data string. |
| 2084 | func ParseSVGPath(s string) (*Path, error) { |