mufasa.graph_svg.families#
Data type families: how ports and edges are colored and which icon they show.
To add a family, add its root data class with a color and an icon file (in icons/) to FAMILIES.
Subclasses of the root belong to the family automatically.
Attributes#
Classes#
Functions#
Module Contents#
- mufasa.graph_svg.families.FAMILIES#
- mufasa.graph_svg.families.UNKNOWN_FAMILY#
- mufasa.graph_svg.families.TYPE_ICONS#
- mufasa.graph_svg.families.family_of(data_type: type) Family#
- Parameters:
data_type (type)
- Return type:
- mufasa.graph_svg.families.icon_of(data_type: type) str#
The most specific icon: the type’s own, else its closest ancestor’s, else its family’s.
- Parameters:
data_type (type)
- Return type:
str