bg TddlmZddlmZddlmZmZmZGddeeeeZdS)) BaseElement)strlist) PresentationMarkers TransformcXeZdZdZdZd fd ZdZed dZdd Z fd Z xZ S)Pathz The element represent the outline of a shape which can be filled, stroked, used as a clipping path, or any combination of the three. pathNc tt|jdi|g|_|||jr'|j|j|j dSdS)z :param `iterable` d: *coordinates*, *length* and *commands* :param dict attribs: additional SVG attributes :param extra: additional SVG attributes as keyword-arguments N) superr __init__commandspushdebug validatorcheck_all_svg_attribute_values elementnameattribs)selfdextra __class__s ^/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/svgwrite/path.pyrz Path.__init__sx #dD"++U+++  ! : Z N 9 9$:JDL Y Y Y Y Y Z Zc:|j|dS)z Push commands and coordinates onto the command stack. :param `iterable` elements: *coordinates*, *length* and *commands* N)rextend)relementss rrz Path.push s X&&&&&rT+cDt|}ddd|}d||fzS)Nr)r-z%d,%d)int) large_arc angle_dirlarge_arc_flag sweep_flags r arc_flagszPath.arc_flags(s/Y1%%i0 .*555rFc|ddd|t|ttfr|||n|||||t||||dS)a Helper function for the elliptical-arc command. see SVG-Reference: http://www.w3.org/TR/SVG11/paths.html#PathData :param 2-tuple target: *coordinate* of the arc end point :param number rotation: x-axis-rotation of the ellipse in degrees :param number|2-tuple r: radii rx, ry when r is a *2-tuple* or rx=ry=r if r is a *number* :param bool large_arc: draw the arc sweep of greater than or equal to 180 degrees (**large-arc-flag**) :param angle_dir: ``'+|-'`` ``'+'`` means the arc will be drawn in a "positive-angle" direction (**sweep-flag**) :param bool absolute: indicates that target *coordinates* are absolute else they are relative to the current point Aa)TFN)r isinstancefloatr#r r()rtargetrotationrr$r%absolutes rpush_arcz Path.push_arc.s S))(3444 a% & &  IIaOOOO IIaLLL ( $..I66777 &rctt|jd|jd<t t |S)z Get the XML representation as `ElementTree` object. :return: XML `ElementTree` of this object and all its subelements  r)strrrrr r get_xml)rrs rr6z Path.get_xmlDsA   s ; ;<< ST4  ((***r)N)Tr)TrF) __name__ __module__ __qualname____doc__rrr staticmethodr(r2r6 __classcell__)rs@rr r sK Z Z Z Z Z Z'''666\6 ,+++++++++rr N) svgwrite.basersvgwrite.utilsrsvgwrite.mixinsrrrr r rrr@s&%%%%%""""""<<<<<<<<<<?+?+?+?+?+; <?+?+?+?+?+r