@webref/idl 3.14.0 → 3.15.0
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/html.idl +1 -8
- package/mediacapture-viewport.idl +6 -1
- package/package.json +1 -1
- package/screen-capture.idl +2 -2
- package/secure-payment-confirmation.idl +2 -2
- package/webgpu.idl +4 -1
- package/webnn.idl +8 -21
- package/webxr.idl +6 -5
package/html.idl
CHANGED
|
@@ -1364,14 +1364,7 @@ interface mixin CanvasShadowStyles {
|
|
|
1364
1364
|
|
|
1365
1365
|
interface mixin CanvasFilters {
|
|
1366
1366
|
// filters
|
|
1367
|
-
attribute
|
|
1368
|
-
};
|
|
1369
|
-
|
|
1370
|
-
typedef record<DOMString, any> CanvasFilterInput;
|
|
1371
|
-
|
|
1372
|
-
[Exposed=(Window,Worker,PaintWorklet)]
|
|
1373
|
-
interface CanvasFilter {
|
|
1374
|
-
constructor(optional (CanvasFilterInput or sequence<CanvasFilterInput>) filters);
|
|
1367
|
+
attribute DOMString filter; // (default "none")
|
|
1375
1368
|
};
|
|
1376
1369
|
|
|
1377
1370
|
interface mixin CanvasRect {
|
|
@@ -5,5 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
partial interface MediaDevices {
|
|
7
7
|
Promise<MediaStream> getViewportMedia(
|
|
8
|
-
optional
|
|
8
|
+
optional ViewportMediaStreamConstraints constraints = {});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
dictionary ViewportMediaStreamConstraints {
|
|
12
|
+
(boolean or MediaTrackConstraints) video = true;
|
|
13
|
+
(boolean or MediaTrackConstraints) audio = false;
|
|
9
14
|
};
|
package/package.json
CHANGED
package/screen-capture.idl
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Source: Screen Capture (https://w3c.github.io/mediacapture-screen-share/)
|
|
5
5
|
|
|
6
6
|
partial interface MediaDevices {
|
|
7
|
-
Promise<MediaStream> getDisplayMedia(optional
|
|
7
|
+
Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamOptions options = {});
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
enum SelfCapturePreferenceEnum {
|
|
@@ -22,7 +22,7 @@ enum SurfaceSwitchingPreferenceEnum {
|
|
|
22
22
|
"exclude"
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
dictionary
|
|
25
|
+
dictionary DisplayMediaStreamOptions {
|
|
26
26
|
(boolean or MediaTrackConstraints) video = true;
|
|
27
27
|
(boolean or MediaTrackConstraints) audio = false;
|
|
28
28
|
SelfCapturePreferenceEnum selfBrowserSurface;
|
|
@@ -22,7 +22,7 @@ dictionary AuthenticationExtensionsPaymentInputs {
|
|
|
22
22
|
boolean isPayment;
|
|
23
23
|
|
|
24
24
|
// Only used for authentication.
|
|
25
|
-
USVString
|
|
25
|
+
USVString rpId;
|
|
26
26
|
USVString topOrigin;
|
|
27
27
|
DOMString payeeName;
|
|
28
28
|
USVString payeeOrigin;
|
|
@@ -35,7 +35,7 @@ dictionary CollectedClientPaymentData : CollectedClientData {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
dictionary CollectedClientAdditionalPaymentData {
|
|
38
|
-
required USVString
|
|
38
|
+
required USVString rpId;
|
|
39
39
|
required USVString topOrigin;
|
|
40
40
|
DOMString payeeName;
|
|
41
41
|
USVString payeeOrigin;
|
package/webgpu.idl
CHANGED
|
@@ -18,6 +18,7 @@ interface GPUSupportedLimits {
|
|
|
18
18
|
readonly attribute unsigned long maxTextureDimension3D;
|
|
19
19
|
readonly attribute unsigned long maxTextureArrayLayers;
|
|
20
20
|
readonly attribute unsigned long maxBindGroups;
|
|
21
|
+
readonly attribute unsigned long maxBindingsPerBindGroup;
|
|
21
22
|
readonly attribute unsigned long maxDynamicUniformBuffersPerPipelineLayout;
|
|
22
23
|
readonly attribute unsigned long maxDynamicStorageBuffersPerPipelineLayout;
|
|
23
24
|
readonly attribute unsigned long maxSampledTexturesPerShaderStage;
|
|
@@ -30,11 +31,13 @@ interface GPUSupportedLimits {
|
|
|
30
31
|
readonly attribute unsigned long minUniformBufferOffsetAlignment;
|
|
31
32
|
readonly attribute unsigned long minStorageBufferOffsetAlignment;
|
|
32
33
|
readonly attribute unsigned long maxVertexBuffers;
|
|
34
|
+
readonly attribute unsigned long long maxBufferSize;
|
|
33
35
|
readonly attribute unsigned long maxVertexAttributes;
|
|
34
36
|
readonly attribute unsigned long maxVertexBufferArrayStride;
|
|
35
37
|
readonly attribute unsigned long maxInterStageShaderComponents;
|
|
36
38
|
readonly attribute unsigned long maxInterStageShaderVariables;
|
|
37
39
|
readonly attribute unsigned long maxColorAttachments;
|
|
40
|
+
readonly attribute unsigned long maxColorAttachmentBytesPerPixel;
|
|
38
41
|
readonly attribute unsigned long maxComputeWorkgroupStorageSize;
|
|
39
42
|
readonly attribute unsigned long maxComputeInvocationsPerWorkgroup;
|
|
40
43
|
readonly attribute unsigned long maxComputeWorkgroupSizeX;
|
|
@@ -1188,7 +1191,7 @@ interface GPUUncapturedErrorEvent : Event {
|
|
|
1188
1191
|
DOMString type,
|
|
1189
1192
|
GPUUncapturedErrorEventInit gpuUncapturedErrorEventInitDict
|
|
1190
1193
|
);
|
|
1191
|
-
readonly attribute GPUError error;
|
|
1194
|
+
[SameObject] readonly attribute GPUError error;
|
|
1192
1195
|
};
|
|
1193
1196
|
|
|
1194
1197
|
dictionary GPUUncapturedErrorEventInit : EventInit {
|
package/webnn.idl
CHANGED
|
@@ -31,26 +31,20 @@ interface ML {
|
|
|
31
31
|
MLContext createContext(GPUDevice gpuDevice);
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
required ArrayBufferView resource;
|
|
36
|
-
required sequence<long> dimensions;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
typedef record<DOMString, (ArrayBufferView or MLArrayInput)> MLNamedArrayInputs;
|
|
40
|
-
typedef record<DOMString, ArrayBufferView> MLNamedArrayOutputs;
|
|
34
|
+
typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
|
|
41
35
|
|
|
42
36
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
43
37
|
interface MLContext {};
|
|
44
38
|
|
|
45
39
|
partial interface MLContext {
|
|
46
40
|
[Exposed=(DedicatedWorker)]
|
|
47
|
-
undefined compute(
|
|
41
|
+
undefined compute(
|
|
42
|
+
MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
|
|
48
43
|
};
|
|
49
44
|
|
|
50
45
|
partial interface MLContext {
|
|
51
|
-
Promise<undefined> computeAsync(
|
|
52
|
-
|
|
53
|
-
MLNamedArrayOutputs outputs);
|
|
46
|
+
Promise<undefined> computeAsync(
|
|
47
|
+
MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
|
|
54
48
|
};
|
|
55
49
|
|
|
56
50
|
partial interface MLContext {
|
|
@@ -76,8 +70,7 @@ dictionary MLOperandDescriptor {
|
|
|
76
70
|
required MLOperandType type;
|
|
77
71
|
|
|
78
72
|
// The dimensions field is only required for tensor operands.
|
|
79
|
-
|
|
80
|
-
sequence<long> dimensions;
|
|
73
|
+
sequence<unsigned long> dimensions;
|
|
81
74
|
};
|
|
82
75
|
|
|
83
76
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
@@ -484,13 +477,7 @@ interface MLGraph {};
|
|
|
484
477
|
|
|
485
478
|
typedef (GPUBuffer or GPUTexture) MLGPUResource;
|
|
486
479
|
|
|
487
|
-
|
|
488
|
-
required MLGPUResource resource;
|
|
489
|
-
required sequence<long> dimensions;
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
typedef record<DOMString, (MLGPUResource or MLGPUInput)> MLNamedGPUInputs;
|
|
493
|
-
typedef record<DOMString, MLGPUResource> MLNamedGPUOutputs;
|
|
480
|
+
typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
|
|
494
481
|
|
|
495
482
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
496
483
|
interface MLCommandEncoder {};
|
|
@@ -500,7 +487,7 @@ partial interface MLCommandEncoder {
|
|
|
500
487
|
};
|
|
501
488
|
|
|
502
489
|
partial interface MLCommandEncoder {
|
|
503
|
-
undefined dispatch(MLGraph graph,
|
|
490
|
+
undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
|
|
504
491
|
};
|
|
505
492
|
|
|
506
493
|
partial interface MLCommandEncoder {
|
package/webxr.idl
CHANGED
|
@@ -23,8 +23,8 @@ enum XRSessionMode {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
dictionary XRSessionInit {
|
|
26
|
-
sequence<
|
|
27
|
-
sequence<
|
|
26
|
+
sequence<DOMString> requiredFeatures;
|
|
27
|
+
sequence<DOMString> optionalFeatures;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
enum XRVisibilityState {
|
|
@@ -40,6 +40,7 @@ enum XRVisibilityState {
|
|
|
40
40
|
readonly attribute Float32Array? supportedFrameRates;
|
|
41
41
|
[SameObject] readonly attribute XRRenderState renderState;
|
|
42
42
|
[SameObject] readonly attribute XRInputSourceArray inputSources;
|
|
43
|
+
readonly attribute FrozenArray<DOMString> enabledFeatures;
|
|
43
44
|
|
|
44
45
|
// Methods
|
|
45
46
|
undefined updateRenderState(optional XRRenderStateInit state = {});
|
|
@@ -283,11 +284,11 @@ dictionary XRSessionSupportedPermissionDescriptor: PermissionDescriptor {
|
|
|
283
284
|
|
|
284
285
|
dictionary XRPermissionDescriptor: PermissionDescriptor {
|
|
285
286
|
XRSessionMode mode;
|
|
286
|
-
sequence<
|
|
287
|
-
sequence<
|
|
287
|
+
sequence<DOMString> requiredFeatures;
|
|
288
|
+
sequence<DOMString> optionalFeatures;
|
|
288
289
|
};
|
|
289
290
|
|
|
290
291
|
[Exposed=Window]
|
|
291
292
|
interface XRPermissionStatus: PermissionStatus {
|
|
292
|
-
attribute FrozenArray<
|
|
293
|
+
attribute FrozenArray<DOMString> granted;
|
|
293
294
|
};
|