%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib/python2.7/site-packages/svgwrite/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyc

�
oQ+Pc@s�ddlmZddlmZddlmZmZdeefd��YZdefd��YZdefd	��YZ	d
e	fd��YZ
de	fd
��YZdS(i����(tBaseElement(tXLink(tstrlistt	is_stringtSetc	BsteZdZdZdd�Zd�Zdd�Zddddd�Zddddddddd�Z	d�Z
RS(	s� The **set** element provides a simple means of just setting the value
    of an attribute for a specified duration. It supports all attribute types,
    including those that cannot reasonably be interpolated, such as string
    and boolean values. The **set** element is non-additive. The additive and
    accumulate attributes are not allowed, and will be ignored if specified.
    tsetcKs6tt|�j|�|dk	r2|j|�ndS(s� Set constructor.

        :param href: target svg element, if **href** is not `None`; else
            the target SVG Element is the parent SVG Element.
        N(tsuperRt__init__tNonetset_href(tselfthreftextra((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyRscCs|j�tt|�j�S(N(t	update_idRRtget_xml(R
((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyRs
cCs'||d<|dk	r#||d<ndS(sY
        Set animation attributes :ref:`attributeName` and :ref:`attributeType`.
        t
attributeNamet
attributeTypeN(R(R
RR((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyt
set_target#s
cCsh|dk	r||d<n|dk	r2||d<n|dk	rK||d<n|dk	rd||d<ndS(ss
        Set animation attributes :ref:`onbegin`, :ref:`onend`, :ref:`onrepeat`
        and :ref:`onload`.
        tonbegintonendtonrepeattonloadN(R(R
RRRR((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyt	set_event,s


c		Cs�|d	k	r||d<n|d	k	r2||d<n|d	k	rK||d<n|d	k	rd||d<n|d	k	r}||d<n|d	k	r�||d<n|d	k	r�||d<n|d	k	r�||d<nd	S(
s�
        Set animation attributes :ref:`begin`, :ref:`end`, :ref:`dur`,
        :ref:`min`, :ref:`max`, :ref:`restart`, :ref:`repeatCount` and
        :ref:`repeatDur`.
        tbegintendtdurtmintmaxtrestarttrepeatCountt	repeatDurN(R(	R
RRRRRRRR((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyt
set_timing:s 






cCsd|d<dS(sK Freeze the animation effect. (see also :ref:`fill <animateFill>`)
        tfreezetfillN((R
((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR RsN(t__name__t
__module__t__doc__telementnameRRRRRRR (((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyRs
		t
AnimateMotioncBs8eZdZdZddd�Zddddd�ZRS(s` The **animateMotion** element causes a referenced element to move
    along a motion path.
    t
animateMotioncKs9tt|�jd||�|dk	r5||d<ndS(s�
        :param path: the motion path
        :param href: target svg element, if **href** is not `None`; else
          the target SVG Element is the parent SVG Element.
        RtpathN(RR&RR(R
R(RR((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR]scCsh|dk	r||d<n|dk	r2||d<n|dk	rK||d<n|dk	rd||d<ndS(sX
        Set animation attributes `path`, `calcMode`, `keyPoints` and `rotate`.
        R(tcalcModet	keyPointstrotateN(R(R
R(R)R*R+((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyt	set_valuegs


N(R"R#R$R%RRR,(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR&Ws
tAnimatecBsAeZdZdZdddd�Zddddddd�ZRS(su The **animate** element allows scalar attributes and properties to be
    assigned different values over time .
    tanimatecKsXtt|�jd||�|dk	r8|j|�n|dk	rT|j|�ndS(s0
        :param attributeName: name of the SVG Attribute to animate
        :param values: interpolation values, `string` as `<semicolon-list>` or a python `list`
        :param href: target svg element, if **href** is not `None`; else
          the target SVG Element is the parent SVG Element.
        RN(RR-RRR,R(R
RtvaluesRR((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyRzs
cCs�|d	k	r7t|�s*t|d�}n||d<n|d	k	rP||d<n|d	k	ri||d<n|d	k	r�||d<n|d	k	r�||d<n|d	k	r�||d<n|d	k	r�||d<nd	S(
s�
        Set animation attributes :ref:`values`, :ref:`calcMode`, :ref:`keyTimes`,
        :ref:`keySplines`, :ref:`from`, :ref:`to` and :ref:`by`.
        t;R/R)tkeyTimest
keySplinestfromttotbyN(RRR(R
R/R)R1R2tfrom_R4R5((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR,�s 





N(R"R#R$R%RRR,(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR-ts

	tAnimateColorcBseZdZdZRS(sR The **animateColor** element specifies a color transformation over
    time.
    tanimateColor(R"R#R$R%(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR7�stAnimateTransformcBs eZdZdZdd�ZRS(s� The **animateTransform** element animates a transformation attribute
    on a target element, thereby allowing animations to control translation,
    scaling, rotation and/or skewing.
    tanimateTransformcKs'tt|�j||�||d<dS(s�
        :param element: target svg element, if element is not `None`; else
          the target svg element is the parent svg element.
        :param string transform: ``'translate | scale | rotate | skewX | skewY'``
        ttypeN(RR9R(R
t	transformtelementR((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR�sN(R"R#R$R%RR(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyR9�sN(t
svgwrite.baseRtsvgwrite.mixinsRtsvgwrite.utilsRRRR&R-R7R9(((sA/opt/alt/python27/lib/python2.7/site-packages/svgwrite/animate.pyt<module>sK+

Zerion Mini Shell 1.0