@webref/idl 3.42.0 → 3.42.2
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/css-transitions.idl +1 -1
- package/css-view-transitions-2.idl +0 -5
- package/dom.idl +1 -0
- package/html.idl +21 -2
- package/media-source.idl +26 -0
- package/package.json +1 -1
- package/storage-buckets.idl +2 -2
- package/turtledove.idl +5 -0
- package/webauthn.idl +1 -1
- package/webgl1.idl +4 -0
- package/webgl2.idl +0 -1
- package/webnn.idl +115 -49
- package/webrtc-encoded-transform.idl +13 -3
- package/webrtc-stats.idl +0 -4
package/css-transitions.idl
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED CONTENT - DO NOT EDIT
|
|
2
2
|
// Content was automatically extracted by Reffy into webref
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
|
-
// Source: CSS Transitions (https://drafts.csswg.org/css-transitions-1/)
|
|
4
|
+
// Source: CSS Transitions Level 1 (https://drafts.csswg.org/css-transitions-1/)
|
|
5
5
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
interface TransitionEvent : Event {
|
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: CSS View Transitions Module Level 2 (https://drafts.csswg.org/css-view-transitions-2/)
|
|
5
5
|
|
|
6
|
-
[Exposed=Window]
|
|
7
|
-
interface PageRevealEvent : Event {
|
|
8
|
-
readonly attribute ViewTransition? viewTransition;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
6
|
dictionary StartViewTransitionOptions {
|
|
12
7
|
UpdateCallback? update = null;
|
|
13
8
|
sequence<DOMString>? type = null;
|
package/dom.idl
CHANGED
|
@@ -339,6 +339,7 @@ interface ShadowRoot : DocumentFragment {
|
|
|
339
339
|
readonly attribute ShadowRootMode mode;
|
|
340
340
|
readonly attribute boolean delegatesFocus;
|
|
341
341
|
readonly attribute SlotAssignmentMode slotAssignment;
|
|
342
|
+
readonly attribute boolean clonable;
|
|
342
343
|
readonly attribute Element host;
|
|
343
344
|
attribute EventHandler onslotchange;
|
|
344
345
|
};
|
package/html.idl
CHANGED
|
@@ -1872,6 +1872,7 @@ interface Navigation : EventTarget {
|
|
|
1872
1872
|
readonly attribute NavigationHistoryEntry? currentEntry;
|
|
1873
1873
|
undefined updateCurrentEntry(NavigationUpdateCurrentEntryOptions options);
|
|
1874
1874
|
readonly attribute NavigationTransition? transition;
|
|
1875
|
+
readonly attribute NavigationActivation? activation;
|
|
1875
1876
|
|
|
1876
1877
|
readonly attribute boolean canGoBack;
|
|
1877
1878
|
readonly attribute boolean canGoForward;
|
|
@@ -1944,6 +1945,13 @@ interface NavigationTransition {
|
|
|
1944
1945
|
readonly attribute Promise<undefined> finished;
|
|
1945
1946
|
};
|
|
1946
1947
|
|
|
1948
|
+
[Exposed=Window]
|
|
1949
|
+
interface NavigationActivation {
|
|
1950
|
+
readonly attribute NavigationHistoryEntry? from;
|
|
1951
|
+
readonly attribute NavigationHistoryEntry entry;
|
|
1952
|
+
readonly attribute NavigationType navigationType;
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1947
1955
|
[Exposed=Window]
|
|
1948
1956
|
interface NavigateEvent : Event {
|
|
1949
1957
|
constructor(DOMString type, NavigateEventInit eventInitDict);
|
|
@@ -2044,6 +2052,16 @@ dictionary HashChangeEventInit : EventInit {
|
|
|
2044
2052
|
USVString newURL = "";
|
|
2045
2053
|
};
|
|
2046
2054
|
|
|
2055
|
+
[Exposed=Window]
|
|
2056
|
+
interface PageRevealEvent : Event {
|
|
2057
|
+
constructor(DOMString type, optional PageRevealEventInit eventInitDict = {});
|
|
2058
|
+
readonly attribute ViewTransition? viewTransition;
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
dictionary PageRevealEventInit : EventInit {
|
|
2062
|
+
ViewTransition? viewTransition = null;
|
|
2063
|
+
};
|
|
2064
|
+
|
|
2047
2065
|
[Exposed=Window]
|
|
2048
2066
|
interface PageTransitionEvent : Event {
|
|
2049
2067
|
constructor(DOMString type, optional PageTransitionEventInit eventInitDict = {});
|
|
@@ -2083,12 +2101,12 @@ dictionary ErrorEventInit : EventInit {
|
|
|
2083
2101
|
interface PromiseRejectionEvent : Event {
|
|
2084
2102
|
constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
|
|
2085
2103
|
|
|
2086
|
-
readonly attribute
|
|
2104
|
+
readonly attribute object promise;
|
|
2087
2105
|
readonly attribute any reason;
|
|
2088
2106
|
};
|
|
2089
2107
|
|
|
2090
2108
|
dictionary PromiseRejectionEventInit : EventInit {
|
|
2091
|
-
required
|
|
2109
|
+
required object promise;
|
|
2092
2110
|
any reason;
|
|
2093
2111
|
};
|
|
2094
2112
|
|
|
@@ -2193,6 +2211,7 @@ interface mixin WindowEventHandlers {
|
|
|
2193
2211
|
attribute EventHandler onoffline;
|
|
2194
2212
|
attribute EventHandler ononline;
|
|
2195
2213
|
attribute EventHandler onpagehide;
|
|
2214
|
+
attribute EventHandler onpagereveal;
|
|
2196
2215
|
attribute EventHandler onpageshow;
|
|
2197
2216
|
attribute EventHandler onpopstate;
|
|
2198
2217
|
attribute EventHandler onrejectionhandled;
|
package/media-source.idl
CHANGED
|
@@ -75,6 +75,32 @@ interface SourceBufferList : EventTarget {
|
|
|
75
75
|
getter SourceBuffer (unsigned long index);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
79
|
+
interface ManagedMediaSource : MediaSource {
|
|
80
|
+
constructor();
|
|
81
|
+
readonly attribute boolean streaming;
|
|
82
|
+
attribute EventHandler onstartstreaming;
|
|
83
|
+
attribute EventHandler onendstreaming;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
87
|
+
interface BufferedChangeEvent : Event {
|
|
88
|
+
constructor(DOMString type, optional BufferedChangeEventInit eventInitDict = {});
|
|
89
|
+
|
|
90
|
+
[SameObject] readonly attribute TimeRanges addedRanges;
|
|
91
|
+
[SameObject] readonly attribute TimeRanges removedRanges;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
dictionary BufferedChangeEventInit : EventInit {
|
|
95
|
+
TimeRanges addedRanges;
|
|
96
|
+
TimeRanges removedRanges;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
[Exposed=(Window,DedicatedWorker)]
|
|
100
|
+
interface ManagedSourceBuffer : SourceBuffer {
|
|
101
|
+
attribute EventHandler onbufferedchange;
|
|
102
|
+
};
|
|
103
|
+
|
|
78
104
|
[Exposed=(Window,DedicatedWorker)]
|
|
79
105
|
partial interface AudioTrack {
|
|
80
106
|
readonly attribute SourceBuffer? sourceBuffer;
|
package/package.json
CHANGED
package/storage-buckets.idl
CHANGED
|
@@ -20,8 +20,8 @@ interface StorageBucketManager {
|
|
|
20
20
|
|
|
21
21
|
dictionary StorageBucketOptions {
|
|
22
22
|
boolean persisted = false;
|
|
23
|
-
unsigned long long
|
|
24
|
-
DOMHighResTimeStamp
|
|
23
|
+
unsigned long long quota;
|
|
24
|
+
DOMHighResTimeStamp expires;
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
[Exposed=(Window,Worker),
|
package/turtledove.idl
CHANGED
|
@@ -69,6 +69,7 @@ dictionary AuctionAdConfig {
|
|
|
69
69
|
USVString trustedScoringSignalsURL;
|
|
70
70
|
sequence<USVString> interestGroupBuyers;
|
|
71
71
|
Promise<any> auctionSignals;
|
|
72
|
+
record<DOMString, DOMString> requestedSize;
|
|
72
73
|
Promise<any> sellerSignals;
|
|
73
74
|
Promise<DOMString> directFromSellerSignalsHeaderAdSlot;
|
|
74
75
|
unsigned long long sellerTimeout;
|
|
@@ -150,6 +151,10 @@ partial dictionary RequestInit {
|
|
|
150
151
|
boolean adAuctionHeaders;
|
|
151
152
|
};
|
|
152
153
|
|
|
154
|
+
partial interface HTMLIFrameElement {
|
|
155
|
+
[CEReactions] attribute boolean adAuctionHeaders;
|
|
156
|
+
};
|
|
157
|
+
|
|
153
158
|
dictionary PreviousWin {
|
|
154
159
|
required long long timeDelta;
|
|
155
160
|
required DOMString adJSON;
|
package/webauthn.idl
CHANGED
|
@@ -32,7 +32,7 @@ dictionary AuthenticatorAttestationResponseJSON {
|
|
|
32
32
|
required Base64URLString authenticatorData;
|
|
33
33
|
required sequence<DOMString> transports;
|
|
34
34
|
// The publicKey field will be missing if pubKeyCredParams was used to
|
|
35
|
-
// negotiate a public-key algorithm that the user agent doesn
|
|
35
|
+
// negotiate a public-key algorithm that the user agent doesn't
|
|
36
36
|
// understand. (See section “Easily accessing credential data” for a
|
|
37
37
|
// list of which algorithms user agents must support.) If using such an
|
|
38
38
|
// algorithm then the public key must be parsed directly from
|
package/webgl1.idl
CHANGED
|
@@ -467,6 +467,7 @@ interface mixin WebGLRenderingContextBase
|
|
|
467
467
|
|
|
468
468
|
const GLenum RGBA4 = 0x8056;
|
|
469
469
|
const GLenum RGB5_A1 = 0x8057;
|
|
470
|
+
const GLenum RGBA8 = 0x8058;
|
|
470
471
|
const GLenum RGB565 = 0x8D62;
|
|
471
472
|
const GLenum DEPTH_COMPONENT16 = 0x81A5;
|
|
472
473
|
const GLenum STENCIL_INDEX8 = 0x8D48;
|
|
@@ -516,6 +517,7 @@ interface mixin WebGLRenderingContextBase
|
|
|
516
517
|
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
|
|
517
518
|
readonly attribute GLsizei drawingBufferWidth;
|
|
518
519
|
readonly attribute GLsizei drawingBufferHeight;
|
|
520
|
+
readonly attribute GLenum drawingBufferFormat;
|
|
519
521
|
attribute PredefinedColorSpace drawingBufferColorSpace;
|
|
520
522
|
attribute PredefinedColorSpace unpackColorSpace;
|
|
521
523
|
|
|
@@ -525,6 +527,8 @@ interface mixin WebGLRenderingContextBase
|
|
|
525
527
|
sequence<DOMString>? getSupportedExtensions();
|
|
526
528
|
object? getExtension(DOMString name);
|
|
527
529
|
|
|
530
|
+
undefined drawingBufferStorage(GLenum sizedFormat, unsigned long width, unsigned long height);
|
|
531
|
+
|
|
528
532
|
undefined activeTexture(GLenum texture);
|
|
529
533
|
undefined attachShader(WebGLProgram program, WebGLShader shader);
|
|
530
534
|
undefined bindAttribLocation(WebGLProgram program, GLuint index, DOMString name);
|
package/webgl2.idl
CHANGED
|
@@ -42,7 +42,6 @@ interface mixin WebGL2RenderingContextBase
|
|
|
42
42
|
const GLenum STENCIL = 0x1802;
|
|
43
43
|
const GLenum RED = 0x1903;
|
|
44
44
|
const GLenum RGB8 = 0x8051;
|
|
45
|
-
const GLenum RGBA8 = 0x8058;
|
|
46
45
|
const GLenum RGB10_A2 = 0x8059;
|
|
47
46
|
const GLenum TEXTURE_BINDING_3D = 0x806A;
|
|
48
47
|
const GLenum UNPACK_SKIP_IMAGES = 0x806D;
|
package/webnn.idl
CHANGED
|
@@ -37,35 +37,26 @@ interface ML {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
40
|
-
interface
|
|
41
|
-
|
|
42
|
-
enum MLInputOperandLayout {
|
|
43
|
-
"nchw",
|
|
44
|
-
"nhwc"
|
|
40
|
+
interface MLActivation {
|
|
45
41
|
};
|
|
46
42
|
|
|
47
|
-
|
|
48
|
-
"float32",
|
|
49
|
-
"float16",
|
|
50
|
-
"int32",
|
|
51
|
-
"uint32",
|
|
52
|
-
"int8",
|
|
53
|
-
"uint8"
|
|
54
|
-
};
|
|
43
|
+
typedef (GPUBuffer or GPUTexture) MLGPUResource;
|
|
55
44
|
|
|
56
|
-
|
|
57
|
-
// The operand data type.
|
|
58
|
-
required MLOperandDataType dataType;
|
|
45
|
+
typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
|
|
59
46
|
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
48
|
+
interface MLCommandEncoder {};
|
|
49
|
+
|
|
50
|
+
partial interface MLCommandEncoder {
|
|
51
|
+
undefined initializeGraph(MLGraph graph);
|
|
62
52
|
};
|
|
63
53
|
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
partial interface MLCommandEncoder {
|
|
55
|
+
undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
|
|
56
|
+
};
|
|
66
57
|
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
partial interface MLCommandEncoder {
|
|
59
|
+
GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
|
|
69
60
|
};
|
|
70
61
|
|
|
71
62
|
typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
|
|
@@ -93,24 +84,8 @@ partial interface MLContext {
|
|
|
93
84
|
MLCommandEncoder createCommandEncoder();
|
|
94
85
|
};
|
|
95
86
|
|
|
96
|
-
typedef (GPUBuffer or GPUTexture) MLGPUResource;
|
|
97
|
-
|
|
98
|
-
typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
|
|
99
|
-
|
|
100
87
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
101
|
-
interface
|
|
102
|
-
|
|
103
|
-
partial interface MLCommandEncoder {
|
|
104
|
-
undefined initializeGraph(MLGraph graph);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
partial interface MLCommandEncoder {
|
|
108
|
-
undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
partial interface MLCommandEncoder {
|
|
112
|
-
GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
|
|
113
|
-
};
|
|
88
|
+
interface MLGraph {};
|
|
114
89
|
|
|
115
90
|
typedef record<DOMString, MLOperand> MLNamedOperands;
|
|
116
91
|
|
|
@@ -134,7 +109,7 @@ interface MLGraphBuilder {
|
|
|
134
109
|
MLOperand constant(MLOperandDescriptor descriptor, MLBufferView bufferView);
|
|
135
110
|
|
|
136
111
|
// Create a single-value operand from the specified number of the specified type.
|
|
137
|
-
MLOperand constant(double value, optional MLOperandDataType
|
|
112
|
+
MLOperand constant(double value, optional MLOperandDataType type = "float32");
|
|
138
113
|
|
|
139
114
|
// Compile the graph up to the specified output operands asynchronously.
|
|
140
115
|
Promise<MLGraph> build(MLNamedOperands outputs);
|
|
@@ -144,6 +119,17 @@ interface MLGraphBuilder {
|
|
|
144
119
|
MLGraph buildSync(MLNamedOperands outputs);
|
|
145
120
|
};
|
|
146
121
|
|
|
122
|
+
dictionary MLArgMinMaxOptions {
|
|
123
|
+
sequence<unsigned long> axes = null;
|
|
124
|
+
boolean keepDimensions = false;
|
|
125
|
+
boolean selectLastIndex = false;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
partial interface MLGraphBuilder {
|
|
129
|
+
MLOperand argMin(MLOperand input, optional MLArgMinMaxOptions options = {});
|
|
130
|
+
MLOperand argMax(MLOperand input, optional MLArgMinMaxOptions options = {});
|
|
131
|
+
};
|
|
132
|
+
|
|
147
133
|
dictionary MLBatchNormalizationOptions {
|
|
148
134
|
MLOperand scale;
|
|
149
135
|
MLOperand bias;
|
|
@@ -157,13 +143,17 @@ partial interface MLGraphBuilder {
|
|
|
157
143
|
optional MLBatchNormalizationOptions options = {});
|
|
158
144
|
};
|
|
159
145
|
|
|
146
|
+
partial interface MLGraphBuilder {
|
|
147
|
+
MLOperand cast(MLOperand input, MLOperandDataType type);
|
|
148
|
+
};
|
|
149
|
+
|
|
160
150
|
dictionary MLClampOptions {
|
|
161
151
|
float minValue;
|
|
162
152
|
float maxValue;
|
|
163
153
|
};
|
|
164
154
|
|
|
165
155
|
partial interface MLGraphBuilder {
|
|
166
|
-
MLOperand clamp(MLOperand
|
|
156
|
+
MLOperand clamp(MLOperand input, optional MLClampOptions options = {});
|
|
167
157
|
MLActivation clamp(optional MLClampOptions options = {});
|
|
168
158
|
};
|
|
169
159
|
|
|
@@ -235,15 +225,28 @@ partial interface MLGraphBuilder {
|
|
|
235
225
|
MLOperand pow(MLOperand a, MLOperand b);
|
|
236
226
|
};
|
|
237
227
|
|
|
228
|
+
partial interface MLGraphBuilder {
|
|
229
|
+
MLOperand equal(MLOperand a, MLOperand b);
|
|
230
|
+
MLOperand greater(MLOperand a, MLOperand b);
|
|
231
|
+
MLOperand greaterOrEqual(MLOperand a, MLOperand b);
|
|
232
|
+
MLOperand lesser(MLOperand a, MLOperand b);
|
|
233
|
+
MLOperand lesserOrEqual(MLOperand a, MLOperand b);
|
|
234
|
+
MLOperand not(MLOperand a);
|
|
235
|
+
};
|
|
236
|
+
|
|
238
237
|
partial interface MLGraphBuilder {
|
|
239
238
|
MLOperand abs(MLOperand input);
|
|
240
239
|
MLOperand ceil(MLOperand input);
|
|
241
240
|
MLOperand cos(MLOperand input);
|
|
241
|
+
MLOperand erf(MLOperand input);
|
|
242
242
|
MLOperand exp(MLOperand input);
|
|
243
243
|
MLOperand floor(MLOperand input);
|
|
244
|
+
MLOperand identity(MLOperand input);
|
|
244
245
|
MLOperand log(MLOperand input);
|
|
245
246
|
MLOperand neg(MLOperand input);
|
|
247
|
+
MLOperand reciprocal(MLOperand input);
|
|
246
248
|
MLOperand sin(MLOperand input);
|
|
249
|
+
MLOperand sqrt(MLOperand input);
|
|
247
250
|
MLOperand tan(MLOperand input);
|
|
248
251
|
};
|
|
249
252
|
|
|
@@ -256,6 +259,18 @@ partial interface MLGraphBuilder {
|
|
|
256
259
|
MLActivation elu(optional MLEluOptions options = {});
|
|
257
260
|
};
|
|
258
261
|
|
|
262
|
+
partial interface MLGraphBuilder {
|
|
263
|
+
MLOperand expand(MLOperand input, sequence<unsigned long> newShape);
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
dictionary MLGatherOptions {
|
|
267
|
+
unsigned long axis = 0;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
partial interface MLGraphBuilder {
|
|
271
|
+
MLOperand gather(MLOperand input, MLOperand indices, optional MLGatherOptions options = {});
|
|
272
|
+
};
|
|
273
|
+
|
|
259
274
|
dictionary MLGemmOptions {
|
|
260
275
|
MLOperand c;
|
|
261
276
|
float alpha = 1.0;
|
|
@@ -337,6 +352,17 @@ partial interface MLGraphBuilder {
|
|
|
337
352
|
optional MLInstanceNormalizationOptions options = {});
|
|
338
353
|
};
|
|
339
354
|
|
|
355
|
+
dictionary MLLayerNormalizationOptions {
|
|
356
|
+
MLOperand scale;
|
|
357
|
+
MLOperand bias;
|
|
358
|
+
sequence<unsigned long> axes;
|
|
359
|
+
float epsilon = 1e-5;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
partial interface MLGraphBuilder {
|
|
363
|
+
MLOperand layerNormalization(MLOperand input, optional MLLayerNormalizationOptions options = {});
|
|
364
|
+
};
|
|
365
|
+
|
|
340
366
|
dictionary MLLeakyReluOptions {
|
|
341
367
|
float alpha = 0.01;
|
|
342
368
|
};
|
|
@@ -523,14 +549,6 @@ partial interface MLGraphBuilder {
|
|
|
523
549
|
optional MLSplitOptions options = {});
|
|
524
550
|
};
|
|
525
551
|
|
|
526
|
-
dictionary MLSqueezeOptions {
|
|
527
|
-
sequence<unsigned long> axes;
|
|
528
|
-
};
|
|
529
|
-
|
|
530
|
-
partial interface MLGraphBuilder {
|
|
531
|
-
MLOperand squeeze(MLOperand input, optional MLSqueezeOptions options = {});
|
|
532
|
-
};
|
|
533
|
-
|
|
534
552
|
partial interface MLGraphBuilder {
|
|
535
553
|
MLOperand tanh(MLOperand input);
|
|
536
554
|
MLActivation tanh();
|
|
@@ -543,3 +561,51 @@ dictionary MLTransposeOptions {
|
|
|
543
561
|
partial interface MLGraphBuilder {
|
|
544
562
|
MLOperand transpose(MLOperand input, optional MLTransposeOptions options = {});
|
|
545
563
|
};
|
|
564
|
+
|
|
565
|
+
dictionary MLTriangularOptions {
|
|
566
|
+
boolean upper = true;
|
|
567
|
+
long diagonal = 0;
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
partial interface MLGraphBuilder {
|
|
571
|
+
MLOperand triangular(MLOperand input, optional MLTriangularOptions options = {});
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
partial interface MLGraphBuilder {
|
|
575
|
+
MLOperand where(MLOperand condition, MLOperand input, MLOperand other);
|
|
576
|
+
};
|
|
577
|
+
|
|
578
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
579
|
+
interface MLOperand {};
|
|
580
|
+
|
|
581
|
+
partial interface MLOperand {
|
|
582
|
+
MLOperandDataType dataType();
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
partial interface MLOperand {
|
|
586
|
+
sequence<unsigned long> shape();
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
enum MLInputOperandLayout {
|
|
590
|
+
"nchw",
|
|
591
|
+
"nhwc"
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
enum MLOperandDataType {
|
|
595
|
+
"float32",
|
|
596
|
+
"float16",
|
|
597
|
+
"int32",
|
|
598
|
+
"uint32",
|
|
599
|
+
"int64",
|
|
600
|
+
"uint64",
|
|
601
|
+
"int8",
|
|
602
|
+
"uint8"
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
dictionary MLOperandDescriptor {
|
|
606
|
+
// The operand type.
|
|
607
|
+
required MLOperandDataType dataType;
|
|
608
|
+
|
|
609
|
+
// The dimensions field is only required for tensor operands.
|
|
610
|
+
sequence<unsigned long> dimensions;
|
|
611
|
+
};
|
|
@@ -112,12 +112,16 @@ partial interface DedicatedWorkerGlobalScope {
|
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
[Exposed=DedicatedWorker]
|
|
115
|
-
interface RTCRtpScriptTransformer {
|
|
115
|
+
interface RTCRtpScriptTransformer : EventTarget {
|
|
116
|
+
// Attributes and methods related to the transformer source
|
|
116
117
|
readonly attribute ReadableStream readable;
|
|
117
|
-
readonly attribute WritableStream writable;
|
|
118
|
-
readonly attribute any options;
|
|
119
118
|
Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
|
|
120
119
|
Promise<undefined> sendKeyFrameRequest();
|
|
120
|
+
// Attributes and methods related to the transformer sink
|
|
121
|
+
readonly attribute WritableStream writable;
|
|
122
|
+
attribute EventHandler onkeyframerequest;
|
|
123
|
+
// Attributes for configuring the Javascript code
|
|
124
|
+
readonly attribute any options;
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
[Exposed=Window]
|
|
@@ -125,6 +129,12 @@ interface RTCRtpScriptTransform {
|
|
|
125
129
|
constructor(Worker worker, optional any options, optional sequence<object> transfer);
|
|
126
130
|
};
|
|
127
131
|
|
|
132
|
+
[Exposed=DedicatedWorker]
|
|
133
|
+
interface KeyFrameRequestEvent : Event {
|
|
134
|
+
constructor(DOMString type, optional DOMString rid);
|
|
135
|
+
readonly attribute DOMString? rid;
|
|
136
|
+
};
|
|
137
|
+
|
|
128
138
|
partial interface RTCRtpSender {
|
|
129
139
|
Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
|
|
130
140
|
};
|
package/webrtc-stats.idl
CHANGED
|
@@ -171,10 +171,6 @@ dictionary RTCAudioSourceStats : RTCMediaSourceStats {
|
|
|
171
171
|
double totalSamplesDuration;
|
|
172
172
|
double echoReturnLoss;
|
|
173
173
|
double echoReturnLossEnhancement;
|
|
174
|
-
double droppedSamplesDuration;
|
|
175
|
-
unsigned long droppedSamplesEvents;
|
|
176
|
-
double totalCaptureDelay;
|
|
177
|
-
unsigned long long totalSamplesCaptured;
|
|
178
174
|
};
|
|
179
175
|
|
|
180
176
|
dictionary RTCVideoSourceStats : RTCMediaSourceStats {
|