API Reference for Enthought Tool Suite 3.0.1
SVGDocument
SVG = XMLNS('http://www.w3.org/2000/svg')
units_to_px = { Const('in') : Const(72), Const('pc') : Const(12), Const('cm') : Div((Const(72.0), Const(2.54))), Const('mm') : Div((Const(72.0), Const(25.399999999999999))), Const('px') : Const(1), Const('pt') : Const(1) }
XLink = XMLNS('http://www.w3.org/1999/xlink')
XML = XMLNS('http://www.w3.org/XML/1998/namespace')
Parse a string consisting of a float in the range [0..1] or a percentage as a float number in the range [0..1].
Normalize an href to remove url(...) and xpointer(id(...)) extraneous bits.
href : str
decorator for methods which return a path operation Creates the path they will fill, and generates the path operations for the node
| Local name | Refers to |
|---|---|
| AbstractGradientBrush | enthought.savage.svg.backends.null.null_renderer.AbstractGradientBrush |
| colourValue | enthought.savage.svg.css.colour.colourValue |
| css | enthought.savage.svg.css |
| ET | xml.etree.cElementTree |
| math | math |
| NullRenderer | enthought.savage.svg.backends.null.null_renderer.NullRenderer |
| numpy | numpy |
| os | os |
| paintValue | enthought.savage.svg.attributes.paintValue |
| StringIO | cStringIO.StringIO |
| svg_parser | enthought.savage.svg.svg_regex.svg_parser |
| urllib | urllib |
| urlparse | urlparse |
| warnings | warnings |
| wraps | functools.wraps |
| wx | wx |
© Copyright 2002-2008 Enthought, Inc.