From 9b3790f9a1fd54fbd6f7aee19addfa4a5f60c9f5 Mon Sep 17 00:00:00 2001 From: Cody Ebberson Date: Tue, 15 Aug 2023 14:59:46 -0700 Subject: [PATCH] Added BaseRenderingContext2D.prototype.roundRect --- externs/browser/html5.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/externs/browser/html5.js b/externs/browser/html5.js index aaac3bd63e5..56d1f51d65d 100644 --- a/externs/browser/html5.js +++ b/externs/browser/html5.js @@ -362,6 +362,17 @@ Path2D.prototype.arcTo = function(x1, y1, x2, y2, radius) {}; */ Path2D.prototype.rect = function(x, y, w, h) {}; +/** + * @param {number} x + * @param {number} y + * @param {number} w + * @param {number} h + * @param {(number|DOMPointInit|Array)=} radii + * @return {undefined} + * @override + */ +Path2D.prototype.roundRect = function(x, y, w, h, radii) {}; + /** * @param {number} x * @param {number} y @@ -660,6 +671,16 @@ BaseRenderingContext2D.prototype.arcTo = function(x1, y1, x2, y2, radius) {}; */ BaseRenderingContext2D.prototype.rect = function(x, y, w, h) {}; +/** + * @param {number} x + * @param {number} y + * @param {number} w + * @param {number} h + * @param {number|DOMPointInit|Array} radii + * @return {undefined} + */ +BaseRenderingContext2D.prototype.roundRect = function(x, y, w, h, radii) {}; + /** * @param {number} x * @param {number} y