%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/geomutils.cpython-312.pyc |
� ��d� � � � d Z dZd� Zy)z3.3.0z-Utility functions for geometrical operations.c �" � t | t t f� s| fdz S t | � dk( r | d fdz S t | � }|dk s|dkD rt d|z � �t | � t t |d� D �cg c] }| |dz �� c}� z S c c}w )a� Useful for interpreting short descriptions of paddings, borders, margin, etc. Expects a single value or a tuple of length 2 to 4. Returns a tuple representing (clockwise) the value(s) applied to the 4 sides of a rectangle: If a single value is given, that value is applied to all four sides. If two or three values are given, the missing values are taken from the opposite side(s). If four values are given they are returned unchanged. >>> normalizeTRBL(1) (1, 1, 1, 1) >>> normalizeTRBL((1, 1.2)) (1, 1.2, 1, 1.2) >>> normalizeTRBL((1, 1.2, 0)) (1, 1.2, 0, 1.2) >>> normalizeTRBL((1, 1.2, 0, 8)) (1, 1.2, 0, 8) � � � � z6A padding must have between 2 and 4 values but got %d.)� isinstance�tuple�list�len� ValueError�range)�p�l�is �9/usr/lib/python3/dist-packages/reportlab/lib/geomutils.py� normalizeTRBLr s� � �$ �a�%���'��t�A�v� � �Q�����!��w�q�y���A��A��1�u��A���Q�TU�U�V�V���8�e�e�A�q�k�;��a��!��f�;�<�<�<��;s �4B N)�__version__�__doc__r � � r �<module>r s �� ��;��=r