bg)~dZddlmZddlmZmZmZddlmZddl m Z m Z m Z ddl m Z mZddlmZGdd ee e ZGd d eZGd d ee e eZGddee e ZdZGddeZGddee e e ZGddee e ZGddeZGddeZdS)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_datafind_first_url) BaseElement)ViewBox TransformXLink) PresentationClipping)CDATAceZdZdZdZdS)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__ elementnamec/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/svgwrite/container.pyrr"s  KKKrrceZdZdZdZdS)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**. defsNrrrrrr3sKKKrrceZdZdZdZdS)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. symbolNrrrrrr;sKKKrrc(eZdZdZdZdfd ZxZS)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 tt|jd i|||d|d<|d|d<||d|d<|d|d<|||d<d |jvr||d <dSdS) z :param 2-tuple insert: reference point (**refX**, **refY**) :param 2-tuple size: (**markerWidth**, **markerHeight**) :param orient: ``'auto'`` | `angle` :param extra: additional SVG attributes as keyword-arguments NrrefXrefY markerWidth markerHeightorientidr)superr!__init__attribsnext_id)selfinsertsizer)extra __class__s rr,zMarker.__init__Qs %fd$--u---  !!9DL!!9DL  "&q'D #'7D  #DN t| # #DJJJ $ #r)NNNrrrrrr, __classcell__r3s@rr!r!FsNK((((((((((rr!zF@font-face{{ font-family: "{name}"; src: url("{data}"); }} c@eZdZdZdZd fd ZdZdZdZdZ xZ S) SVGa A SVG document fragment consists of any number of SVG elements contained within an **svg** element. An SVG document fragment can range from an empty fragment (i.e., no content inside of the **svg** element), to a very simple SVG document fragment containing a single SVG graphics element such as a **rect**, to a complex, deeply nested collection of container elements and graphics elements. svgNc tt|jd i|||d|d<|d|d<||d|d<|d|d<t||_||jdS) z :param 2-tuple insert: insert position (**x**, **y**) :param 2-tuple size: (**width**, **height**) :param extra: additional SVG attributes as keyword-arguments Nrxr%ywidthheight)factoryr)r+r8r,rradd)r/r0r1r2r3s rr,z SVG.__init__ws "c4!**E***  q DIq DI   GDM!!WDN&&&  rcP|jt|S)z Add