/opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/svgwrite/__pycache__/container.cpython-311.pyc (14921B)
§
™™ÍE‘óTàã ó~ — d Z ddlmZ ddlmZmZmZ ddlmZ ddl m
Z
mZmZ ddl m
Z
mZ ddlmZ G d„ d eee
¦ « Z G d
„ de¦ « Z G d„ d
ee
e
e¦ « Z G d„ dee
e
¦ « ZdZ G d„ de¦ « Z G d„ deeee
¦ « Z G d„ deee
¦ « Z G d„ de¦ « Z G d„ de¦ « ZdS )aŒ
The **container** module provides following structural objects:
* :class:`svgwrite.Group`
* :class:`svgwrite.SVG`
* :class:`svgwrite.Defs`
* :class:`svgwrite.Symbol`
* :class:`svgwrite.Marker`
* :class:`svgwrite.Use`
* :class:`svgwrite.Hyperlink`
* :class:`svgwrite.Script`
* :class:`svgwrite.Style`
set/get SVG attributes::
element['attribute'] = value
value = element['attribute']
é )Úurlopen)Ú
font_mimetypeÚbase64_dataÚfind_first_url)ÚBaseElement)ÚViewBoxÚ TransformÚXLink)ÚPresentationÚClipping)ÚCDATAc ó — e Zd ZdZdZdS )ÚGroupa\ The **Group** (SVG **g**) element is a container element for grouping
together related graphics elements.
Grouping constructs, when used in conjunction with the **desc** and **title**
elements, provide information about document structure and semantics.
Documents that are rich in structure may be rendered graphically, as speech,
or as braille, and thus promote accessibility.
A group of elements, as well as individual objects, can be given a name using
the **id** attribute. Named groups are needed for several purposes such as
animation and re-usable objects.
ÚgN©Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úelementname© ó úd/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/svgwrite/container.pyr r " s € € € € € ðð ð €K€K€Kr r c ó — e Zd ZdZdZdS )ÚDefszã The **defs** element is a container element for referenced elements. For
understandability and accessibility reasons, it is recommended that, whenever
possible, referenced elements be defined inside of a **defs**.
ÚdefsNr r r r r r 3 s € € € € € ðð ð €K€K€Kr r c ó — e Zd ZdZdZdS )ÚSymbola� The **symbol** element is used to define graphical template objects which
can be instantiated by a **use** element. The use of **symbol** elements for
graphics that are used multiple times in the same document adds structure and
semantics. Documents that are rich in structure may be rendered graphically,
as speech, or as braille, and thus promote accessibility.
ÚsymbolNr r r r r r ; s € € € € € ðð ð €K€K€Kr r c ó( ‡ — e Zd ZdZdZdˆ fd„ Zˆ xZS )ÚMarkera) The **marker** element defines the graphics that is to be used for
drawing arrowheads or polymarkers on a given **path**, **line**, **polyline**
or **polygon** element.
Add Marker definitions to a **defs** section, preferred to the **defs** section
of the **main drawing**.
ÚmarkerNc óú •— t t | ¦ « j d
i |¤Ž |�|d | d<