
    g                     J    d dl Z G d dej                  j                        Zy)    Nc                         e Zd Zd fd	Z xZS )TilingValidatorc           
      v    t        t        | 
  d|||j                  dd      |j                  dd      d| y )Ndata_class_strTiling	data_docsa  
            flip
                Determines if the positions obtained from
                solver are flipped on each axis.
            packing
                Determines d3 treemap solver. For more info
                please refer to
                https://github.com/d3/d3-hierarchy#treemap-
                tiling
            pad
                Sets the inner padding (in px).
            squarifyratio
                When using "squarify" `packing` algorithm,
                according to https://github.com/d3/d3-
                hierarchy/blob/v3.1.1/README.md#squarify_ratio
                this option specifies the desired aspect ratio
                of the generated rectangles. The ratio must be
                specified as a number greater than or equal to
                one. Note that the orientation of the generated
                rectangles (tall or wide) is not implied by the
                ratio; for example, a ratio of two will attempt
                to produce a mixture of rectangles whose
                width:height ratio is either 2:1 or 1:2. When
                using "squarify", unlike d3 which uses the
                Golden Ratio i.e. 1.618034, Plotly applies 1 to
                increase squares in treemap layouts.
)plotly_nameparent_namer   r    )superr   __init__pop)selfr	   r
   kwargs	__class__s       ^/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/plotly/validators/treemap/_tiling.pyr   zTilingValidator.__init__   sL    ot- #	
##!::&6Ajj	#	
D E#	
    )tilingtreemap)__name__
__module____qualname__r   __classcell__)r   s   @r   r   r      s    $
 $
r   r   )_plotly_utils.basevalidators_plotly_utilsbasevalidatorsCompoundValidatorr   r   r   r   <module>r      s     #%
m22DD %
r   