mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb/SVG: Stub SVGTransform.setTranslate
This commit is contained in:
parent
c102630a59
commit
5d5f043631
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/jamierocks
Commit: 5d5f043631
Pull-request: https://github.com/SerenityOS/serenity/pull/24231
Reviewed-by: https://github.com/MacDue ✅
3 changed files with 11 additions and 1 deletions
|
@ -43,4 +43,12 @@ float SVGTransform::angle()
|
|||
return 0;
|
||||
}
|
||||
|
||||
// https://svgwg.org/svg2-draft/single-page.html#coords-__svg__SVGTransform__setTranslate
|
||||
void SVGTransform::set_translate(float tx, float ty)
|
||||
{
|
||||
(void)tx;
|
||||
(void)ty;
|
||||
dbgln("FIXME: Implement SVGTransform::set_translate(float tx, float ty)");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -34,6 +34,8 @@ public:
|
|||
Type type();
|
||||
float angle();
|
||||
|
||||
void set_translate(float tx, float ty);
|
||||
|
||||
private:
|
||||
SVGTransform(JS::Realm& realm);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ interface SVGTransform {
|
|||
readonly attribute float angle;
|
||||
|
||||
// FIXME: undefined setMatrix(optional DOMMatrix2DInit matrix = {});
|
||||
// FIXME: undefined setTranslate(float tx, float ty);
|
||||
undefined setTranslate(float tx, float ty);
|
||||
// FIXME: undefined setScale(float sx, float sy);
|
||||
// FIXME: undefined setRotate(float angle, float cx, float cy);
|
||||
// FIXME: undefined setSkewX(float angle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue