phoenix_title 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.


class_hierarchy Class Hierarchy

Inheritance diagram for class SVGpath:

property_summary Properties Summary

bounds

SVGpath.bounds: list

closed

SVGpath.closed: bool

maxx

SVGpath.maxx: float

maxy

SVGpath.maxy: float

minx

SVGpath.minx: float

miny

SVGpath.miny: float

npts

SVGpath.npts: int

points

SVGpath.points: list

pts

SVGpath.pts: list


api Class API

class 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.


Properties

bounds

SVGpath.bounds: list Tight bounding box of the shape [minx,miny,maxx,maxy]



closed

SVGpath.closed: bool Flag indicating if shapes should be treated as closed



maxx

SVGpath.maxx: float



maxy

SVGpath.maxy: float



minx

SVGpath.minx: float



miny

SVGpath.miny: float



npts

SVGpath.npts: int Number of points



points

SVGpath.points: list

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

SVGpath.pts: list

Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], … The return value is a list of floats.