%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyo

�
o�
Oc@s�ddlmZddlmZmZmZdeeeefd��YZdeeefd��YZdeeefd��YZd	eeefd
��YZ	deeeefd��YZ
d
e
fd��YZdS(i����(tBaseElement(tPresentationtMarkerst	TransformtLinecBs#eZdZdZddd�ZRS(sc The **line** element defines a line segment that starts at one point
    and ends at another.
    tlineicKsZtt|�j|�|\}}|\}}||d<||d<||d<||d<dS(s�
        :param 2-tuple start: start point (**x1**, **y1**)
        :param 2-tuple end: end point (**x2**, **y2**)
        :param extra: additional SVG attributs as keyword-arguments

        tx1ty1tx2ty2N(tsuperRt__init__(tselftstarttendtextraRRRR	((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyRs


(ii(ii(t__name__t
__module__t__doc__telementnameR(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyRstRectcBs)eZdZdZddddd�ZRS(s� The **rect** element defines a rectangle which is axis-aligned with the current
    user coordinate system. Rounded rectangles can be achieved by setting appropriate
    values for attributes **rx** and **ry**.
    trectiic
Ks�tt|�j|�|\}}|\}}	||d<||d<||d<|	|d<|ri||d<n|r|||d<ndS(s(
        :param 2-tuple insert: insert point (**x**, **y**), left-upper point
        :param 2-tuple size: (**width**, **height**)
        :param <length> rx: corner x-radius
        :param <length> ry: corner y-radius
        :param extra: additional SVG attributs as keyword-arguments

        txtytwidththeighttrxtryN(R
RR(
RtinserttsizeRRRRRRR((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR4s	




(ii(iiN(RRRRtNoneR(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR-stCirclecBs#eZdZdZddd�ZRS(sS The **circle** element defines a circle based on a center point and a radius.
    tcircleiicKsDtt|�j|�|\}}||d<||d<||d<dS(s�
        :param 2-tuple center: circle center point (**cx**, **cy**)
        :param length r: circle-radius **r**
        :param extra: additional SVG attributs as keyword-arguments

        tcxtcytrN(R
RR(RtcenterR#RR!R"((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyRLs


(ii(RRRRR(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyRGstEllipsecBs#eZdZdZddd�ZRS(s� The **ellipse** element defines an ellipse which is axis-aligned with the
    current user coordinate system based on a center point and two radii.
    tellipseiicKsZtt|�j|�|\}}|\}}||d<||d<||d<||d<dS(s�
        :param 2-tuple center: ellipse center point (**cx**, **cy**)
        :param 2-tuple r: ellipse radii (**rx**, **ry**)
        :param extra: additional SVG attributs as keyword-arguments

        R!R"RRN(R
R%R(RR$R#RR!R"RR((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR_s


(ii(ii(RRRRR(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR%YstPolylinecBs2eZdZdZgd�Zd�Zd�ZRS(s� The **polyline** element defines a set of connected straight line
    segments. Typically, **polyline** elements define open shapes.
    tpolylinecKs{tt|�j|�t|�|_|jrwxF|jD]8}|\}}|jj|d�|jj|d�q8WndS(s�
        :param `iterable` points: `iterable` of points (points are `2-tuples`)
        :param extra: additional SVG attributs as keyword-arguments

        tnumberN(R
R'Rtlisttpointstdebugt	validatortcheck_svg_type(RR+RtpointRR((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyRts	cCs,|j|j�|jd<tt|�j�S(NR+(tpoints_to_stringR+tattribsR
R'tget_xml(R((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR2�scCs�g}x�|D]�}t|�dkr>tdt|���n|\}}|jr||jj|d�|jj|d�n|jdkr�t|t�r�t|d�}nt|t�r�t|d�}q�nd||f}|j	|�q
Wdj
|�S(sa
        Convert a `list` of points `2-tuples` to a `string` ``'p1x,p1y p2x,p2y ...'``.

        is%got %s values, but expected 2 values.t
coordinatettinyis%s,%st (tlent	TypeErrorR,R-R.tprofilet
isinstancetfloattroundtappendtjoin(RR+tstringsR/RR((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR0�s 
	(RRRRRR2R0(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR'ns
	tPolygoncBseZdZdZRS(s� The **polygon** element defines a closed shape consisting of a set of
    connected straight line segments.

    Same as :class:`~svgwrite.shapes.Polyline` but closed.
    tpolygon(RRRR(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyR?�sN(t
svgwrite.baseRtsvgwrite.mixinsRRRRRRR%R'R?(((s@/opt/alt/python27/lib/python2.7/site-packages/svgwrite/shapes.pyt<module>s.

Zerion Mini Shell 1.0