Typedoc API Docs
    Preparing search index...

    Enumeration ESVGElementType

    Enumeration of SVG elements.

    Index

    Enumeration Members

    PATH: "path"

    Represents a generic SVG path element.

    <path d="M10 10 H 90 V 90 H 10 L 10 10" />
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path

    CIRCLE: "circle"

    Represents a circle element in SVG.

    <circle cx="50" cy="50" r="40" />
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/circle

    ELLIPSE: "ellipse"

    Represents an ellipse element in SVG.

    <ellipse cx="50" cy="50" rx="40" ry="20" />
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse

    RECT: "rect"

    Represents a rectangle element in SVG.

    <rect x="10" y="10" width="80" height="80" />
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect

    POLYGON: "polygon"

    Represents a polygon element in SVG.

    <polygon points="50,15 100,100 0,100" />
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polygon

    LINE: "line"

    Represents a line element in SVG.

    <line x1="0" y1="0" x2="100" y2="100" />
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line

    POLYLINE: "polyline"

    Represents a polyline element in SVG.

    <polyline points="0,0 50,50 100,0" />
    // makes a connected line from points: [0,0], [50,50], [100,0]

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/polyline

    TEXT: "text"

    Represents a text element in SVG.

    <text x="10" y="50">Hello, SVG!</text>
    

    MDN: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/text

    GROUP: "group"

    Represents a group element in SVG.

    <g>
    <circle cx="50" cy="50" r="40" />
    <rect x="10" y="10" width="80" height="80" />
    </g