%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/graphics/widgets/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/graphics/widgets/__pycache__/grids.cpython-312.pyc |
� ��d`D � �x � d Z ddlmZ ddlmZmZmZmZmZm Z m Z ddlmZm Z ddlmZmZmZmZmZmZmZ ddlmZ d!d�Zd � Z G d � de� Z G d� d e� Z G d� de� Zd� Zd� Zd� Z G d� dee� Z e!dk( r>dZ" edd� Z#e#jI e dddddd�� � e#jK dgdd� � yy)"z3.3.0� )�colors)�isNumber� isColorOrNone� isBoolean�isListOfNumbers�OneOf�isListOfColors�isNumberOrNone)�AttrMap�AttrMapValue)�Drawing�Group�Line�Rect� LineShape� definePath� EmptyClipPath)�WidgetNc � � |dk( r| dz }d} |dk( rd}g }||dz z } | t |� |z z }|dkD r||k\ r |S |dk r||k r |S |j |� �=)z6A range function, that does accept float increments...Ng g �?g-C��6?r )�len�append)�start�end�inc�L�nexts �B/usr/lib/python3/dist-packages/reportlab/graphics/widgets/grids.py�franger s� � � �d�{��c�k���� �d�{��� �A� ��F� � �C� ��s�1�v��|�#����7�t�s�{�� �H� �1�W����� �H� ����� � c �| � g }t t | dd � � D ] }|j | |dz | | z � �! |S )z}Returns a list of distances between adjacent numbers in some input list. E.g. [1, 1, 2, 3, 5, 7] -> [0, 1, 1, 2, 2] N���� )�ranger r )�list�d�is r �makeDistancesListr'