
    BPc                     2   d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlm	Z	 ddl
mZmZ ddlmZ d	d
lmZmZ  ej        d           ej                            ej                            ej                            e                              Zej                            ed          Zej                            e          rej                            e            G d de          Z G d d          Zed             Zd Z d Z!d Z"d Z#e#ej$        _#        ed             Z%d Z& ee&d          e_&        defdZ' ee'd          e_'        defdZ( ee(d          e_(        d Z)d Z* ee)d          e_+         ee*d          e_,        dS ) zN
Provide some documentation to existing extensions about why they're failing.
    N   )	Transform)utils)units)BaseElementShapeElement)ElementList   )	deprecate_deprecateddefaultzdeprecated-simplec                   H     e Zd Ze fd            Ze fd            Z xZS )DeprecatedDictc                 F    t                                          |          S N)super__getitem__)selfkey	__class__s     7/usr/share/inkscape/extensions/inkex/deprecated/main.pyr   zDeprecatedDict.__getitem__4   s    ww""3'''    c                 D    t                                                      S r   )r   __iter__)r   r   s    r   r   zDeprecatedDict.__iter__8   s    ww!!!r   )__name__
__module____qualname__r   r   r   __classcell__)r   s   @r   r   r   3   sg        ( ( ( ( Y( " " " " Y" " " " "r   r   c                   $    e Zd ZdZd Zd Zd ZdS )	lazyproxyzProxy, use as decorator on a function with provides the wrapped object.
    The decorated function is called when a member is accessed on the proxy.
    c                     || _         dS )zN
        :param getwrapped: Callable which returns the wrapped object
        N_getwrapped)r   
getwrappeds     r   __init__zlazyproxy.__init__E   s     &r   c                 F    t          |                                 |          S r   )getattrr#   )r   names     r   __getattr__zlazyproxy.__getattr__K   s    t''))4000r   c                 6     |                                  |i |S r   r"   )r   argskwargss      r   __call__zlazyproxy.__call__N   s#    !t!!426222r   N)r   r   r   __doc__r%   r)   r-    r   r   r    r    @   sK         & & &1 1 13 3 3 3 3r   r    c                  4    t          dd           ddlm}  | S )Nz8inkex.localize was moved to inkex.localization.localize.   stackr   )localize)r   localizationr4   )wrappeds    r   r4   r4   R   s.    JRSTTTT222222Nr   c                 P    t          dd           t          j        | ||          S )NzBinkex.are_near_relative was moved to inkex.units.are_near_relativer   r2   )r   r   are_near_relative)abepss      r   r8   r8   Z   s6    OWX    "1a---r   c                 L    t          dd           t          j        |           S )Nz+inkex.debug was moved to inkex.utils.debug.r   r2   )r   r   debug)whats    r   r=   r=   a   s&    =QGGGG;tr   c                 N    t          dd           t          j        | d          S )Nzeinkex.unittouu is now a method in the SvgDocumentElement class. Use `self.svg.unittouu(str)` instead.r   r2   px)r   r   convert_unit)strings    r   unittouurC   i   s6    	0   
 fd+++r   c                     t          dd           t          | |d           t          | ||           t          | |          S )Nz*Effect().options.ensure_value was removed.r   r2   )r   r'   setattr)r   attrvalues      r   ensure_valuerH   u   sJ    <AFFFFtT4  (dE"""4r   c                     g }|                      d          }||v r|                    |           | D ]7}t          |          t          |          k    r n|t          ||          z  }8|S )zself.svg.get_z_selected()id)getappendlenzSort)inNodeidList
sortedListtheidchilds        r   rN   rN      s~     JJJtE%    + +z??c&kk))EeE6***

r   c                     || _         dS )zUse elem.desc = valueN)desc)r   rG   s     r   descriptionrV      s    DIIIr   z1.1elementc                 *    |                                  S )zCalculate the final styles applied to this element
    This function has been deprecated in favor of BaseElement.specified_style())specified_style)rW   s    r   composed_stylerZ      s     ""$$$r   z1.2	selectionc                 *    |                                  S )zUse :func:`rendering_order`)rendering_order)r[   s    r   paint_orderr^      s    $$&&&r   c                 ,    |                      |          S )zUse @= operator instead)__imatmul__r   matrixs     r   transform_imulrc      s    F###r   c                 ,    |                      |          S )zUse @ operator instead)
__matmul__ra   s     r   transform_mulrf      s    ??6"""r   )-r.   ossyswarningsargparse
transformsr    r   r   elements._baser   r   elements._selectedr	   metar   r   simplefilterpathabspathdirname__file__	INKEX_DIRjoin
SIMPLE_DIRisdirrL   dictr   r    r4   r8   r=   rC   rH   	NamespacerN   rV   rZ   r^   rc   rf   __imul____mul__r/   r   r   <module>r}      s  &  
			 



   " " " " " "             6 6 6 6 6 6 6 6 , , , , , , ( ( ( ( ( ( ( (  i       GOOBGOOBGOOH,E,EFFGG	W\\)%899
7==  HOOJ" " " " "T " " "3 3 3 3 3 3 3 3$   . . .  , , ,   #/   
 
 
  
 $)K77 %L % % % % (i>> '; ' ' ' '
 $)K77 $ $ $
# # #
 Y~u55	 ImU33	   r   