@webref/idl 3.17.0 → 3.17.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/anchors.idl +7 -0
- package/compute-pressure.idl +1 -1
- package/hr-time.idl +1 -1
- package/media-source.idl +4 -1
- package/package.json +1 -1
- package/scroll-animations.idl +6 -0
- package/secure-payment-confirmation.idl +1 -0
- package/video-rvfc.idl +2 -2
- package/web-animations.idl +0 -5
- package/webaudio.idl +2 -0
- package/webcodecs.idl +1 -2
- package/webrtc-stats.idl +14 -0
- package/webxrlayers.idl +10 -2
package/anchors.idl
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
interface XRAnchor {
|
|
8
8
|
readonly attribute XRSpace anchorSpace;
|
|
9
9
|
|
|
10
|
+
Promise<DOMString> requestPersistentHandle();
|
|
11
|
+
|
|
10
12
|
undefined delete();
|
|
11
13
|
};
|
|
12
14
|
|
|
@@ -14,6 +16,11 @@ partial interface XRFrame {
|
|
|
14
16
|
Promise<XRAnchor> createAnchor(XRRigidTransform pose, XRSpace space);
|
|
15
17
|
};
|
|
16
18
|
|
|
19
|
+
partial interface XRSession {
|
|
20
|
+
Promise<XRAnchor> restorePersistentAnchor(DOMString uuid);
|
|
21
|
+
Promise<undefined> deletePersistentAnchor(DOMString uuid);
|
|
22
|
+
};
|
|
23
|
+
|
|
17
24
|
partial interface XRHitTestResult {
|
|
18
25
|
Promise<XRAnchor> createAnchor();
|
|
19
26
|
};
|
package/compute-pressure.idl
CHANGED
package/hr-time.idl
CHANGED
package/media-source.idl
CHANGED
|
@@ -17,7 +17,10 @@ enum EndOfStreamError {
|
|
|
17
17
|
[Exposed=(Window,DedicatedWorker)]
|
|
18
18
|
interface MediaSource : EventTarget {
|
|
19
19
|
constructor();
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
[ SameObject, Exposed=DedicatedWorker ]
|
|
22
|
+
readonly attribute MediaSourceHandle handle;
|
|
23
|
+
|
|
21
24
|
readonly attribute SourceBufferList sourceBuffers;
|
|
22
25
|
readonly attribute SourceBufferList activeSourceBuffers;
|
|
23
26
|
readonly attribute ReadyState readyState;
|
package/package.json
CHANGED
package/scroll-animations.idl
CHANGED
|
@@ -34,3 +34,9 @@ interface ViewTimeline : ScrollTimeline {
|
|
|
34
34
|
readonly attribute CSSNumericValue startOffset;
|
|
35
35
|
readonly attribute CSSNumericValue endOffset;
|
|
36
36
|
};
|
|
37
|
+
|
|
38
|
+
[Exposed=Window]
|
|
39
|
+
interface AnimationTimeline {
|
|
40
|
+
readonly attribute CSSNumberish? currentTime;
|
|
41
|
+
CSSNumericValue? getCurrentTime(optional CSSOMString rangeName);
|
|
42
|
+
};
|
package/video-rvfc.idl
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: HTMLVideoElement.requestVideoFrameCallback() (https://wicg.github.io/video-rvfc/)
|
|
5
5
|
|
|
6
|
-
dictionary
|
|
6
|
+
dictionary VideoFrameCallbackMetadata {
|
|
7
7
|
required DOMHighResTimeStamp presentationTime;
|
|
8
8
|
required DOMHighResTimeStamp expectedDisplayTime;
|
|
9
9
|
|
|
@@ -19,7 +19,7 @@ dictionary VideoFrameMetadata {
|
|
|
19
19
|
unsigned long rtpTimestamp;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
callback VideoFrameRequestCallback = undefined(DOMHighResTimeStamp now,
|
|
22
|
+
callback VideoFrameRequestCallback = undefined(DOMHighResTimeStamp now, VideoFrameCallbackMetadata metadata);
|
|
23
23
|
|
|
24
24
|
partial interface HTMLVideoElement {
|
|
25
25
|
unsigned long requestVideoFrameCallback(VideoFrameRequestCallback callback);
|
package/web-animations.idl
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: Web Animations (https://drafts.csswg.org/web-animations-1/)
|
|
5
5
|
|
|
6
|
-
[Exposed=Window]
|
|
7
|
-
interface AnimationTimeline {
|
|
8
|
-
readonly attribute double? currentTime;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
6
|
dictionary DocumentTimelineOptions {
|
|
12
7
|
DOMHighResTimeStamp originTime = 0;
|
|
13
8
|
};
|
package/webaudio.idl
CHANGED
|
@@ -600,6 +600,7 @@ dictionary WaveShaperOptions : AudioNodeOptions {
|
|
|
600
600
|
|
|
601
601
|
[Exposed=Window, SecureContext]
|
|
602
602
|
interface AudioWorklet : Worklet {
|
|
603
|
+
readonly attribute MessagePort port;
|
|
603
604
|
};
|
|
604
605
|
|
|
605
606
|
callback AudioWorkletProcessorConstructor = AudioWorkletProcessor (object options);
|
|
@@ -611,6 +612,7 @@ interface AudioWorkletGlobalScope : WorkletGlobalScope {
|
|
|
611
612
|
readonly attribute unsigned long long currentFrame;
|
|
612
613
|
readonly attribute double currentTime;
|
|
613
614
|
readonly attribute float sampleRate;
|
|
615
|
+
readonly attribute MessagePort port;
|
|
614
616
|
};
|
|
615
617
|
|
|
616
618
|
[Exposed=Window]
|
package/webcodecs.idl
CHANGED
|
@@ -309,7 +309,7 @@ interface VideoFrame {
|
|
|
309
309
|
readonly attribute unsigned long displayWidth;
|
|
310
310
|
readonly attribute unsigned long displayHeight;
|
|
311
311
|
readonly attribute unsigned long long? duration; // microseconds
|
|
312
|
-
readonly attribute long long
|
|
312
|
+
readonly attribute long long timestamp; // microseconds
|
|
313
313
|
readonly attribute VideoColorSpace colorSpace;
|
|
314
314
|
|
|
315
315
|
unsigned long allocationSize(
|
|
@@ -445,7 +445,6 @@ typedef (BufferSource or ReadableStream) ImageBufferSource;
|
|
|
445
445
|
dictionary ImageDecoderInit {
|
|
446
446
|
required DOMString type;
|
|
447
447
|
required ImageBufferSource data;
|
|
448
|
-
PremultiplyAlpha premultiplyAlpha = "default";
|
|
449
448
|
ColorSpaceConversion colorSpaceConversion = "default";
|
|
450
449
|
[EnforceRange] unsigned long desiredWidth;
|
|
451
450
|
[EnforceRange] unsigned long desiredHeight;
|
package/webrtc-stats.idl
CHANGED
|
@@ -10,6 +10,7 @@ enum RTCStatsType {
|
|
|
10
10
|
"remote-inbound-rtp",
|
|
11
11
|
"remote-outbound-rtp",
|
|
12
12
|
"media-source",
|
|
13
|
+
"media-playout",
|
|
13
14
|
"peer-connection",
|
|
14
15
|
"data-channel",
|
|
15
16
|
"stream",
|
|
@@ -84,6 +85,7 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
|
|
|
84
85
|
double totalSamplesDuration;
|
|
85
86
|
unsigned long framesReceived;
|
|
86
87
|
DOMString decoderImplementation;
|
|
88
|
+
DOMString playoutId;
|
|
87
89
|
};
|
|
88
90
|
|
|
89
91
|
dictionary RTCRemoteInboundRtpStreamStats : RTCReceivedRtpStreamStats {
|
|
@@ -156,6 +158,10 @@ dictionary RTCAudioSourceStats : RTCMediaSourceStats {
|
|
|
156
158
|
double totalSamplesDuration;
|
|
157
159
|
double echoReturnLoss;
|
|
158
160
|
double echoReturnLossEnhancement;
|
|
161
|
+
double droppedSamplesDuration;
|
|
162
|
+
unsigned long droppedSamplesEvents;
|
|
163
|
+
double totalCaptureDelay;
|
|
164
|
+
unsigned long long totalSamplesCaptured;
|
|
159
165
|
};
|
|
160
166
|
|
|
161
167
|
dictionary RTCVideoSourceStats : RTCMediaSourceStats {
|
|
@@ -165,6 +171,14 @@ dictionary RTCVideoSourceStats : RTCMediaSourceStats {
|
|
|
165
171
|
double framesPerSecond;
|
|
166
172
|
};
|
|
167
173
|
|
|
174
|
+
dictionary RTCAudioPlayoutStats : RTCStats {
|
|
175
|
+
double synthesizedSamplesDuration;
|
|
176
|
+
unsigned long synthesizedSamplesEvents;
|
|
177
|
+
double totalSamplesDuration;
|
|
178
|
+
double totalPlayoutDelay;
|
|
179
|
+
double totalSamplesCount;
|
|
180
|
+
};
|
|
181
|
+
|
|
168
182
|
dictionary RTCPeerConnectionStats : RTCStats {
|
|
169
183
|
unsigned long dataChannelsOpened;
|
|
170
184
|
unsigned long dataChannelsClosed;
|
package/webxrlayers.idl
CHANGED
|
@@ -16,6 +16,7 @@ enum XRLayerLayout {
|
|
|
16
16
|
|
|
17
17
|
attribute boolean blendTextureSourceAlpha;
|
|
18
18
|
attribute boolean? chromaticAberrationCorrection;
|
|
19
|
+
attribute boolean forceMonoPresentation;
|
|
19
20
|
attribute float opacity;
|
|
20
21
|
readonly attribute unsigned long mipLevels;
|
|
21
22
|
|
|
@@ -31,6 +32,7 @@ enum XRLayerLayout {
|
|
|
31
32
|
|
|
32
33
|
readonly attribute boolean ignoreDepthValues;
|
|
33
34
|
attribute float? fixedFoveation;
|
|
35
|
+
attribute XRRigidTransform? deltaPose;
|
|
34
36
|
};
|
|
35
37
|
|
|
36
38
|
[Exposed=Window] interface XRQuadLayer : XRCompositionLayer {
|
|
@@ -84,9 +86,15 @@ enum XRLayerLayout {
|
|
|
84
86
|
[Exposed=Window] interface XRWebGLSubImage : XRSubImage {
|
|
85
87
|
[SameObject] readonly attribute WebGLTexture colorTexture;
|
|
86
88
|
[SameObject] readonly attribute WebGLTexture? depthStencilTexture;
|
|
89
|
+
[SameObject] readonly attribute WebGLTexture? motionVectorTexture;
|
|
90
|
+
|
|
87
91
|
readonly attribute unsigned long? imageIndex;
|
|
88
|
-
readonly attribute unsigned long
|
|
89
|
-
readonly attribute unsigned long
|
|
92
|
+
readonly attribute unsigned long colorTextureWidth;
|
|
93
|
+
readonly attribute unsigned long colorTextureHeight;
|
|
94
|
+
readonly attribute unsigned long? depthStencilTextureWidth;
|
|
95
|
+
readonly attribute unsigned long? depthStencilTextureHeight;
|
|
96
|
+
readonly attribute unsigned long? motionVectorTextureWidth;
|
|
97
|
+
readonly attribute unsigned long? motionVectorTextureHeight;
|
|
90
98
|
};
|
|
91
99
|
|
|
92
100
|
enum XRTextureType {
|