✏️ 正在编辑: __init__.cpython-311.pyc
路径:
/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/__init__.cpython-311.pyc
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
� �|oi� � � � d Z ddlmZmZ eZdZdZdZdZddlm Z dd l mZ G d � de� � Z e d� � Z e d � � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � Z e d� � ZdS )ar A Python library to create SVG drawings. SVG is a language for describing two-dimensional graphics in XML. SVG allows for three types of graphic objects: vector graphic shapes (e.g., paths consisting of straight lines and curves), images and text. Graphical objects can be grouped, styled, transformed and composed into previously rendered objects. The feature set includes nested transformations, clipping paths, alpha masks, filter effects and template objects. SVG drawings can be interactive and dynamic. Animations can be defined and triggered either declarative (i.e., by embedding SVG animation elements in SVG content) or via scripting. .. seealso:: http://www.w3.org/TR/SVG11/intro.html#AboutSVG a simple example:: import svgwrite dwg = svgwrite.Drawing('test.svg', profile='tiny') dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%'))) dwg.add(dwg.text('Test', insert=(0, 0.2))) dwg.save() SVG Version ----------- You can only create two types of SVG drawings: * *SVG 1.2 Tiny Profile*, use Drawing(profile= ``'tiny'``) * *SVG 1.1 Full Profile*, use Drawing(profile= ``'full'``) � )�__version__�versionzmozman <me@mozman.at>zManfred Moitzizme@mozman.atz 2014-2019� )�Drawing)�rgbc �&