Ë
    ÌiÑ
  ã                   ó<   — d dl mc mZ d dlmZ  G d„ d«      Zd„ Zy)é    N)Úthemec                   ó"   — e Zd ZdZd„ Zd„ Zd„ Zy)ÚShapezQ
    Base class for shapes that can be used to render data :class:`.Series`.
    c                 ó   — t         ‚)zI
        Verify this shape can be used to render a given series.
        ©ÚNotImplementedError)ÚselfÚseriess     úT/var/www/html/strategist-ai/venv/lib/python3.12/site-packages/leather/shapes/base.pyÚvalidate_serieszShape.validate_series
   ó
   € ô "Ð!ó    c                 ó   — t         ‚)z.
        Render this shape to an SVG.
        r   )r	   ÚwidthÚheightÚx_scaleÚy_scaler
   Úpalettes          r   Úto_svgzShape.to_svg   r   r   c           	      óÎ  — t        | d«      r=| j                  r%t        | j                  «      rd}n| j                  }nt        |«      }nd}t        | d«      r=| j                  r%t        | j                  «      rd}n| j                  }nt        |«      }nd}t
        j                  t
        j                  z   }|j                  �t        |j                  «      nd}t        |«      dz   t
        j                  z  }||z   }t        j                  d«      }	t        j                  dt        d	«      t        t
        j                   t
        j                  z   «      t        t
        j                  «      t        t
        j                  «      ¬
«      }
|r|
j                  d|«       n|r|
j                  d|«       |	j!                  |
«       t        j                  dt        |«      t        d	«      t
        j"                  ¬«      }|j                  dt
        j$                  «       |j                  dt        t
        j&                  «      «       ||_        |	j!                  |«       |	|fgS )z=
        Render the legend entries for these shapes.
        Ú_fill_colorÚblackNÚ_stroke_colorzUnnamed seriesé   ÚgÚrectr   )ÚxÚyr   r   ÚfillÚtext)r   r   r   zfont-familyz	font-size)Úhasattrr   ÚcallableÚnextr   r   Úlegend_bubble_sizeÚlegend_bubble_offsetÚnameÚstrÚlenÚlegend_font_char_widthÚETÚElementÚlegend_font_char_heightÚsetÚappendÚlegend_colorÚlegend_font_familyÚlegend_font_sizer    )r	   r
   r   Ú
fill_colorÚstroke_colorÚbubble_widthr    Ú
text_widthÚ
item_widthÚ
item_groupÚbubbleÚlabels               r   Úlegend_to_svgzShape.legend_to_svg   sä  € ô �4˜Ô'Ø×ÒÜ˜D×,Ñ,Ô-à!(‘Jà!%×!1Ñ!1‘Jä! '›]‘
àˆJä�4˜Ô)Ø×!Ò!Ü˜D×.Ñ.Ô/à#*‘Là#'×#5Ñ#5‘Lä# G›}‘àˆLä×/Ñ/´%×2LÑ2LÑLˆà#)§;¡;Ð#:Œs�6—;‘;ÔÐ@PˆÜ˜$“i !‘m¤u×'CÑ'CÑCˆ
à ,Ñ.ˆ
ô —Z‘Z “_ˆ
ô —‘ØÜ�!‹fÜ”5×0Ñ0Ð0´5×3MÑ3MÑMÓNÜ”e×.Ñ.Ó/Ü”u×/Ñ/Ó0ô
ˆñ Ø�J‰J�v˜zÕ*ÙØ�J‰J�v˜|Ô,à×Ñ˜&Ô!ô —
‘
ØÜ�,ÓÜ�!‹fÜ×#Ñ#ô	
ˆð 	�	‰	�-¤×!9Ñ!9Ô:Ø�	‰	�+œs¤5×#9Ñ#9Ó:Ô;ØˆŒ
à×Ñ˜%Ô à˜ZÐ(Ð)Ð)r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r:   © r   r   r   r      s   „ ñò"ò"óC*r   r   c                  ó   — y)zµ
    This example shows how to define a function to specify style values for
    individual data points.

    :param datum:
        A :class:`.Datum` instance for the data row.
    Nr?   )Údatums    r   Ústyle_functionrB   \   s   € ð 	r   )Úxml.etree.ElementTreeÚetreeÚElementTreer*   Úleatherr   r   rB   r?   r   r   ú<module>rG      s    ðß "Ð "å ÷S*ñ S*ól	r   