wx.svg._nanosvg.SVGpath¶An SVGpath is essentially just a collection of bezier curves, defined by a set of floating point coordinates. A collection of SVGpaths is accessible from the paths attribute of SVGshape.
Properties Summary¶Tight bounding box of the shape [minx,miny,maxx,maxy] |
|
Flag indicating if shapes should be treated as closed |
|
|
|
|
|
|
|
|
|
Number of points |
|
Cubic bezier points: (x0,y0), [(cpx1,cpx1), (cpx2,cpy2), (x1,y1)], … |
|
Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], … |
Class API¶SVGpath(object)¶An SVGpath is essentially just a collection of bezier curves, defined by a set of floating point coordinates. A collection of SVGpaths is accessible from the paths attribute of SVGshape.
bounds¶Tight bounding box of the shape [minx,miny,maxx,maxy]
closed¶Flag indicating if shapes should be treated as closed
npts¶Number of points
points¶Cubic bezier points: (x0,y0), [(cpx1,cpx1), (cpx2,cpy2), (x1,y1)], … The return value is a list of tuples, each containing an x-y pair.
pts¶Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], … The return value is a list of floats.