a
    Dfm                     @   s   d Z ddlmZmZmZmZmZmZmZm	Z	m
Z
mZ ddlmZ ddlmZmZ ddlmZmZ ddlmZ G dd	 d	eZG d
d deZdS )zA
Defines a custom PlotlyPlot bokeh model to render Plotly plots.
    )
AnyDictEitherEnumInstanceIntListNullNullableString)
ModelEvent)ColumnDataSource	LayoutDOM   )JS_URLSbundled_files)classpropertyc                       s"   e Zd ZdZd fdd	Z  ZS )PlotlyEventZplotly_eventNc                    s   || _ t j|d d S )N)model)datasuper__init__)selfr   r   	__class__ `/nfs/NAS7/SABIOD/METHODE/ermites/ermites_venv/lib/python3.9/site-packages/panel/models/plotly.pyr      s    zPlotlyEvent.__init__)N)__name__
__module____qualname__Z
event_namer   __classcell__r   r   r   r   r      s   r   c                   @   s   e Zd ZdZed dgZedd Zedd Zdd	idd
idZ	e
eZeeeZe
eZeeeZe
eeZeeeeZeeeeZeeeZe
eZeeeeeZedddZe Z e Z!dS )
PlotlyPlotz_
    A bokeh model that wraps around a plotly plot and renders it inside
    a bokeh plot.
    ZjQueryz(https://cdn.plot.ly/plotly-2.31.1.min.jsc                 C   s   t | S )N)r   clsr   r   r   __javascript__"   s    zPlotlyPlot.__javascript__c                 C   s   d| j dd  iS )NPlotly   )r$   r"   r   r   r   __js_skip__&   s    zPlotlyPlot.__js_skip__Zplotlyz%https://cdn.plot.ly/plotly-2.31.1.minr%   )pathsexportsZmouseupZ
continuousZthrottleN)"r   r   r   __doc__r   Z__javascript_raw__r   r$   r'   Z__js_require__r   r   r   r   r   Zlayoutframesconfigr   r   Zdata_sourcesr
   ZrelayoutZrestyleZrelayout_dataZrestyle_datar   r	   Zviewportr   Zviewport_update_policyr   Zviewport_update_throttleZ_render_countr   r   r   r   r!      s2   




r!   N)r*   Zbokeh.core.propertiesr   r   r   r   r   r   r   r	   r
   r   Zbokeh.eventsr   Zbokeh.modelsr   r   Zio.resourcesr   r   utilr   r   r!   r   r   r   r   <module>   s   0	