Skip to content

Truly independent web browser

722 B
Raw Blame
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGAngle
[Exposed=Window]
interface SVGAngle {

    // Angle Unit Types
    const unsigned short SVG_ANGLETYPE_UNKNOWN = 0;
    const unsigned short SVG_ANGLETYPE_UNSPECIFIED = 1;
    const unsigned short SVG_ANGLETYPE_DEG = 2;
    const unsigned short SVG_ANGLETYPE_RAD = 3;
    const unsigned short SVG_ANGLETYPE_GRAD = 4;

    readonly attribute unsigned short unitType;
             attribute float value;
             attribute float valueInSpecifiedUnits;
             attribute DOMString valueAsString;

    undefined newValueSpecifiedUnits(unsigned short unitType, float valueInSpecifiedUnits);
    undefined convertToSpecifiedUnits(unsigned short unitType);
};