Bitbybit Docs
    Preparing search index...

    Interface SvgElement

    A single drawable SVG element, normalized to subpaths + resolved style.

    interface SvgElement {
        tag: string;
        id?: string;
        className?: string;
        layer?: string;
        style: SvgStyle;
        subpaths: SvgSubpath[];
    }
    Index

    Properties

    tag: string

    SVG tag name: "path" | "rect" | "circle" | "ellipse" | "line" | "polyline" | "polygon".

    id?: string

    id attribute, if any.

    className?: string

    class attribute, verbatim, if any.

    layer?: string

    The Inkscape layer the element is drawn on: the label, else the id, of the nearest enclosing group Inkscape marks as a layer.

    style: SvgStyle

    Resolved presentation style.

    subpaths: SvgSubpath[]

    Geometry as subpaths in SVG user space (transforms already baked in).