
    h%                    z    S SK Jr  S SKJrJr  S SKJrJr  S SKJ	r	  S SK
Jr  S SKJr  S SKJrJr   " S S	\5      rg
)    )annotations)IterableIterator)
DXFGraphic	DXFEntity)const)AbstractTagWriter)SupportsVirtualEntities)default_copyCopyNotSupportedc                  n   ^  \ rS rSrSrSU 4S jjrS rSS jrSS jrSS jr	\
4SS jjrSS	 jrS
rU =r$ )DXFGraphicProxy   zFDO NOT USE THIS WRAPPER AS REAL DXF ENTITY OUTSIDE THE DRAWING ADD-ON!c                Z   > [         TU ]  5         Xl        U R                  U5      U l        g N)super__init__entity_setup_dxf_namespacedxf)selfr   	__class__s     O/var/www/html/env/lib/python3.13/site-packages/ezdxf/addons/drawing/gfxproxy.pyr   DXFGraphicProxy.__init__   s%    ,,V4    c                    UR                   R                  U 5      nU R                  R                  5        H.  u  p4UR	                  U5      (       a  M  UR                  X45        M0     U$ r   )r   copyDEFAULT_ATTRIBSitemshasattrset)r   r   r   kvs        r   r   $DXFGraphicProxy._setup_dxf_namespace   sN    jjood#((..0DA;;q>> 1 
r   c                6    U R                   R                  5       $ r   )r   dxftyper   s    r   r&   DXFGraphicProxy.dxftype   s    {{""$$r   c                    [        U R                  [        5      (       a  U R                  R                  5       $ [	        U R                  S5      (       a  U R                  R                  5       $ [        / 5      $ )z0Implements the SupportsVirtualEntities protocol.virtual_entities)
isinstancer   r
   __virtual_entities__r    r*   iterr'   s    r   r,   $DXFGraphicProxy.__virtual_entities__    sU    dkk#:;;;;33554;; 233;;//11Bxr   c                "    U R                  5       $ r   )r,   r'   s    r   r*    DXFGraphicProxy.virtual_entities(   s    ((**r   c                    [        S5      e)Nz+Copying of DXFGraphicProxy() not supported.)r   )r   copy_strategys     r   r   DXFGraphicProxy.copy+   s    !LNNr   c                    g)NF )r   	tagwriters     r   preprocess_export!DXFGraphicProxy.preprocess_export.   s    r   )r   r   )r   r   )returnstr)r9   zIterator[DXFGraphic])r9   zIterable[DXFGraphic])r9   r   )r6   r	   r9   bool)__name__
__module____qualname____firstlineno____doc__r   r   r&   r,   r*   r   r   r7   __static_attributes____classcell__)r   s   @r   r   r      s4    P5
%+ ". O r   r   N)
__future__r   typingr   r   ezdxf.entitiesr   r   ezdxf.lldxfr   ezdxf.lldxf.tagwriterr	   ezdxf.protocolsr
   ezdxf.entities.copyr   r   r   r5   r   r   <module>rJ      s(    # % 0  3 3 >$j $r   