관리-도구
편집 파일: __init__.cpython-37.pyc
B ��]m � @ s� d Z ddlmZmZ eZdZdZdZdZddlm Z dd l mZ G d d� de�Z e d�Ze d �Ze d�Ze d�Ze d�Ze d�Ze d�Ze d�Ze d�Ze d�Ze d�Ze d�Ze d�Ze 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 @ s* e Zd ZdZd dd�Zdd� Zdd� Zd S )�Unitz Add units to values. �cmc C s || _ dS )zL Unit constructor :param str unit: specify the unit string N)�_unit)�selfZunit� r �B/opt/alt/python37/lib/python3.7/site-packages/svgwrite/__init__.py�__init__<