%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/graphics/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/graphics/__pycache__/renderSVG.cpython-312.pyc |
� ��d6� � � � d Z ddlZddlZddlZddlZddlZddlmZmZ ddl m Z ddlmZ ddl mZ ddlmZmZmZ ddlmZmZmZ dd l� dd lmZ ddl mZmZmZ ddlmZmZ d dlm Z ddl!m"Z" ejF Z#ejH Z$ejJ Z%djM � Z'djM � Z(djM � Z)djM � Z*djM � Z+ejX fd�Z-ejX fd�Z.ddejX fd�Z/d� Z0d'd�Z1 G d� de2� Z3edddddedddddiZ4d � Z5 G d!� d"� Z6 G d#� d$e� Z7d(d%�Z8e9d&k( r e8� yy))a An experimental SVG renderer for the ReportLab graphics framework. This will create SVG code from the ReportLab Graphics API (RLG). To read existing SVG code and convert it into ReportLab graphics objects download the svglib module here: http://python.net/~gherman/#svglib � N)�BytesIO�StringIO)�stringWidth)�fp_str)�asNative)� getStateDelta�Renderer�renderScaledDrawing)�STATE_DEFAULTS�Path�UserNode)�*)� rl_config)�RLString� isUnicode�isBytes)� FILL_EVEN_ODD� FILL_NON_ZERO� )� _getImage)�getDOMImplementationzsstroke-width stroke-linecap stroke stroke-opacity fill fill-opacity stroke-dasharray stroke-dashoffset fill-rule idzWstroke-width stroke-linecap stroke stroke-opacity stroke-dasharray stroke-dashoffset idz<font-family font-weight font-style font-variant font-size idzTstroke-width stroke-linecap stroke stroke-opacity stroke-dasharray stroke-dashoffsetzfill fill-opacityc �T � t � }t | |fd|i|�� |j � S )z>Returns a SVG as a string in memory, without touching the disk�showBoundary)r � drawToFile�getvalue)�dr �kwds�ss �>/usr/lib/python3/dist-packages/reportlab/graphics/renderSVG.py�drawToStringr '