API Reference for Enthought Tool Suite 3.0.1
Chaco's SVG backend
| Copyright: | ActiveState |
|---|---|
| License: | BSD Style |
| Author: | David Ascher (davida@activestate.com) |
| Version: | $Revision: 1.5 $ |
This backend has no compiled path object, yet.
CompiledPath = None
font_face_map = { Const('Arial') : Const('Helvetica') }
font_map = { Const('Arial') : Const('Helvetica') }
font_map = { Const('Arial') : Const('Helvetica') }
htmltemplate = """<html xmlns:svg="http://www.w3.org/2000/svg"> <object id="AdobeSVG" CLASSID="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2"> </object> <?import namespace="svg" implementation="#AdobeSVG"?> <body> <svg:svg width="100%%" height="100%%" viewBox="0 0 %(width)f %(height)f"> %(contents)s </svg:svg> </body> </html> """
line_cap_map = { Getattr(Name('constants'), 'CAP_ROUND') : Const('round'), Getattr(Name('constants'), 'CAP_SQUARE') : Const('square'), Getattr(Name('constants'), 'CAP_BUTT') : Const('butt') }
line_join_map = { Getattr(Name('constants'), 'JOIN_ROUND') : Const('round'), Getattr(Name('constants'), 'JOIN_BEVEL') : Const('bevel'), Getattr(Name('constants'), 'JOIN_MITER') : Const('miter') }
SVGGC = GraphicsContext
xmltemplate = """<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:text="http://xmlns.graougraou.com/svg/text/"
xmlns:a3="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
a3:scriptImplementation="Adobe"
width="100%%"
height="100%%"
viewBox="0 0 %(width)f %(height)f"
>
<g transform="translate(0,%(height)f)">
<g transform="scale(1,-1)">
%(contents)s
</g>
</g>
</svg>
"""
| Local name | Refers to |
|---|---|
| _fontdata | enthought.kiva._fontdata |
| affine | enthought.kiva.affine |
| arange | numpy.arange |
| basecore2d | enthought.kiva.basecore2d |
| constants | enthought.kiva.constants |
| cStringIO | cStringIO |
| EOF_FILL | enthought.kiva.constants.EOF_FILL |
| EOF_FILL_STROKE | enthought.kiva.constants.EOF_FILL_STROKE |
| FILL | enthought.kiva.constants.FILL |
| FILL_STROKE | enthought.kiva.constants.FILL_STROKE |
| os | os |
| pi | numpy.pi |
| ravel | numpy.ravel |
| STROKE | enthought.kiva.constants.STROKE |
| sys | sys |
© Copyright 2002-2008 Enthought, Inc.