|
@@ -20,7 +20,7 @@
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
*/
|
|
|
|
|
|
-// This file is generated from mozilla/CanvasRenderingContext2D.webidl line 28:0. Do not edit!
|
|
|
+// This file is generated from mozilla/CanvasRenderingContext2D.webidl line 61:0. Do not edit!
|
|
|
|
|
|
package js.html;
|
|
|
|
|
@@ -65,7 +65,7 @@ extern class CanvasRenderingContext2D
|
|
|
/** @throws DOMError */
|
|
|
function createRadialGradient( x0 : Float, y0 : Float, r0 : Float, x1 : Float, y1 : Float, r1 : Float ) : CanvasGradient;
|
|
|
/** @throws DOMError */
|
|
|
- function createPattern( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,VideoElement>>, repetition : String ) : CanvasPattern;
|
|
|
+ function createPattern( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,haxe.extern.EitherType<VideoElement,ImageBitmap>>>, repetition : String ) : CanvasPattern;
|
|
|
function clearRect( x : Float, y : Float, w : Float, h : Float ) : Void;
|
|
|
function fillRect( x : Float, y : Float, w : Float, h : Float ) : Void;
|
|
|
function strokeRect( x : Float, y : Float, w : Float, h : Float ) : Void;
|
|
@@ -74,6 +74,7 @@ extern class CanvasRenderingContext2D
|
|
|
function fill( path : Path2D, ?winding : CanvasWindingRule = "nonzero" ) : Void;
|
|
|
@:overload( function() : Void {} )
|
|
|
function stroke( path : Path2D ) : Void;
|
|
|
+ /** @throws DOMError */
|
|
|
function drawFocusIfNeeded( element : Element ) : Void;
|
|
|
function drawCustomFocusRing( element : Element ) : Bool;
|
|
|
@:overload( function( ?winding : CanvasWindingRule = "nonzero" ) : Void {} )
|
|
@@ -89,9 +90,9 @@ extern class CanvasRenderingContext2D
|
|
|
/** @throws DOMError */
|
|
|
function measureText( text : String ) : TextMetrics;
|
|
|
/** @throws DOMError */
|
|
|
- @:overload( function( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,VideoElement>>, dx : Float, dy : Float ) : Void {} )
|
|
|
- @:overload( function( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,VideoElement>>, dx : Float, dy : Float, dw : Float, dh : Float ) : Void {} )
|
|
|
- function drawImage( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,VideoElement>>, sx : Float, sy : Float, sw : Float, sh : Float, dx : Float, dy : Float, dw : Float, dh : Float ) : Void;
|
|
|
+ @:overload( function( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,haxe.extern.EitherType<VideoElement,ImageBitmap>>>, dx : Float, dy : Float ) : Void {} )
|
|
|
+ @:overload( function( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,haxe.extern.EitherType<VideoElement,ImageBitmap>>>, dx : Float, dy : Float, dw : Float, dh : Float ) : Void {} )
|
|
|
+ function drawImage( image : haxe.extern.EitherType<ImageElement,haxe.extern.EitherType<CanvasElement,haxe.extern.EitherType<VideoElement,ImageBitmap>>>, sx : Float, sy : Float, sw : Float, sh : Float, dx : Float, dy : Float, dw : Float, dh : Float ) : Void;
|
|
|
/** @throws DOMError */
|
|
|
function addHitRegion( ?options : HitRegionOptions ) : Void;
|
|
|
function removeHitRegion( id : String ) : Void;
|
|
@@ -104,6 +105,7 @@ extern class CanvasRenderingContext2D
|
|
|
/** @throws DOMError */
|
|
|
@:overload( function( imagedata : ImageData, dx : Float, dy : Float ) : Void {} )
|
|
|
function putImageData( imagedata : ImageData, dx : Float, dy : Float, dirtyX : Float, dirtyY : Float, dirtyWidth : Float, dirtyHeight : Float ) : Void;
|
|
|
+ /** @throws DOMError */
|
|
|
function setLineDash( segments : Array<Float> ) : Void;
|
|
|
function getLineDash() : Array<Float>;
|
|
|
function closePath() : Void;
|
|
@@ -116,4 +118,6 @@ extern class CanvasRenderingContext2D
|
|
|
function rect( x : Float, y : Float, w : Float, h : Float ) : Void;
|
|
|
/** @throws DOMError */
|
|
|
function arc( x : Float, y : Float, radius : Float, startAngle : Float, endAngle : Float, ?anticlockwise : Bool = false ) : Void;
|
|
|
+ /** @throws DOMError */
|
|
|
+ function ellipse( x : Float, y : Float, radiusX : Float, radiusY : Float, rotation : Float, startAngle : Float, endAngle : Float, ?anticlockwise : Bool = false ) : Void;
|
|
|
}
|