.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2025 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

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>SVGpath</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.svg._nanosvg.SVGpath_inheritance.svg" alt="Inheritance diagram of SVGpath" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.svg._nanosvg.SVGpath.html" title="An SVGpath is essentially just a collection of bezier curves, defined by a" alt="" coords="5,5,226,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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


