Output of the svg exporter.

interface SvgExportOutput {
    element: SVGElement;
    height: number;
    svg: string;
    viewBoxOnlySvg: string;
    width: number;
}

Properties

element: SVGElement

The element representing the SVG.

height: number

Height of the svg's content

svg: string

SVG. This is an SVG file that contains a viewBox as well as width/height attributes, which are of course superfluous in many usage scenarios. You can use the viewBoxOnlySvg to the the SVG without width/height.

viewBoxOnlySvg: string

SVG output containing a viewBox that defines the content bounds, but no width or height attributes.

width: number

Width of the svg's content

Version :