1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

LibWeb: Add missing Canvas Context2D transform functions

This commit is contained in:
Bastiaan van der Plaat 2023-09-09 21:57:59 +02:00 committed by Andrew Kaster
parent 0d7b13edac
commit 8e7d3a6acc
4 changed files with 81 additions and 2 deletions

View file

@ -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();
};