USvgDocument

Immutable parsed SVG tree.

Properties

Link copied to clipboard

Whether the parsed tree contains text nodes.

Link copied to clipboard

Natural SVG viewport size.

Functions

Link copied to clipboard
fun bounds(elementId: String, kind: USvgBoundsKind): USvgRect?

Returns absolute bounds for elementId, or null when no renderable element has that id.

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun toSvg(): String

Serializes the tree while preserving text.

Serializes the tree with explicit writer options.