U
    õÕ/eH  ã                   @  s–   d Z ddlmZ ddlZe e¡ZddlmZ ddl	m
Z
 dZeG d	d
„ d
e
ƒƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZdS )z

é    )ÚannotationsNé   )Úabstracté   )Ú	Transform)ÚCategoricalScaleÚLinearScaleÚLogScaleÚScalec                   @  s   e Zd ZdZdS )r
   aâ   Base class for ``Scale`` models that represent an invertible
    computation to be carried out on the client-side.

    JavaScript implementations should implement the following methods:

    .. code-block

        compute(x: number): number {
            # compute and return the transform of a single value
        }

        v_compute(xs: Arrayable<number>): Arrayable<number> {
            # compute and return the transform of an array of values
        }

        invert(sx: number): number {
            # compute and return the inverse transform of a single value
        }

        v_invert(sxs: Arrayable<number>): Arrayable<number> {
            # compute and return the inverse transform of an array of values
        }

    N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© r   r   ú7/tmp/pip-unpacked-wheel-f5fndrjf/bokeh/models/scales.pyr
   *   s   r
   c                   @  s   e Zd ZdZdS )ÚContinuousScalezB Represent a scale transformation between continuous ranges.

    Nr   r   r   r   r   r   F   s   r   c                   @  s   e Zd ZdZdS )r   zI Represent a linear scale transformation between continuous ranges.

    Nr   r   r   r   r   r   M   s   r   c                   @  s   e Zd ZdZdS )r	   zF Represent a log scale transformation between continuous ranges.

    Nr   r   r   r   r   r	   S   s   r	   c                   @  s   e Zd ZdZdS )r   zk Represent a scale transformation between a categorical source range and
    continuous target range.

    Nr   r   r   r   r   r   Y   s   r   )r   Ú
__future__r   ÚloggingÚ	getLoggerr   ÚlogZcore.has_propsr   Z
transformsr   Ú__all__r
   r   r   r	   r   r   r   r   r   Ú<module>   s   
