Skip to content

Commit 9b3790f

Browse files
committed
Added BaseRenderingContext2D.prototype.roundRect
1 parent 95a497e commit 9b3790f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

externs/browser/html5.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,17 @@ Path2D.prototype.arcTo = function(x1, y1, x2, y2, radius) {};
362362
*/
363363
Path2D.prototype.rect = function(x, y, w, h) {};
364364

365+
/**
366+
* @param {number} x
367+
* @param {number} y
368+
* @param {number} w
369+
* @param {number} h
370+
* @param {(number|DOMPointInit|Array<DOMPointInit>)=} radii
371+
* @return {undefined}
372+
* @override
373+
*/
374+
Path2D.prototype.roundRect = function(x, y, w, h, radii) {};
375+
365376
/**
366377
* @param {number} x
367378
* @param {number} y
@@ -660,6 +671,16 @@ BaseRenderingContext2D.prototype.arcTo = function(x1, y1, x2, y2, radius) {};
660671
*/
661672
BaseRenderingContext2D.prototype.rect = function(x, y, w, h) {};
662673

674+
/**
675+
* @param {number} x
676+
* @param {number} y
677+
* @param {number} w
678+
* @param {number} h
679+
* @param {number|DOMPointInit|Array<DOMPointInit>} radii
680+
* @return {undefined}
681+
*/
682+
BaseRenderingContext2D.prototype.roundRect = function(x, y, w, h, radii) {};
683+
663684
/**
664685
* @param {number} x
665686
* @param {number} y

0 commit comments

Comments
 (0)