svgen.element.mixins package#
Module contents#
A module implementing svg element mixin classes.
- class svgen.element.mixins.FillColorMixin(tag: str = None, text: str = '', attrib: List[Attribute] = None, children: List[Element] = None, allow_no_end_tag: bool = True, class_str: str = None, preformatted: bool = False, **extra)[source]#
Bases:
Element
A mixin class for elements with a ‘fill’ color attribute.
- assign_fill_color(data: str | Hsl | Rgb | Color) None [source]#
Assign a fill color for this instance.
- property has_fill_color: bool#
Determine if this instance has a fill color.