|        |   | 
- builtins.tuple(builtins.object)
 - 
- DimensionAttrs
 - Dimensions
  
 
 
 
 
  class DimensionAttrs(builtins.tuple) |  
    
|     | 
DimensionAttrs(width: svgen.attribute.SimpleAttribute, height: svgen.attribute.SimpleAttribute) 
  
A grouping for 'width' and 'height' attributes.   |  
|   | 
- Method resolution order:
 
- DimensionAttrs
 
- builtins.tuple
 
- builtins.object
 
 
 
Methods defined here: 
- __getnewargs__(self)
 - Return self as a plain tuple.  Used by copy and pickle.
  
- __repr__(self)
 - Return a nicely formatted representation string
  
- _asdict(self)
 - Return a new dict which maps field names to their values.
  
- _replace(self, /, **kwds)
 - Return a new DimensionAttrs object replacing specified fields with new values
  
 
Class methods defined here: 
- _make(iterable) from builtins.type
 - Make a new DimensionAttrs object from a sequence or iterable
  
 
Static methods defined here: 
- __new__(_cls, width: svgen.attribute.SimpleAttribute, height: svgen.attribute.SimpleAttribute)
 - Create new instance of DimensionAttrs(width, height)
  
 
Readonly properties defined here: 
- height_val
 
- Get the 'height' value for these dimensions.
 
 
- width_val
 
- Get this 'width' value for these dimensions.
 
 
 
Data descriptors defined here: 
- width
 
- Alias for field number 0
 
 
- height
 
- Alias for field number 1
 
 
 
Data and other attributes defined here: 
- __annotations__ = {'height': <class 'svgen.attribute.SimpleAttribute'>, 'width': <class 'svgen.attribute.SimpleAttribute'>}
  
- __match_args__ = ('width', 'height')
  
- __orig_bases__ = (<function NamedTuple>,)
  
- _field_defaults = {}
  
- _fields = ('width', 'height')
  
 
Methods inherited from builtins.tuple: 
- __add__(self, value, /)
 - Return self+value.
  
- __contains__(self, key, /)
 - Return bool(key in self).
  
- __eq__(self, value, /)
 - Return self==value.
  
- __ge__(self, value, /)
 - Return self>=value.
  
- __getattribute__(self, name, /)
 - Return getattr(self, name).
  
- __getitem__(self, key, /)
 - Return self[key].
  
- __gt__(self, value, /)
 - Return self>value.
  
- __hash__(self, /)
 - Return hash(self).
  
- __iter__(self, /)
 - Implement iter(self).
  
- __le__(self, value, /)
 - Return self<=value.
  
- __len__(self, /)
 - Return len(self).
  
- __lt__(self, value, /)
 - Return self<value.
  
- __mul__(self, value, /)
 - Return self*value.
  
- __ne__(self, value, /)
 - Return self!=value.
  
- __rmul__(self, value, /)
 - Return value*self.
  
- count(self, value, /)
 - Return number of occurrences of value.
  
- index(self, value, start=0, stop=9223372036854775807, /)
 - Return first index of value.
 
  
Raises ValueError if the value is not present.  
 
Class methods inherited from builtins.tuple: 
- __class_getitem__(...) from builtins.type
 - See PEP 585
  
 |    
 
  class Dimensions(builtins.tuple) |  
    
|     | 
Dimensions(width: float, height: float) 
  
A set of dimensions describing a rectangular entity.   |  
|   | 
- Method resolution order:
 
- Dimensions
 
- builtins.tuple
 
- builtins.object
 
 
 
Methods defined here: 
- __eq__(self, other: object) -> bool
 - Determine if these dimensions are equivalent to another set.
  
- __getnewargs__(self)
 - Return self as a plain tuple.  Used by copy and pickle.
  
- __hash__(self) -> int
 - Get a suitable hash value for this instance.
  
- __repr__(self)
 - Return a nicely formatted representation string
  
- __str__(self) -> str
 - Get this instance as a string.
  
- _asdict(self)
 - Return a new dict which maps field names to their values.
  
- _replace(self, /, **kwds)
 - Return a new Dimensions object replacing specified fields with new values
  
- scale(self, width_scale: float = 1.0, height_scale: float = 1.0) -> 'Dimensions'
 - Scale these dimensions.
  
- to_centered_square(self, scale: float = 1.0) -> Tuple[ForwardRef('Dimensions'), svgen.cartesian.mutate.Translation]
 - Make dimensions square and determine the resulting translation that
 
would be needed to logically center the new object.  
- to_square(self, scale: float = 1.0) -> 'Dimensions'
 - Convert these dimensions to a scaled square.
  
 
Class methods defined here: 
- _make(iterable) from builtins.type
 - Make a new Dimensions object from a sequence or iterable
  
 
Static methods defined here: 
- __new__(_cls, width: float, height: float)
 - Create new instance of Dimensions(width, height)
  
 
Readonly properties defined here: 
- attrs
 
- Get the 'width' and 'height' attributes for these dimensions.
 
 
- dx
 
- An alias for width.
 
 
- dy
 
- An alias for height.
 
 
- height_attr
 
- Get the 'height' attribute for these dimensions.
 
 
- square
 
- Determine if these dimensions are square.
 
 
- width_attr
 
- Get the 'width' attribute for these dimensions.
 
 
 
Data descriptors defined here: 
- width
 
- Alias for field number 0
 
 
- height
 
- Alias for field number 1
 
 
 
Data and other attributes defined here: 
- __annotations__ = {'height': <class 'float'>, 'width': <class 'float'>}
  
- __match_args__ = ('width', 'height')
  
- __orig_bases__ = (<function NamedTuple>,)
  
- _field_defaults = {}
  
- _fields = ('width', 'height')
  
 
Methods inherited from builtins.tuple: 
- __add__(self, value, /)
 - Return self+value.
  
- __contains__(self, key, /)
 - Return bool(key in self).
  
- __ge__(self, value, /)
 - Return self>=value.
  
- __getattribute__(self, name, /)
 - Return getattr(self, name).
  
- __getitem__(self, key, /)
 - Return self[key].
  
- __gt__(self, value, /)
 - Return self>value.
  
- __iter__(self, /)
 - Implement iter(self).
  
- __le__(self, value, /)
 - Return self<=value.
  
- __len__(self, /)
 - Return len(self).
  
- __lt__(self, value, /)
 - Return self<value.
  
- __mul__(self, value, /)
 - Return self*value.
  
- __ne__(self, value, /)
 - Return self!=value.
  
- __rmul__(self, value, /)
 - Return value*self.
  
- count(self, value, /)
 - Return number of occurrences of value.
  
- index(self, value, start=0, stop=9223372036854775807, /)
 - Return first index of value.
 
  
Raises ValueError if the value is not present.  
 
Class methods inherited from builtins.tuple: 
- __class_getitem__(...) from builtins.type
 - See PEP 585
  
 |    |