
    BPc                        d Z dZdZdZi ZddgddgddgdZe                                ed	<   ed	                             d
ddggddgddgddgddgd
ddggd           e                                ed<   ed                             dg dgddgddgd
ddggddgd           e                                ed<   ed                             dg dgd
ddggd
ddggddgddgd           e                                Ze                    dg dgd
ddggddgddgddgddgddgd           e                                ed<   ed                             dddgi           e                                ed<   ed                             ddgddgddgddgddgddgddgddgd           e                                ed<   ed                             d
ddggd
ddggd g dg d!d"gddgddgd#           e                                ed$<   ed$                             d g dg d!d"gd
ddggddgddgddgd%           e                                ed&<   ed&                             d
d'dggd
dd'ggddgddgd(d)gddgd*           d
d'dggd
dd'ggd
d'dggd
ddggd
dd'ggd
d'd'ggddgdd+gd,ed-<   d
ddggd.dgd/ed0<   d1d
ddggied2<   e                                ed3<   ed3                             d
ddggdd4gd5           d6d6d7d6d8d9Z	i dd:dd;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSd4dTdUddVdWdXdYdZd[d\d]Z
 ed^ e
                                D                       Zdbd_Zd` Zda ZdS )ca  
synfig_fileformat.py
Synfig file format utilities

Copyright (C) 2011 Nikita Kitaev

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
g      N@      ?g      @real        integer    )z_depthamountblend_methodPasteCanvasvectorcanvasNtime0sboolF)originr   zoomtime_offsetchildren_lockfocuscirclecolor)r   r   r      )r   radiusfeatherr   invert	rectangler   )r   point1point2expandr   T)r   r   r   	antialiasr   blurtypewinding_styleregionblineoutline)r#   zround_tip[0]zround_tip[1]sharp_cuspswidth	loopynessr   homogeneous_widthlinear_gradientgradient)r   r   r   r   )r   r   )p1p2r*   loopzigzagradial_gradient)r*   centerr   r-   r.   importstring )tlbrcgamma_adjustfilenamer   g      @)src_tlsrc_brdest_tldest_trdest_brdest_blcliphorizonwarpangle)r   r   rotater   	translateblur   )sizetypez0.2z0.0z0.1)r$   r   r)   rF   N	compositestraight   onto   zstraight onto   behind   screen   overlay   z
hand light   multiply   divide   add   subtract   
difference   brightendarken   	   hue
saturation	luminancezalpha brightenzalpha darkenz
alpha over)
               c              #   $   K   | ]\  }}||fV  d S N ).0kvs      3/usr/share/inkscape/extensions/synfig_fileformat.py	<genexpr>rt      s*      EEAaVEEEEEE    c                 
   | t                                           v r@t           |          }||                                v r||         d         S t          d          |t          d          t          |          t          k    rdS t          |          t
          k    rdS t          |          t          k    rdS t          |          t          k    r?d|                                v rdS d	|                                v rd
S t          d          t          |          t          k    r?t          |          dk    rdS t          |          dk    st          |          dk    rdS dS t          |          t          k    rdS d S )Nr   z Invalid parameter type for layerzNo information for given layerr   r   r   pointsr#   r   r*   z0Could not automatically determine parameter typer`   r   rG   rZ   r   r   r3   )layerskeys	ExceptionrI   intfloatr   dictlistlenstr)layerparamvaluelayer_paramss       rs   	paramTyper      sh   e}L%%''''&q))>??? =<===;;#9%[[E!!6%[[D  6%[[D  5::<<''w

$$!z RSSS%[[D  5zzQxUqCJJ!OOw  x%[[C8  ru   c                 l    | t                                           v rt           |          S t           d          S rn   )layer_versionsry   r   s    rs   defaultLayerVersionr      s/    ##%%%%e$$d##ru   c                 z    | t                                           v rt           |                                          S i S rn   )rx   ry   copyr   s    rs   defaultLayerParamsr      s0    e}!!###	ru   rn   )__doc__kuxgammatangent_scalerx   default_compositer   updatedefault_shaper   blend_method_namesr}   itemsblend_methodsr   r   r   ro   ru   rs   <module>r      s   ,  
 }smN   *..00}  }   c3Z(T"~ %S#J' 	 	 	 %))++x  x   <<<(3-C=c3Z(5/    (,,..{  {   <<<(aV$aV$3-5/    "&&((   <<<(c3Z(5/d^C=N#Q 
 
 
 !%%''x  x   7D/2 3 3 3!&&((y  y   4~#c]3-$d^	 	   .2244       !Q !Q |||,,,!G!GH5/    .2244       |||,,,!G!GHaV$3-5/    %))++x  x   "a!!R!^rN~ 	 	 	 "a!!R!2q'"1a&!1b'"2r(#UO}	 	v #s$l x 
  (S#J!78{  #''))v v  Aq6"A    
 {z  	
   	  z x u z  z x  w!" u#$ 	-   2 EE*<*B*B*D*DEEEEE! ! ! !H$ $ $    ru   