Closed fawick closed 8 years ago
From what I understood from https://www.w3.org/TR/SVG11/shapes.html#PointsBNF, the coordinates for polylines and polygons may consist of floating point numbers.
I wonder why svgo uses []int instead of []float in func (svg *SVG) Polyline(x []int, y []int, s ...string).
[]int
[]float
func (svg *SVG) Polyline(x []int, y []int, s ...string)
You may use the svgo/float package.
Oh, cool, thanks, that's just what I was looking for! I did not grok that ./float was not yet another example.
./float
From what I understood from https://www.w3.org/TR/SVG11/shapes.html#PointsBNF, the coordinates for polylines and polygons may consist of floating point numbers.
I wonder why svgo uses
[]int
instead of[]float
infunc (svg *SVG) Polyline(x []int, y []int, s ...string)
.