+
    i#	                     .    ^ RI t ^ RIHt  ! R R4      tR# )    N)pixels_to_EMUc                      a  ] tR t^	t o Rt^ tR t]R 4       t]P                  R 4       t]R 4       t
]
P                  R 4       t
RR lt]R 4       tR	tV tR
# )Drawingza drawing object - eg container for shapes or charts
we assume user specifies dimensions in pixels; units are
converted to EMU in the drawing part
c                    R V n         R V n        RV n        ^ V n        ^ V n        ^V n        ^V n        RV n        ^ V n        RV n	        ^ V n
        ^ V n        R# ) FabsoluteN))      )      )namedescriptioncoordinateslefttop_width_heightresize_proportionalrotation
anchortype	anchorcol	anchorrowselfs   &_/Users/agent/.openclaw/workspace/.venv/lib/python3.14/site-packages/openpyxl/drawing/drawing.py__init__Drawing.__init__   sY    	,	#( $    c                    V P                   # N)r   r   s   &r   widthDrawing.width!   s    {{r   c                    V P                   '       d<   V'       d4   V P                  V P                  ,          p\        W!,          4      V n        Wn        R # r    )r   r   r   round)r   wratios   && r   r!   r"   &   s5    ###LL4;;.E +DLr   c                    V P                   # r    )r   r   s   &r   heightDrawing.height.   s    ||r   c                    V P                   '       d<   V'       d4   V P                  V P                  ,          p\        W!,          4      V n        Wn        R # r    )r   r   r   r$   )r   hr&   s   && r   r(   r)   3   s5    ###KK$,,.E	*DKr   c                   WP                   ,          pW P                  ,          pV P                  '       d   V'       d   V'       d~   W0P                  ,          V8  d4   \        P                  ! W0P                  ,          4      V n        Wn         R # \        P                  ! W@P                   ,          4      V n         W n        R # R # R # R # r    )r   r   r   mathceil)r   r%   r+   xratioyratios   &&&  r   set_dimensionDrawing.set_dimension;   sz    [[\\!###a%*#yy,,)>?"ii(<=  /0#r   c                   ^RI HpHpHp V P                  R8X  dQ   V! 4       p\        V P                  4      VP                  n        \        V P                  4      VP                  n
        MNV P                  R8X  d>   V! 4       pV P                  VP                  n        V P                  VP                  n        \        V P                   4      XP"                  n        \        V P&                  4      VP"                  n        V# )r	   )OneCellAnchorTwoCellAnchorAbsoluteAnchorr   oneCell)spreadsheet_drawingr4   r5   r6   r   r   r   posxr   yr   _fromcolr   rowr   extr!   r   r(   )r   r4   r5   r6   anchors   &    r   r@   Drawing.anchorI   s    	 	 ??j(#%F(3FJJL(2FJJL__	)"_F#~~FLL#~~FLL(5

)$,,7

r   )r   r   r   r   r   r   r   r   r   r   r   r   N)r   r   )__name__
__module____qualname____firstlineno____doc__countr   propertyr!   setterr(   r1   r@   __static_attributes____classdictcell__)__classdict__s   @r   r   r   	   s     
 E    \\    ]] !  r   r   )r-   openpyxl.utils.unitsr   r    r   r   <module>rO      s     .S Sr   