@webref/idl 3.44.2 → 3.44.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/navigation-timing.idl +1 -0
- package/package.json +1 -1
- package/web-animations-2.idl +1 -0
- package/webcodecs.idl +20 -4
- package/webnn.idl +56 -41
package/navigation-timing.idl
CHANGED
|
@@ -16,6 +16,7 @@ interface PerformanceNavigationTiming : PerformanceResourceTiming {
|
|
|
16
16
|
readonly attribute NavigationTimingType type;
|
|
17
17
|
readonly attribute unsigned short redirectCount;
|
|
18
18
|
readonly attribute DOMHighResTimeStamp criticalCHRestart;
|
|
19
|
+
readonly attribute NotRestoredReasons? notRestoredReasons;
|
|
19
20
|
[Default] object toJSON();
|
|
20
21
|
};
|
|
21
22
|
|
package/package.json
CHANGED
package/web-animations-2.idl
CHANGED
package/webcodecs.idl
CHANGED
|
@@ -390,21 +390,37 @@ dictionary PlaneLayout {
|
|
|
390
390
|
enum VideoPixelFormat {
|
|
391
391
|
// 4:2:0 Y, U, V
|
|
392
392
|
"I420",
|
|
393
|
+
"I420P10",
|
|
394
|
+
"I420P12",
|
|
393
395
|
// 4:2:0 Y, U, V, A
|
|
394
396
|
"I420A",
|
|
397
|
+
"I420AP10",
|
|
398
|
+
"I420AP12",
|
|
395
399
|
// 4:2:2 Y, U, V
|
|
396
400
|
"I422",
|
|
401
|
+
"I422P10",
|
|
402
|
+
"I422P12",
|
|
403
|
+
// 4:2:2 Y, U, V, A
|
|
404
|
+
"I422A",
|
|
405
|
+
"I422AP10",
|
|
406
|
+
"I422AP12",
|
|
397
407
|
// 4:4:4 Y, U, V
|
|
398
408
|
"I444",
|
|
409
|
+
"I444P10",
|
|
410
|
+
"I444P12",
|
|
411
|
+
// 4:4:4 Y, U, V, A
|
|
412
|
+
"I444A",
|
|
413
|
+
"I444AP10",
|
|
414
|
+
"I444AP12",
|
|
399
415
|
// 4:2:0 Y, UV
|
|
400
416
|
"NV12",
|
|
401
|
-
//
|
|
417
|
+
// 4:4:4 RGBA
|
|
402
418
|
"RGBA",
|
|
403
|
-
//
|
|
419
|
+
// 4:4:4 RGBX (opaque)
|
|
404
420
|
"RGBX",
|
|
405
|
-
//
|
|
421
|
+
// 4:4:4 BGRA
|
|
406
422
|
"BGRA",
|
|
407
|
-
//
|
|
423
|
+
// 4:4:4 BGRX (opaque)
|
|
408
424
|
"BGRX",
|
|
409
425
|
};
|
|
410
426
|
|
package/webnn.idl
CHANGED
|
@@ -69,7 +69,7 @@ dictionary MLOperandDescriptor {
|
|
|
69
69
|
|
|
70
70
|
// The dimensions field is empty for scalar operands,
|
|
71
71
|
// and non-empty for tensor operands.
|
|
72
|
-
sequence<unsigned long> dimensions = [];
|
|
72
|
+
sequence<[EnforceRange] unsigned long> dimensions = [];
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
@@ -102,7 +102,7 @@ interface MLGraphBuilder {
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
dictionary MLArgMinMaxOptions {
|
|
105
|
-
sequence<unsigned long> axes;
|
|
105
|
+
sequence<[EnforceRange] unsigned long> axes;
|
|
106
106
|
boolean keepDimensions = false;
|
|
107
107
|
boolean selectLastIndex = false;
|
|
108
108
|
};
|
|
@@ -115,7 +115,7 @@ partial interface MLGraphBuilder {
|
|
|
115
115
|
dictionary MLBatchNormalizationOptions {
|
|
116
116
|
MLOperand scale;
|
|
117
117
|
MLOperand bias;
|
|
118
|
-
unsigned long axis = 1;
|
|
118
|
+
[EnforceRange] unsigned long axis = 1;
|
|
119
119
|
float epsilon = 1e-5;
|
|
120
120
|
MLActivation activation;
|
|
121
121
|
};
|
|
@@ -140,7 +140,7 @@ partial interface MLGraphBuilder {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
partial interface MLGraphBuilder {
|
|
143
|
-
MLOperand concat(sequence<MLOperand> inputs, unsigned long axis);
|
|
143
|
+
MLOperand concat(sequence<MLOperand> inputs, [EnforceRange] unsigned long axis);
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
enum MLConv2dFilterOperandLayout {
|
|
@@ -151,10 +151,10 @@ enum MLConv2dFilterOperandLayout {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
dictionary MLConv2dOptions {
|
|
154
|
-
sequence<unsigned long> padding;
|
|
155
|
-
sequence<unsigned long> strides;
|
|
156
|
-
sequence<unsigned long> dilations;
|
|
157
|
-
unsigned long groups = 1;
|
|
154
|
+
sequence<[EnforceRange] unsigned long> padding;
|
|
155
|
+
sequence<[EnforceRange] unsigned long> strides;
|
|
156
|
+
sequence<[EnforceRange] unsigned long> dilations;
|
|
157
|
+
[EnforceRange] unsigned long groups = 1;
|
|
158
158
|
MLInputOperandLayout inputLayout = "nchw";
|
|
159
159
|
MLConv2dFilterOperandLayout filterLayout = "oihw";
|
|
160
160
|
MLOperand bias;
|
|
@@ -172,12 +172,12 @@ enum MLConvTranspose2dFilterOperandLayout {
|
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
dictionary MLConvTranspose2dOptions {
|
|
175
|
-
sequence<unsigned long> padding;
|
|
176
|
-
sequence<unsigned long> strides;
|
|
177
|
-
sequence<unsigned long> dilations;
|
|
178
|
-
sequence<unsigned long> outputPadding;
|
|
179
|
-
sequence<unsigned long> outputSizes;
|
|
180
|
-
unsigned long groups = 1;
|
|
175
|
+
sequence<[EnforceRange] unsigned long> padding;
|
|
176
|
+
sequence<[EnforceRange] unsigned long> strides;
|
|
177
|
+
sequence<[EnforceRange] unsigned long> dilations;
|
|
178
|
+
sequence<[EnforceRange] unsigned long> outputPadding;
|
|
179
|
+
sequence<[EnforceRange] unsigned long> outputSizes;
|
|
180
|
+
[EnforceRange] unsigned long groups = 1;
|
|
181
181
|
MLInputOperandLayout inputLayout = "nchw";
|
|
182
182
|
MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
|
|
183
183
|
MLOperand bias;
|
|
@@ -234,11 +234,11 @@ partial interface MLGraphBuilder {
|
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
partial interface MLGraphBuilder {
|
|
237
|
-
MLOperand expand(MLOperand input, sequence<unsigned long> newShape);
|
|
237
|
+
MLOperand expand(MLOperand input, sequence<[EnforceRange] unsigned long> newShape);
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
dictionary MLGatherOptions {
|
|
241
|
-
unsigned long axis = 0;
|
|
241
|
+
[EnforceRange] unsigned long axis = 0;
|
|
242
242
|
};
|
|
243
243
|
|
|
244
244
|
partial interface MLGraphBuilder {
|
|
@@ -280,8 +280,11 @@ dictionary MLGruOptions {
|
|
|
280
280
|
};
|
|
281
281
|
|
|
282
282
|
partial interface MLGraphBuilder {
|
|
283
|
-
sequence<MLOperand> gru(MLOperand input,
|
|
284
|
-
|
|
283
|
+
sequence<MLOperand> gru(MLOperand input,
|
|
284
|
+
MLOperand weight,
|
|
285
|
+
MLOperand recurrentWeight,
|
|
286
|
+
[EnforceRange] unsigned long steps,
|
|
287
|
+
[EnforceRange] unsigned long hiddenSize,
|
|
285
288
|
optional MLGruOptions options = {});
|
|
286
289
|
};
|
|
287
290
|
|
|
@@ -294,8 +297,11 @@ dictionary MLGruCellOptions {
|
|
|
294
297
|
};
|
|
295
298
|
|
|
296
299
|
partial interface MLGraphBuilder {
|
|
297
|
-
MLOperand gruCell(MLOperand input,
|
|
298
|
-
MLOperand
|
|
300
|
+
MLOperand gruCell(MLOperand input,
|
|
301
|
+
MLOperand weight,
|
|
302
|
+
MLOperand recurrentWeight,
|
|
303
|
+
MLOperand hiddenState,
|
|
304
|
+
[EnforceRange] unsigned long hiddenSize,
|
|
299
305
|
optional MLGruCellOptions options = {});
|
|
300
306
|
};
|
|
301
307
|
|
|
@@ -329,7 +335,7 @@ partial interface MLGraphBuilder {
|
|
|
329
335
|
dictionary MLLayerNormalizationOptions {
|
|
330
336
|
MLOperand scale;
|
|
331
337
|
MLOperand bias;
|
|
332
|
-
sequence<unsigned long> axes;
|
|
338
|
+
sequence<[EnforceRange] unsigned long> axes;
|
|
333
339
|
float epsilon = 1e-5;
|
|
334
340
|
};
|
|
335
341
|
|
|
@@ -374,8 +380,11 @@ dictionary MLLstmOptions {
|
|
|
374
380
|
};
|
|
375
381
|
|
|
376
382
|
partial interface MLGraphBuilder {
|
|
377
|
-
sequence<MLOperand> lstm(MLOperand input,
|
|
378
|
-
|
|
383
|
+
sequence<MLOperand> lstm(MLOperand input,
|
|
384
|
+
MLOperand weight,
|
|
385
|
+
MLOperand recurrentWeight,
|
|
386
|
+
[EnforceRange] unsigned long steps,
|
|
387
|
+
[EnforceRange] unsigned long hiddenSize,
|
|
379
388
|
optional MLLstmOptions options = {});
|
|
380
389
|
};
|
|
381
390
|
|
|
@@ -388,8 +397,12 @@ dictionary MLLstmCellOptions {
|
|
|
388
397
|
};
|
|
389
398
|
|
|
390
399
|
partial interface MLGraphBuilder {
|
|
391
|
-
sequence<MLOperand> lstmCell(MLOperand input,
|
|
392
|
-
MLOperand
|
|
400
|
+
sequence<MLOperand> lstmCell(MLOperand input,
|
|
401
|
+
MLOperand weight,
|
|
402
|
+
MLOperand recurrentWeight,
|
|
403
|
+
MLOperand hiddenState,
|
|
404
|
+
MLOperand cellState,
|
|
405
|
+
[EnforceRange] unsigned long hiddenSize,
|
|
393
406
|
optional MLLstmCellOptions options = {});
|
|
394
407
|
};
|
|
395
408
|
|
|
@@ -411,8 +424,8 @@ dictionary MLPadOptions {
|
|
|
411
424
|
|
|
412
425
|
partial interface MLGraphBuilder {
|
|
413
426
|
MLOperand pad(MLOperand input,
|
|
414
|
-
sequence<unsigned long> beginningPadding,
|
|
415
|
-
sequence<unsigned long> endingPadding,
|
|
427
|
+
sequence<[EnforceRange] unsigned long> beginningPadding,
|
|
428
|
+
sequence<[EnforceRange] unsigned long> endingPadding,
|
|
416
429
|
optional MLPadOptions options = {});
|
|
417
430
|
};
|
|
418
431
|
|
|
@@ -422,13 +435,13 @@ enum MLRoundingType {
|
|
|
422
435
|
};
|
|
423
436
|
|
|
424
437
|
dictionary MLPool2dOptions {
|
|
425
|
-
sequence<unsigned long> windowDimensions;
|
|
426
|
-
sequence<unsigned long> padding;
|
|
427
|
-
sequence<unsigned long> strides;
|
|
428
|
-
sequence<unsigned long> dilations;
|
|
438
|
+
sequence<[EnforceRange] unsigned long> windowDimensions;
|
|
439
|
+
sequence<[EnforceRange] unsigned long> padding;
|
|
440
|
+
sequence<[EnforceRange] unsigned long> strides;
|
|
441
|
+
sequence<[EnforceRange] unsigned long> dilations;
|
|
429
442
|
MLInputOperandLayout layout = "nchw";
|
|
430
443
|
MLRoundingType roundingType = "floor";
|
|
431
|
-
sequence<unsigned long> outputSizes;
|
|
444
|
+
sequence<[EnforceRange] unsigned long> outputSizes;
|
|
432
445
|
};
|
|
433
446
|
|
|
434
447
|
partial interface MLGraphBuilder {
|
|
@@ -442,7 +455,7 @@ partial interface MLGraphBuilder {
|
|
|
442
455
|
};
|
|
443
456
|
|
|
444
457
|
dictionary MLReduceOptions {
|
|
445
|
-
sequence<unsigned long> axes;
|
|
458
|
+
sequence<[EnforceRange] unsigned long> axes;
|
|
446
459
|
boolean keepDimensions = false;
|
|
447
460
|
};
|
|
448
461
|
|
|
@@ -472,8 +485,8 @@ enum MLInterpolationMode {
|
|
|
472
485
|
dictionary MLResample2dOptions {
|
|
473
486
|
MLInterpolationMode mode = "nearest-neighbor";
|
|
474
487
|
sequence<float> scales;
|
|
475
|
-
sequence<unsigned long> sizes;
|
|
476
|
-
sequence<unsigned long> axes;
|
|
488
|
+
sequence<[EnforceRange] unsigned long> sizes;
|
|
489
|
+
sequence<[EnforceRange] unsigned long> axes;
|
|
477
490
|
};
|
|
478
491
|
|
|
479
492
|
partial interface MLGraphBuilder {
|
|
@@ -481,7 +494,7 @@ partial interface MLGraphBuilder {
|
|
|
481
494
|
};
|
|
482
495
|
|
|
483
496
|
partial interface MLGraphBuilder {
|
|
484
|
-
MLOperand reshape(MLOperand input, sequence<unsigned long> newShape);
|
|
497
|
+
MLOperand reshape(MLOperand input, sequence<[EnforceRange] unsigned long> newShape);
|
|
485
498
|
};
|
|
486
499
|
|
|
487
500
|
partial interface MLGraphBuilder {
|
|
@@ -490,7 +503,9 @@ partial interface MLGraphBuilder {
|
|
|
490
503
|
};
|
|
491
504
|
|
|
492
505
|
partial interface MLGraphBuilder {
|
|
493
|
-
MLOperand slice(MLOperand input,
|
|
506
|
+
MLOperand slice(MLOperand input,
|
|
507
|
+
sequence<[EnforceRange] unsigned long> starts,
|
|
508
|
+
sequence<[EnforceRange] unsigned long> sizes);
|
|
494
509
|
};
|
|
495
510
|
|
|
496
511
|
partial interface MLGraphBuilder {
|
|
@@ -513,12 +528,12 @@ partial interface MLGraphBuilder {
|
|
|
513
528
|
};
|
|
514
529
|
|
|
515
530
|
dictionary MLSplitOptions {
|
|
516
|
-
unsigned long axis = 0;
|
|
531
|
+
[EnforceRange] unsigned long axis = 0;
|
|
517
532
|
};
|
|
518
533
|
|
|
519
534
|
partial interface MLGraphBuilder {
|
|
520
535
|
sequence<MLOperand> split(MLOperand input,
|
|
521
|
-
(unsigned long or sequence<unsigned long>) splits,
|
|
536
|
+
([EnforceRange] unsigned long or sequence<[EnforceRange] unsigned long>) splits,
|
|
522
537
|
optional MLSplitOptions options = {});
|
|
523
538
|
};
|
|
524
539
|
|
|
@@ -528,7 +543,7 @@ partial interface MLGraphBuilder {
|
|
|
528
543
|
};
|
|
529
544
|
|
|
530
545
|
dictionary MLTransposeOptions {
|
|
531
|
-
sequence<unsigned long> permutation;
|
|
546
|
+
sequence<[EnforceRange] unsigned long> permutation;
|
|
532
547
|
};
|
|
533
548
|
|
|
534
549
|
partial interface MLGraphBuilder {
|
|
@@ -537,7 +552,7 @@ partial interface MLGraphBuilder {
|
|
|
537
552
|
|
|
538
553
|
dictionary MLTriangularOptions {
|
|
539
554
|
boolean upper = true;
|
|
540
|
-
long diagonal = 0;
|
|
555
|
+
[EnforceRange] long diagonal = 0;
|
|
541
556
|
};
|
|
542
557
|
|
|
543
558
|
partial interface MLGraphBuilder {
|