o
    Nrf]                     @   sv   d dl mZ dddddZddd	d
dZdddddZdddddZdddddZG dd deZG dd deZdS )   )KeyArgsConstructoru   └u   ─u   │u   ├)UP_AND_RIGHT
HORIZONTALVERTICALVERTICAL_AND_RIGHTu   ┗u   ━u   ┃u   ┣u   ╚u   ═u   ║u   ╠+-| c                   @   s<   e Zd ZdZdZdd Zdd Zdd Zd	d
 Zdd Z	dS )StylezRendering style for trees.z{}c                 C   s   | j |S )z Render a node text into a label.)label_formatformat)selftext r   Z/var/www/html/software/conda/envs/catlas/lib/python3.10/site-packages/asciitree/drawing.py
node_label/   s   zStyle.node_labelc                 C      |S )z&Render a node label into final output.r   r   labelr   r   r   
child_head3      zStyle.child_headc                 C   r   )z9Render a node line that is not a label into final output.r   r   liner   r   r   
child_tail7   r   zStyle.child_tailc                 C   r   )z\Like :func:`~asciitree.drawing.Style.child_head` but only called
        for the last child.r   r   r   r   r   last_child_head;      zStyle.last_child_headc                 C   r   )z\Like :func:`~asciitree.drawing.Style.child_tail` but only called
        for the last child.r   r   r   r   r   last_child_tail@   r   zStyle.last_child_tailN)
__name__
__module____qualname____doc__r   r   r   r   r   r   r   r   r   r   r   +   s    r   c                   @   s@   e Zd ZdZeZdZdZdZdd Z	dd Z
dd	 Zd
d ZdS )BoxStylezDA rendering style that uses box draw characters and a common layout.r      c                 C   2   d| j  | jd  | jd | j  d| j  | S )Nr
   r   r   indentgfx	horiz_lenlabel_spacer   r   r   r   r   M      zBoxStyle.child_headc                 C   s"   d| j  | jd  d| j  | S Nr
   r   )r&   r'   r(   r   r   r   r   r   T   s   zBoxStyle.child_tailc                 C   r$   )Nr
   r   r   r%   r   r   r   r   r   Z   r*   zBoxStyle.last_child_headc                 C   s*   d| j  dt| jd   d| j  | S r+   )r&   lenr'   r(   r   r   r   r   r   a   s   zBoxStyle.last_child_tailN)r   r   r    r!   	BOX_ASCIIr'   r)   r(   r&   r   r   r   r   r   r   r   r   r"   F   s    r"   N)	utilr   Z	BOX_LIGHTZ	BOX_HEAVYZ
BOX_DOUBLEr-   Z	BOX_BLANKr   r"   r   r   r   r   <module>   s8    				