@webref/idl 3.1.1 → 3.1.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/dom.idl +1 -1
- package/package.json +1 -1
- package/scheduling-apis.idl +1 -1
- package/secure-payment-confirmation.idl +1 -0
- package/webcodecs.idl +9 -8
- package/webgpu.idl +5 -5
package/dom.idl
CHANGED
|
@@ -94,7 +94,7 @@ interface AbortController {
|
|
|
94
94
|
[Exposed=*]
|
|
95
95
|
interface AbortSignal : EventTarget {
|
|
96
96
|
[NewObject] static AbortSignal abort(optional any reason);
|
|
97
|
-
[NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
|
|
97
|
+
[Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds);
|
|
98
98
|
|
|
99
99
|
readonly attribute boolean aborted;
|
|
100
100
|
readonly attribute any reason;
|
package/package.json
CHANGED
package/scheduling-apis.idl
CHANGED
package/webcodecs.idl
CHANGED
|
@@ -8,7 +8,7 @@ interface AudioDecoder {
|
|
|
8
8
|
constructor(AudioDecoderInit init);
|
|
9
9
|
|
|
10
10
|
readonly attribute CodecState state;
|
|
11
|
-
readonly attribute long decodeQueueSize;
|
|
11
|
+
readonly attribute unsigned long decodeQueueSize;
|
|
12
12
|
|
|
13
13
|
undefined configure(AudioDecoderConfig config);
|
|
14
14
|
undefined decode(EncodedAudioChunk chunk);
|
|
@@ -31,7 +31,7 @@ interface VideoDecoder {
|
|
|
31
31
|
constructor(VideoDecoderInit init);
|
|
32
32
|
|
|
33
33
|
readonly attribute CodecState state;
|
|
34
|
-
readonly attribute long decodeQueueSize;
|
|
34
|
+
readonly attribute unsigned long decodeQueueSize;
|
|
35
35
|
|
|
36
36
|
undefined configure(VideoDecoderConfig config);
|
|
37
37
|
undefined decode(EncodedVideoChunk chunk);
|
|
@@ -54,7 +54,7 @@ interface AudioEncoder {
|
|
|
54
54
|
constructor(AudioEncoderInit init);
|
|
55
55
|
|
|
56
56
|
readonly attribute CodecState state;
|
|
57
|
-
readonly attribute long encodeQueueSize;
|
|
57
|
+
readonly attribute unsigned long encodeQueueSize;
|
|
58
58
|
|
|
59
59
|
undefined configure(AudioEncoderConfig config);
|
|
60
60
|
undefined encode(AudioData data);
|
|
@@ -83,7 +83,7 @@ interface VideoEncoder {
|
|
|
83
83
|
constructor(VideoEncoderInit init);
|
|
84
84
|
|
|
85
85
|
readonly attribute CodecState state;
|
|
86
|
-
readonly attribute long encodeQueueSize;
|
|
86
|
+
readonly attribute unsigned long encodeQueueSize;
|
|
87
87
|
|
|
88
88
|
undefined configure(VideoEncoderConfig config);
|
|
89
89
|
undefined encode(VideoFrame frame, optional VideoEncoderEncodeOptions options = {});
|
|
@@ -425,6 +425,7 @@ enum VideoMatrixCoefficients {
|
|
|
425
425
|
interface ImageDecoder {
|
|
426
426
|
constructor(ImageDecoderInit init);
|
|
427
427
|
|
|
428
|
+
readonly attribute DOMString type;
|
|
428
429
|
readonly attribute boolean complete;
|
|
429
430
|
readonly attribute Promise<undefined> completed;
|
|
430
431
|
readonly attribute ImageTrackList tracks;
|
|
@@ -462,16 +463,16 @@ interface ImageTrackList {
|
|
|
462
463
|
getter ImageTrack (unsigned long index);
|
|
463
464
|
|
|
464
465
|
readonly attribute Promise<undefined> ready;
|
|
465
|
-
|
|
466
|
-
|
|
466
|
+
readonly attribute unsigned long length;
|
|
467
|
+
readonly attribute long selectedIndex;
|
|
467
468
|
readonly attribute ImageTrack? selectedTrack;
|
|
468
469
|
};
|
|
469
470
|
|
|
470
471
|
[Exposed=(Window,DedicatedWorker)]
|
|
471
472
|
interface ImageTrack : EventTarget {
|
|
472
473
|
readonly attribute boolean animated;
|
|
473
|
-
|
|
474
|
-
|
|
474
|
+
readonly attribute unsigned long frameCount;
|
|
475
|
+
readonly attribute unrestricted float repetitionCount;
|
|
475
476
|
attribute EventHandler onchange;
|
|
476
477
|
attribute boolean selected;
|
|
477
478
|
};
|
package/webgpu.idl
CHANGED
|
@@ -625,7 +625,7 @@ dictionary GPUMultisampleState {
|
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
dictionary GPUFragmentState : GPUProgrammableStage {
|
|
628
|
-
required sequence<GPUColorTargetState
|
|
628
|
+
required sequence<GPUColorTargetState?> targets;
|
|
629
629
|
};
|
|
630
630
|
|
|
631
631
|
dictionary GPUColorTargetState {
|
|
@@ -886,7 +886,7 @@ interface GPUComputePassEncoder {
|
|
|
886
886
|
undefined dispatch(GPUSize32 workgroupCountX, optional GPUSize32 workgroupCountY = 1, optional GPUSize32 workgroupCountZ = 1);
|
|
887
887
|
undefined dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
|
888
888
|
|
|
889
|
-
undefined
|
|
889
|
+
undefined end();
|
|
890
890
|
};
|
|
891
891
|
GPUComputePassEncoder includes GPUObjectBase;
|
|
892
892
|
GPUComputePassEncoder includes GPUCommandsMixin;
|
|
@@ -943,7 +943,7 @@ interface GPURenderPassEncoder {
|
|
|
943
943
|
undefined endOcclusionQuery();
|
|
944
944
|
|
|
945
945
|
undefined executeBundles(sequence<GPURenderBundle> bundles);
|
|
946
|
-
undefined
|
|
946
|
+
undefined end();
|
|
947
947
|
};
|
|
948
948
|
GPURenderPassEncoder includes GPUObjectBase;
|
|
949
949
|
GPURenderPassEncoder includes GPUCommandsMixin;
|
|
@@ -965,7 +965,7 @@ dictionary GPURenderPassTimestampWrite {
|
|
|
965
965
|
typedef sequence<GPURenderPassTimestampWrite> GPURenderPassTimestampWrites;
|
|
966
966
|
|
|
967
967
|
dictionary GPURenderPassDescriptor : GPUObjectDescriptorBase {
|
|
968
|
-
required sequence<GPURenderPassColorAttachment
|
|
968
|
+
required sequence<GPURenderPassColorAttachment?> colorAttachments;
|
|
969
969
|
GPURenderPassDepthStencilAttachment depthStencilAttachment;
|
|
970
970
|
GPUQuerySet occlusionQuerySet;
|
|
971
971
|
GPURenderPassTimestampWrites timestampWrites = [];
|
|
@@ -1005,7 +1005,7 @@ enum GPUStoreOp {
|
|
|
1005
1005
|
};
|
|
1006
1006
|
|
|
1007
1007
|
dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
|
|
1008
|
-
required sequence<GPUTextureFormat
|
|
1008
|
+
required sequence<GPUTextureFormat?> colorFormats;
|
|
1009
1009
|
GPUTextureFormat depthStencilFormat;
|
|
1010
1010
|
GPUSize32 sampleCount = 1;
|
|
1011
1011
|
};
|