.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. currentmodule:: wx.svg._nanosvg
.. highlight:: python
.. _wx.svg._nanosvg.SVGpath:
==========================================================================================================================================
|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
=================================
.. raw:: html

Inheritance diagram for class
SVGpath:
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGpath.bounds` SVGpath.bounds: list
:attr:`~wx.svg._nanosvg.SVGpath.closed` SVGpath.closed: bool
:attr:`~wx.svg._nanosvg.SVGpath.maxx` SVGpath.maxx: float
:attr:`~wx.svg._nanosvg.SVGpath.maxy` SVGpath.maxy: float
:attr:`~wx.svg._nanosvg.SVGpath.minx` SVGpath.minx: float
:attr:`~wx.svg._nanosvg.SVGpath.miny` SVGpath.miny: float
:attr:`~wx.svg._nanosvg.SVGpath.npts` SVGpath.npts: int
:attr:`~wx.svg._nanosvg.SVGpath.points` SVGpath.points: list
:attr:`~wx.svg._nanosvg.SVGpath.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.
.. attribute:: bounds
SVGpath.bounds: list
Tight bounding box of the shape [minx,miny,maxx,maxy]
.. attribute:: closed
SVGpath.closed: bool
Flag indicating if shapes should be treated as closed
.. attribute:: maxx
SVGpath.maxx: float
.. attribute:: maxy
SVGpath.maxy: float
.. attribute:: minx
SVGpath.minx: float
.. attribute:: miny
SVGpath.miny: float
.. attribute:: npts
SVGpath.npts: int
Number of points
.. attribute:: 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.
.. attribute:: pts
SVGpath.pts: list
Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...
The return value is a list of floats.