Class SVGRenderer

Renders onto an SVGElement.

Hierarchy (view full)

Constructors

Properties

objectLevel: number = 0

Methods

  • Creates a new SVG element and SVGRenerer with width, height, viewBox, and other metadata attributes set for the given Viewport.

    If options is a boolean, it is interpreted as whether to sanitize (not add unknown SVG entities to) the output.

    Parameters

    • viewport: Viewport
    • options: boolean | FromViewportOptions = true

    Returns {
        element: SVGSVGElement;
        renderer: SVGRenderer;
    }

OpenSource licenses