@@ -277,6 +277,17 @@ CanvasPathMethods.prototype.arcTo = function(x1, y1, x2, y2, radius) {};
277
277
*/
278
278
CanvasPathMethods . prototype . rect = function ( x , y , w , h ) { } ;
279
279
280
+ /**
281
+ * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect
282
+ * @param {number } x
283
+ * @param {number } y
284
+ * @param {number } w
285
+ * @param {number } h
286
+ * @param {(number|!DOMPointInit|!Array<number|!DOMPointInit>)= } radii
287
+ * @return {undefined }
288
+ */
289
+ CanvasPathMethods . prototype . roundRect = function ( x , y , w , h , radii ) { } ;
290
+
280
291
/**
281
292
* @param {number } x
282
293
* @param {number } y
@@ -362,6 +373,18 @@ Path2D.prototype.arcTo = function(x1, y1, x2, y2, radius) {};
362
373
*/
363
374
Path2D . prototype . rect = function ( x , y , w , h ) { } ;
364
375
376
+ /**
377
+ * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect
378
+ * @param {number } x
379
+ * @param {number } y
380
+ * @param {number } w
381
+ * @param {number } h
382
+ * @param {(number|!DOMPointInit|!Array<number|!DOMPointInit>)= } radii
383
+ * @return {undefined }
384
+ * @override
385
+ */
386
+ Path2D . prototype . roundRect = function ( x , y , w , h , radii ) { } ;
387
+
365
388
/**
366
389
* @param {number } x
367
390
* @param {number } y
@@ -660,6 +683,18 @@ BaseRenderingContext2D.prototype.arcTo = function(x1, y1, x2, y2, radius) {};
660
683
*/
661
684
BaseRenderingContext2D . prototype . rect = function ( x , y , w , h ) { } ;
662
685
686
+ /**
687
+ * https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/roundRect
688
+ * @param {number } x
689
+ * @param {number } y
690
+ * @param {number } w
691
+ * @param {number } h
692
+ * @param {(number|!DOMPointInit|!Array<number|!DOMPointInit>)= } radii
693
+ * @return {undefined }
694
+ * @override
695
+ */
696
+ BaseRenderingContext2D . prototype . roundRect = function ( x , y , w , h , radii ) { } ;
697
+
663
698
/**
664
699
* @param {number } x
665
700
* @param {number } y
@@ -982,6 +1017,7 @@ function CanvasPattern() {}
982
1017
983
1018
/**
984
1019
* @constructor
1020
+ * https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics
985
1021
*/
986
1022
function TextMetrics ( ) { }
987
1023
@@ -1000,6 +1036,27 @@ TextMetrics.prototype.actualBoundingBoxLeft;
1000
1036
/** @const {number|undefined} */
1001
1037
TextMetrics . prototype . actualBoundingBoxRight ;
1002
1038
1039
+ /** @const {number|undefined} */
1040
+ TextMetrics . prototype . fontBoundingBoxAscent ;
1041
+
1042
+ /** @const {number|undefined} */
1043
+ TextMetrics . prototype . fontBoundingBoxDescent ;
1044
+
1045
+ /** @const {number|undefined} */
1046
+ TextMetrics . prototype . emHeightAscent ;
1047
+
1048
+ /** @const {number|undefined} */
1049
+ TextMetrics . prototype . emHeightDescent ;
1050
+
1051
+ /** @const {number|undefined} */
1052
+ TextMetrics . prototype . hangingBaseline ;
1053
+
1054
+ /** @const {number|undefined} */
1055
+ TextMetrics . prototype . alphabeticBaseline ;
1056
+
1057
+ /** @const {number|undefined} */
1058
+ TextMetrics . prototype . ideographicBaseline ;
1059
+
1003
1060
/**
1004
1061
* @param {!Uint8ClampedArray|number } dataOrWidth In the first form, this is the
1005
1062
* array of pixel data. In the second form, this is the image width.
@@ -6182,15 +6239,17 @@ ElementInternals.prototype.validationMessage;
6182
6239
/**
6183
6240
* @return {boolean }
6184
6241
*/
6185
- ElementInternals . prototype . checkValidity = function ( ) { }
6242
+ ElementInternals . prototype . checkValidity =
6243
+ function ( ) { }
6186
6244
6187
- /**
6188
- * @return {boolean }
6189
- */
6190
- ElementInternals . prototype . reportValidity = function ( ) { }
6245
+ /**
6246
+ * @return {boolean }
6247
+ */
6248
+ ElementInternals . prototype . reportValidity =
6249
+ function ( ) { }
6191
6250
6192
- /** @type {!NodeList<!HTMLLabelElement> } */
6193
- ElementInternals . prototype . labels ;
6251
+ /** @type {!NodeList<!HTMLLabelElement> } */
6252
+ ElementInternals . prototype . labels ;
6194
6253
6195
6254
/**
6196
6255
* @see https://html.spec.whatwg.org/multipage/custom-elements.html#the-elementinternals-interface
0 commit comments