Svg

class Svg : SvgElement

Represents the root <svg> element.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val attributes: MutableMap<String, String>

A map of attributes for the SVG element. Keys are attribute names, and values are their corresponding values.

Link copied to clipboard
open override val children: MutableList<SvgElement>

A list of child SVG elements.

Functions

Link copied to clipboard
open override fun render(): String

Renders the <svg> element and its children as a string.

Link copied to clipboard

Converts an SVG element to its string representation.