mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
LibWeb: Add missing Canvas Context2D transform functions
This commit is contained in:
parent
0d7b13edac
commit
8e7d3a6acc
Notes:
sideshowbarker
2024-07-18 00:54:03 +09:00
Author: https://github.com/bplaat
Commit: 8e7d3a6acc
Pull-request: https://github.com/SerenityOS/serenity/pull/20983
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/awesomekling
4 changed files with 81 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
|||
#import <Geometry/DOMMatrix.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvastransform
|
||||
interface mixin CanvasTransform {
|
||||
undefined scale(unrestricted double x, unrestricted double y);
|
||||
|
@ -5,8 +7,8 @@ interface mixin CanvasTransform {
|
|||
undefined translate(unrestricted double x, unrestricted double y);
|
||||
undefined transform(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f);
|
||||
|
||||
// FIXME: [NewObject] DOMMatrix getTransform();
|
||||
[NewObject] DOMMatrix getTransform();
|
||||
undefined setTransform(unrestricted double a, unrestricted double b, unrestricted double c, unrestricted double d, unrestricted double e, unrestricted double f);
|
||||
// FIXME: undefined setTransform(optional DOMMatrix2DInit transform = {});
|
||||
undefined setTransform(optional DOMMatrix2DInit transform = {});
|
||||
undefined resetTransform();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue