RAIMAD

Function export_svg from raimad.svg

def export_svg(compo: 'rai.typing.CompoLike') -> str
Make an SVG representation of a component.

Parameters
----------
compo : rai.typing.CompoLike
    Component (or Proxy pointing to a component)
    to export to svg.

Returns
-------
str
    A string containing the SVG image.
Click to show code
def export_svg(compo: 'rai.typing.CompoLike') -> str:
    """
    Make an SVG representation of a component.

    Parameters
    ----------
    compo : rai.typing.CompoLike
        Component (or Proxy pointing to a component)
        to export to svg.

    Returns
    -------
    str
        A string containing the SVG image.
    """
    return ''.join(yield_svg(compo))