LibWeb/SVG: Stub SVGTransform.angle

This commit is contained in:
Jamie Mansfield 2024-05-06 12:06:54 +01:00 committed by Andrew Kaster
parent 4406d06d26
commit c102630a59
3 changed files with 9 additions and 1 deletions

View file

@ -36,4 +36,11 @@ SVGTransform::Type SVGTransform::type()
return SVGTransform::Type::Unknown;
}
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__angle
float SVGTransform::angle()
{
dbgln("FIXME: Implement SVGTransform::angle()");
return 0;
}
}

View file

@ -32,6 +32,7 @@ public:
};
Type type();
float angle();
private:
SVGTransform(JS::Realm& realm);

View file

@ -12,7 +12,7 @@ interface SVGTransform {
readonly attribute unsigned short type;
// FIXME: [SameObject] readonly attribute DOMMatrix matrix;
// FIXME: readonly attribute float angle;
readonly attribute float angle;
// FIXME: undefined setMatrix(optional DOMMatrix2DInit matrix = {});
// FIXME: undefined setTranslate(float tx, float ty);