mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 11:17:45 +02:00
* Width,Height on TJSHTMLOffscreenCanvas. Add GetContext
This commit is contained in:
parent
107fc7257c
commit
f5c06f52c9
@ -1785,10 +1785,13 @@ type
|
||||
TJSHTMLOffscreenCanvas = Class external name 'OffscreenCanvas' (TJSObject)
|
||||
Public
|
||||
constructor New(x,y : Cardinal); overload;
|
||||
{ getContextAs2DContext reintroduced here to return the subclassed context }
|
||||
Function getContext(contextType : string; contextAttributes : TJSObject) : JSValue;
|
||||
Function getContext(contextType : string) : JSValue;
|
||||
Function getContextAs2DContext(contextType : string; contextAttributes : TJSObject) : TJSOffscreenCanvasRenderingContext2D; external name 'getContext'; reintroduce;
|
||||
Function getContextAs2DContext(contextType : string) : TJSOffscreenCanvasRenderingContext2D; external name 'getContext'; reintroduce;
|
||||
function transferToImageBitmap: TJSImageBitmap;
|
||||
height : Integer;
|
||||
width : Integer;
|
||||
end;
|
||||
|
||||
TJSOffscreenCanvasRenderingContext2D = class external name 'CanvasRenderingContext2D' (TJSBaseCanvasRenderingContext2D)
|
||||
|
Loading…
Reference in New Issue
Block a user