o
    PÉf*  ã                   @   sF   d dl mZ d dlmZ d dlmZ d dlmZ G dd„ deeƒZdS )é    )ÚMacroElement)ÚTemplate)Ú
JSCSSMixin)Úparse_optionsc                       sP   e Zd ZdZedƒZg d¢ZdgZdgZ								
		d‡ fdd„	Z	‡  Z
S )ÚBeautifyIcona  
    Create a BeautifyIcon that can be added to a Marker

    Parameters
    ----------
    icon: string, default None
        the Font-Awesome icon name to use to render the marker.
    icon_shape: string, default None
        the icon shape
    border_width: integer, default 3
        the border width of the icon
    border_color: string with hexadecimal RGB, default '#000'
        the border color of the icon
    text_color: string with hexadecimal RGB, default '#000'
        the text color of the icon
    background_color: string with hexadecimal RGB, default '#FFF'
        the background color of the icon
    inner_icon_style: string with css styles for the icon, default ''
        the css styles of the icon
    spin: boolean, default False
        allow the icon to be spinning.
    number: integer, default None
        the number of the icon.

    Examples
    --------
    Plugin Website: https://github.com/masajid390/BeautifyMarker
    >>> BeautifyIcon(
    ...     text_color="#000", border_color="transparent", background_color="#FFF"
    ... ).add_to(marker)
    >>> number_icon = BeautifyIcon(
    ...     text_color="#000",
    ...     border_color="transparent",
    ...     background_color="#FFF",
    ...     number=10,
    ...     inner_icon_style="font-size:12px;padding-top:-5px;",
    ... )
    >>> Marker(
    ...     location=[45.5, -122.3],
    ...     popup=folium.Popup("Portland, OR"),
    ...     icon=number_icon,
    ... )
    >>> BeautifyIcon(icon="arrow-down", icon_shape="marker").add_to(marker)

    a  
        {% macro script(this, kwargs) %}
            var {{ this.get_name() }} = new L.BeautifyIcon.icon(
                {{ this.options|tojson }}
            )
            {{ this._parent.get_name() }}.setIcon({{ this.get_name() }});
        {% endmacro %}
        )Úcirclez
circle-dotÚdoughnutzrectangle-dotÚmarkerN)Úbeautify_icon_jszYhttps://cdn.jsdelivr.net/gh/marslan390/BeautifyMarker/leaflet-beautify-marker-icon.min.js)Úbeautify_icon_csszZhttps://cdn.jsdelivr.net/gh/marslan390/BeautifyMarker/leaflet-beautify-marker-icon.min.cssNé   ú#000ú#FFFÚ Fc
                    s>   t ƒ  ¡  d| _td|||||||||	d u|	dœ
|
¤Ž| _d S )Nr   )
ÚiconÚ
icon_shapeÚborder_widthÚborder_colorÚ
text_colorÚbackground_colorÚinner_icon_styleÚspinÚisAlphaNumericIconÚtext© )ÚsuperÚ__init__Ú_namer   Úoptions)Úselfr   r   r   r   r   r   r   r   ÚnumberÚkwargs©Ú	__class__r   úh/home/deployuser/azure_apps/autowriter/venv/lib/python3.10/site-packages/folium/plugins/beautify_icon.pyr   W   s    
öõzBeautifyIcon.__init__)	NNr   r   r   r   r   FN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú	_templateÚICON_SHAPE_TYPESÚ
default_jsÚdefault_cssr   Ú__classcell__r   r   r"   r$   r      s(    .ÿ

ÿÿ	ör   N)	Úbranca.elementr   Újinja2r   Úfolium.elementsr   Úfolium.utilitiesr   r   r   r   r   r$   Ú<module>   s
    