An SVG image document.
Users should instantiate this object once for each SVG file they wish to render.
Where the document is anchored. Valid values are numerical, or ‘left’, ‘right’, ‘center’
Where the document is anchored. Valid values are numerical, or ‘top’, ‘bottom’, ‘center’
Maps from id to path definition
Draws the SVG to screen.
Returns a path for the given id, or key error
Returns all the path ids
Indicates if this svg document will use the stencil buffer for rendering
Maps from pattern id to pattern
Render the SVG file without any display lists or transforms. Use draw instead.
The internal color
How to determine the “insideness” of a point. Possible values are “nonzero” and “evenodd”. See mozilla documentation for more details: http://www.w3.org/TR/SVG/painting.html
Read relevant attributes off XML element
Overall opacity (multiplied by other elements)
The color of the surrounding outline
Controls the pattern of dashes and gaps used to stroke path. List of alternating dashes and gaps.
The width of the surrounding outline
Configuration for how to render SVG objects, such as the amount of detail allowed for bezier curves and availability of the stencil buffer
Whether or not stencilling is allowed
The number of line segments into which to subdivide Bezier splines.
The number of line segments into which to subdivide circular and elliptic arcs.
Whether or not framebuffer objects are allowed
The number of stencil bits available
Returns a much more detailed copy of this config
The minimum distance at which neighboring points are merged
Return this transform, multiplied by chain of parents
Add a child to this element class (usually children register with parent)
Children elements
Optional element description. Useful for embedding metadata.
The id of the element
Is this element a definition?
Is this element a pattern?
The parent element
The element style (possibly with inherited traits from parent style)
XML tag this was originally.
Optional element title
Element transforms
Represents a single SVG path. This is usually a distinct shape with a fill pattern, an outline, or both.
returns a tuple describing the bounding box:
(min_x, min_y, max_x, max_y)
Render immediately to screen (no display list). Slow! Consider using SVG.draw(...) instead.
The actual path elements, as a list of vertices
The base shape. Possible values: path, rect, circle, ellipse, line, polygon, polyline
The original SVG file
The triangles that comprise the inner fill