Function draw_to_svg_element

  • Draw a diagram to an svg element

    Parameters

    • outer_svgelement: SVGSVGElement

      the outer svg element to draw to

    • diagram: Diagram

      the diagram to draw

    • options: draw_to_svg_options = {}

      the options for drawing

      options : {
      set_html_attribute? : boolean (true),
      render_text? : boolean (true),
      clear_svg? : boolean (true),
      embed_image? : boolean (false),
      background_color? : string (undefined),
      padding? : number | number[] (10),
      text_scaling_reference_svg? : SVGSVGElement (undefined),
      text_scaling_reference_padding? : number | number[] (undefined),
      }

      define text_scaling_reference_svg and text_scaling_reference_padding to scale text based on another svg element

    Returns void