Function draw_to_svg

  • WARNING: DEPRECATED use draw_to_svg_element instead

    Draw a diagram to an svg element

    Parameters

    • outer_svgelement: SVGSVGElement

      the outer svg element to draw to

    • diagram: Diagram

      the diagram to draw

    • set_html_attribute: boolean = true

      whether to set the html attribute of the outer_svgelement

    • render_text: boolean = true

      whether to render text

    • clear_svg: boolean = true

      whether to clear the svg before drawing

    Returns void