···
class Rectangle(DrawingBasicElement):
49
-
Additional keyword arguments are ouput as additional arguments to the
49
+
Additional keyword arguments are output as additional arguments to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, x, y, width, height, **kwargs):
···
class Circle(DrawingBasicElement):
59
-
Additional keyword arguments are ouput as additional properties to the
59
+
Additional keyword arguments are output as additional properties to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, cx, cy, r, **kwargs):
···
stroke-dasharray SVG property to make the edge of a circle look like
72
-
Additional keyword arguments are ouput as additional arguments to the
72
+
Additional keyword arguments are output as additional arguments to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, cx, cy, r, startDeg, endDeg, **kwargs):
if endDeg - startDeg == 360:
···
Path Supports building an SVG path by calling instance methods
corresponding to path commands.
107
-
Additional keyword arguments are ouput as additional properties to the
107
+
Additional keyword arguments are output as additional properties to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, d='', **kwargs):
···
''' A sequence of connected lines (or a polygon)
156
-
Additional keyword arguments are ouput as additional properties to the
156
+
Additional keyword arguments are output as additional properties to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, sx, sy, *points, close=False, **kwargs):
super().__init__(d='', **kwargs)
···
170
-
Additional keyword arguments are ouput as additional properties to the
170
+
Additional keyword arguments are output as additional properties to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, sx, sy, ex, ey, **kwargs):
super().__init__(sx, sy, ex, ey, close=False, **kwargs)
···
178
-
Additional keyword arguments are ouput as additional properties to the
178
+
Additional keyword arguments are output as additional properties to the
SVG node e.g. fill="red", stroke="#ff4477", stroke_width=2. '''
def __init__(self, cx, cy, r, startDeg, endDeg, cw=False, **kwargs):
super().__init__(d='', **kwargs)