U
    ê¥¡cP  ã                   @   s$   d dl mZ dZG dd„ deƒZdS )é   )Ú	JSONMixinz@@typec                   @   s4   e Zd ZdZddd„Zedd„ ƒZejdd„ ƒZdS )	ÚViewaD  
    Represents a "hard configuration" of a camera location

    Parameters
    ---------
    type : str, default None
        deck.gl view to display, e.g., MapView
    controller : bool, default None
        If enabled, camera becomes interactive.
    **kwargs
        Any of the parameters passable to a deck.gl View
    Nc                 K   s(   || _ || _|| _|| _| j |¡ d S ©N)ÚtypeÚ
controllerÚwidthÚheightÚ__dict__Úupdate)Úselfr   r   r   r   Úkwargs© r   ú8/tmp/pip-unpacked-wheel-srr0x9ui/pydeck/bindings/view.pyÚ__init__   s
    zView.__init__c                 C   s
   t | tƒS r   )ÚgetattrÚTYPE_IDENTIFIER)r   r   r   r   r      s    z	View.typec                 C   s   |   t|¡ d S r   )Ú__setattr__r   )r   Ú	type_namer   r   r   r      s    )NNNN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   Úsetterr   r   r   r   r      s   

r   N)Z
json_toolsr   r   r   r   r   r   r   Ú<module>   s   