Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
`Â_‹ ã @ s d Z dZdd„ ZdS )z3.3.0z-Utility functions for geometrical operations.c sz t ˆ ttfƒsˆ fd S tˆ ƒdkr2ˆ d fd S tˆ ƒ}|dk sJ|dkrVtd| ƒ‚tˆ ƒt‡ fdd„t|dƒD ƒƒ S )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.c s g | ]}ˆ |d ‘qS )r © )Ú.0Úi)Úpr ú8/tmp/tmp4i9tl1d3/lib64/python/reportlab/lib/geomutils.pyú
s z!normalizeTRBL..)Ú
isinstanceÚtupleÚlistÚlenÚ
ValueErrorÚrange)r Úlr )r r Ú
normalizeTRBL s
r N)Ú__version__Ú__doc__r r r r r Ú s