%PDF- %PDF-
Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/ |
Current File : //proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/text.pyc |
� ���Rc @ s� d Z d d l m Z d d l m Z m Z m Z d d l m Z m Z m Z m Z d e e f d � � YZ d e e f d � � YZ d e e e f d � � YZ d e e e f d � � YZ d e f d � � YZ d e e e f d � � YZ d S( s� Text that is to be rendered as part of an SVG document fragment is specified using the **text** element. The characters to be drawn are expressed as XML character data inside the **text** element. i����( t BaseElement( t Presentationt Transformt XLink( t iterflatlistt strlistt is_stringt to_unicodet TSpanc B s8 e Z d Z d Z d d d d d d d � Z d � Z RS( s% Within a **Text** element, text and font properties and the current text position can be adjusted with absolute or relative coordinate values by using the **TSpan** element. The characters to be drawn are expressed as XML character data inside the **TSpan** element. t tspanc K sh t t | � j | � | | _ | d k r~ t | � rF t d � � n | sR | ra t d � � n | d g } | d g } n | d k r� t t t | � � d � | d <n | d k r� t t t | � � d � | d <n | d k rt t t | � � d � | d <n | d k r6t t t | � � d � | d <n | d k rdt t t | � � d � | d <n d S( s� :param string text: **tspan** content :param 2-tuple insert: The **insert** parameter is the absolute insert point of the text, don't use this parameter in combination with the **x** or the **y** parameter. :param list x: list of absolute x-axis values for characters :param list y: list of absolute y-axis values for characters :param list dx: list of relative x-axis values for characters :param list dy: list of relative y-axis values for characters :param list rotate: list of rotation-values for characters (in degrees) sE 'insert' should be a <tuple> or a <list> with at least two elements.s; Use 'insert' and 'x' or 'y' parameter not at the same time!i i t t xt yt dxt dyt rotateN( t superR t __init__t textt NoneR t TypeErrort ValueErrorR t listR ( t selfR t insertR R R R R t extra( ( s>