ladybird/Libraries/LibWeb/SVG/SVGTransform.idl

23 lines
942 B
Text

// https://svgwg.org/svg2-draft/single-page.html#coords-InterfaceSVGTransform
[Exposed=Window]
interface SVGTransform {
// Transform Types
const unsigned short SVG_TRANSFORM_UNKNOWN = 0;
const unsigned short SVG_TRANSFORM_MATRIX = 1;
const unsigned short SVG_TRANSFORM_TRANSLATE = 2;
const unsigned short SVG_TRANSFORM_SCALE = 3;
const unsigned short SVG_TRANSFORM_ROTATE = 4;
const unsigned short SVG_TRANSFORM_SKEWX = 5;
const unsigned short SVG_TRANSFORM_SKEWY = 6;
readonly attribute unsigned short type;
[FIXME, SameObject] readonly attribute DOMMatrix matrix;
readonly attribute float angle;
[FIXME] undefined setMatrix(optional DOMMatrix2DInit matrix = {});
undefined setTranslate(float tx, float ty);
undefined setScale(float sx, float sy);
undefined setRotate(float angle, float cx, float cy);
undefined setSkewX(float angle);
undefined setSkewY(float angle);
};