|        |   | 
- svgen.element.Element(builtins.object)
 - 
- Svg
  
 
 
 
 
  class Svg(svgen.element.Element) |  
    
|     | 
Svg(viewbox: svgen.attribute.viewbox.ViewBox, document: bool = True, **extra) -> None 
  
A class for svg elements.   |  
|   | 
- Method resolution order:
 
- Svg
 
- svgen.element.Element
 
- builtins.object
 
 
 
Methods defined here: 
- __init__(self, viewbox: svgen.attribute.viewbox.ViewBox, document: bool = True, **extra) -> None
 - Construct a new svg element (or document).
  
 
Methods inherited from svgen.element.Element: 
- __getitem__(self, tag: str) -> str
 - Get an attibute as a string.
  
- __setitem__(self, tag: str, value: Union[str, int, float, bool]) -> None
 - Allow adding attributes dict-set style.
  
- add_attribute(self, attr: svgen.attribute.Attribute, strict: bool = True) -> 'Element'
 - Add an attribute to this element.
  
- add_class(self, *data: str) -> None
 - Add a class string.
  
- closing(self, indent: int = 0) -> str
 - Create a string to close this element.
  
- encode(self, output: <class 'TextIO'>, quote: str = '"', indent: int = 0, newlines: bool = True) -> None
 - Encode this element to a string stream.
  
- encode_str(self, quote: str = '"', indent: int = 0, newlines: bool = True) -> str
 - Encode this element to a string.
  
 
Readonly properties inherited from svgen.element.Element: 
- style
 
- Get the style attribute for this element.
 
 
- xml
 
- Get this element as an xml element.
 
 
 
Data descriptors inherited from svgen.element.Element: 
- __dict__
 
- dictionary for instance variables
 
 
- __weakref__
 
- list of weak references to the object
 
 
 |    |