mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-29 13:42:37 +00:00 
			
		
		
		
	 aa87b9699e
			
		
	
	
		aa87b9699e
		
	
	
	
	
		
			
			The implementation of this got a little funky, because it has to access methods from CanvasState.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			789 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			789 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| // https://html.spec.whatwg.org/multipage/canvas.html#canvastransform
 | |
| interface mixin CanvasTransform {
 | |
|     undefined scale(unrestricted double x, unrestricted double y);
 | |
|     undefined rotate(unrestricted double radians);
 | |
|     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();
 | |
|     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 resetTransform();
 | |
| };
 |