@@ -117,11 +117,13 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
117
117
interface AuthenticationExtensionsClientInputs {
118
118
appid?: string;
119
119
credProps?: boolean;
120
+ hmacCreateSecret?: boolean;
120
121
}
121
122
122
123
interface AuthenticationExtensionsClientOutputs {
123
124
appid?: boolean;
124
125
credProps?: CredentialPropertiesOutput;
126
+ hmacCreateSecret?: boolean;
125
127
}
126
128
127
129
interface AuthenticatorSelectionCriteria {
@@ -1324,6 +1326,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
1324
1326
frameHeight?: number;
1325
1327
frameWidth?: number;
1326
1328
framesDecoded?: number;
1329
+ framesDropped?: number;
1327
1330
framesPerSecond?: number;
1328
1331
framesReceived?: number;
1329
1332
headerBytesReceived?: number;
@@ -1343,6 +1346,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
1343
1346
totalAudioEnergy?: number;
1344
1347
totalDecodeTime?: number;
1345
1348
totalInterFrameDelay?: number;
1349
+ totalProcessingDelay?: number;
1346
1350
totalSamplesDuration?: number;
1347
1351
totalSamplesReceived?: number;
1348
1352
totalSquaredInterFrameDelay?: number;
@@ -1401,7 +1405,6 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
1401
1405
}
1402
1406
1403
1407
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
1404
- framesDropped?: number;
1405
1408
jitter?: number;
1406
1409
packetsLost?: number;
1407
1410
packetsReceived?: number;
@@ -1446,6 +1449,8 @@ interface RTCRtpContributingSource {
1446
1449
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
1447
1450
active?: boolean;
1448
1451
maxBitrate?: number;
1452
+ maxFramerate?: number;
1453
+ networkPriority?: RTCPriorityType;
1449
1454
priority?: RTCPriorityType;
1450
1455
scaleResolutionDownBy?: number;
1451
1456
}
@@ -1866,10 +1871,10 @@ interface ValidityStateFlags {
1866
1871
}
1867
1872
1868
1873
interface VideoColorSpaceInit {
1869
- fullRange?: boolean;
1870
- matrix?: VideoMatrixCoefficients;
1871
- primaries?: VideoColorPrimaries;
1872
- transfer?: VideoTransferCharacteristics;
1874
+ fullRange?: boolean | null ;
1875
+ matrix?: VideoMatrixCoefficients | null ;
1876
+ primaries?: VideoColorPrimaries | null ;
1877
+ transfer?: VideoTransferCharacteristics | null ;
1873
1878
}
1874
1879
1875
1880
interface VideoConfiguration {
@@ -1884,7 +1889,7 @@ interface VideoConfiguration {
1884
1889
width: number;
1885
1890
}
1886
1891
1887
- interface VideoFrameMetadata {
1892
+ interface VideoFrameCallbackMetadata {
1888
1893
captureTime?: DOMHighResTimeStamp;
1889
1894
expectedDisplayTime: DOMHighResTimeStamp;
1890
1895
height: number;
@@ -2046,7 +2051,7 @@ interface AbortSignal extends EventTarget {
2046
2051
declare var AbortSignal: {
2047
2052
prototype: AbortSignal;
2048
2053
new(): AbortSignal;
2049
- // abort(): AbortSignal; - To be re-added in the future
2054
+ abort(reason?: any ): AbortSignal;
2050
2055
timeout(milliseconds: number): AbortSignal;
2051
2056
};
2052
2057
@@ -2182,7 +2187,7 @@ declare var AnimationPlaybackEvent: {
2182
2187
};
2183
2188
2184
2189
interface AnimationTimeline {
2185
- readonly currentTime: number | null;
2190
+ readonly currentTime: CSSNumberish | null;
2186
2191
}
2187
2192
2188
2193
declare var AnimationTimeline: {
@@ -2435,6 +2440,8 @@ declare var AuthenticatorAssertionResponse: {
2435
2440
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
2436
2441
readonly attestationObject: ArrayBuffer;
2437
2442
getAuthenticatorData(): ArrayBuffer;
2443
+ getPublicKey(): ArrayBuffer | null;
2444
+ getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
2438
2445
getTransports(): string[];
2439
2446
}
2440
2447
@@ -2634,6 +2641,14 @@ declare var CSSConditionRule: {
2634
2641
new(): CSSConditionRule;
2635
2642
};
2636
2643
2644
+ interface CSSContainerRule extends CSSConditionRule {
2645
+ }
2646
+
2647
+ declare var CSSContainerRule: {
2648
+ prototype: CSSContainerRule;
2649
+ new(): CSSContainerRule;
2650
+ };
2651
+
2637
2652
interface CSSCounterStyleRule extends CSSRule {
2638
2653
additiveSymbols: string;
2639
2654
fallback: string;
@@ -2943,6 +2958,9 @@ interface CSSStyleDeclaration {
2943
2958
columnWidth: string;
2944
2959
columns: string;
2945
2960
contain: string;
2961
+ container: string;
2962
+ containerName: string;
2963
+ containerType: string;
2946
2964
content: string;
2947
2965
counterIncrement: string;
2948
2966
counterReset: string;
@@ -3011,6 +3029,7 @@ interface CSSStyleDeclaration {
3011
3029
gridTemplateColumns: string;
3012
3030
gridTemplateRows: string;
3013
3031
height: string;
3032
+ hyphenateCharacter: string;
3014
3033
hyphens: string;
3015
3034
/** @deprecated */
3016
3035
imageOrientation: string;
@@ -3087,6 +3106,7 @@ interface CSSStyleDeclaration {
3087
3106
outlineWidth: string;
3088
3107
overflow: string;
3089
3108
overflowAnchor: string;
3109
+ overflowClipMargin: string;
3090
3110
overflowWrap: string;
3091
3111
overflowX: string;
3092
3112
overflowY: string;
@@ -3544,6 +3564,7 @@ interface CanvasPath {
3544
3564
moveTo(x: number, y: number): void;
3545
3565
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
3546
3566
rect(x: number, y: number, w: number, h: number): void;
3567
+ roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
3547
3568
}
3548
3569
3549
3570
interface CanvasPathDrawingStyles {
@@ -4950,6 +4971,17 @@ interface EXT_texture_filter_anisotropic {
4950
4971
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
4951
4972
}
4952
4973
4974
+ interface EXT_texture_norm16 {
4975
+ readonly R16_EXT: GLenum;
4976
+ readonly R16_SNORM_EXT: GLenum;
4977
+ readonly RG16_EXT: GLenum;
4978
+ readonly RG16_SNORM_EXT: GLenum;
4979
+ readonly RGB16_EXT: GLenum;
4980
+ readonly RGB16_SNORM_EXT: GLenum;
4981
+ readonly RGBA16_EXT: GLenum;
4982
+ readonly RGBA16_SNORM_EXT: GLenum;
4983
+ }
4984
+
4953
4985
interface ElementEventMap {
4954
4986
"fullscreenchange": Event;
4955
4987
"fullscreenerror": Event;
@@ -6290,6 +6322,7 @@ interface HTMLCanvasElement extends HTMLElement {
6290
6322
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
6291
6323
*/
6292
6324
toDataURL(type?: string, quality?: any): string;
6325
+ transferControlToOffscreen(): OffscreenCanvas;
6293
6326
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6294
6327
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6295
6328
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -9004,7 +9037,7 @@ declare var ImageBitmap: {
9004
9037
9005
9038
interface ImageBitmapRenderingContext {
9006
9039
/** Returns the canvas element that the context is bound to. */
9007
- readonly canvas: HTMLCanvasElement;
9040
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas ;
9008
9041
/** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
9009
9042
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
9010
9043
}
@@ -9035,6 +9068,7 @@ interface InnerHTML {
9035
9068
innerHTML: string;
9036
9069
}
9037
9070
9071
+ /** Available only in secure contexts. */
9038
9072
interface InputDeviceInfo extends MediaDeviceInfo {
9039
9073
}
9040
9074
@@ -10239,6 +10273,16 @@ declare var Notification: {
10239
10273
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
10240
10274
};
10241
10275
10276
+ interface OES_draw_buffers_indexed {
10277
+ blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
10278
+ blendEquationiOES(buf: GLuint, mode: GLenum): void;
10279
+ blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
10280
+ blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
10281
+ colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
10282
+ disableiOES(target: GLenum, index: GLuint): void;
10283
+ enableiOES(target: GLenum, index: GLuint): void;
10284
+ }
10285
+
10242
10286
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
10243
10287
interface OES_element_index_uint {
10244
10288
}
@@ -10317,6 +10361,57 @@ declare var OfflineAudioContext: {
10317
10361
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
10318
10362
};
10319
10363
10364
+ interface OffscreenCanvasEventMap {
10365
+ "contextlost": Event;
10366
+ "contextrestored": Event;
10367
+ }
10368
+
10369
+ interface OffscreenCanvas extends EventTarget {
10370
+ /**
10371
+ * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
10372
+ *
10373
+ * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
10374
+ */
10375
+ height: number;
10376
+ oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
10377
+ oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
10378
+ /**
10379
+ * These attributes return the dimensions of the OffscreenCanvas object's bitmap.
10380
+ *
10381
+ * They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
10382
+ */
10383
+ width: number;
10384
+ /**
10385
+ * Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
10386
+ *
10387
+ * This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
10388
+ *
10389
+ * Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
10390
+ */
10391
+ getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
10392
+ /** Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image. */
10393
+ transferToImageBitmap(): ImageBitmap;
10394
+ addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
10395
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10396
+ removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
10397
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
10398
+ }
10399
+
10400
+ declare var OffscreenCanvas: {
10401
+ prototype: OffscreenCanvas;
10402
+ new(width: number, height: number): OffscreenCanvas;
10403
+ };
10404
+
10405
+ interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
10406
+ readonly canvas: OffscreenCanvas;
10407
+ commit(): void;
10408
+ }
10409
+
10410
+ declare var OffscreenCanvasRenderingContext2D: {
10411
+ prototype: OffscreenCanvasRenderingContext2D;
10412
+ new(): OffscreenCanvasRenderingContext2D;
10413
+ };
10414
+
10320
10415
/** The OscillatorNode interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency of a given wave to be created—in effect, a constant tone. */
10321
10416
interface OscillatorNode extends AudioScheduledSourceNode {
10322
10417
readonly detune: AudioParam;
@@ -16027,7 +16122,7 @@ declare var WebGLRenderingContext: {
16027
16122
};
16028
16123
16029
16124
interface WebGLRenderingContextBase {
16030
- readonly canvas: HTMLCanvasElement;
16125
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas ;
16031
16126
readonly drawingBufferHeight: GLsizei;
16032
16127
readonly drawingBufferWidth: GLsizei;
16033
16128
activeTexture(texture: GLenum): void;
@@ -17505,7 +17600,7 @@ interface UnderlyingSourceStartCallback<R> {
17505
17600
}
17506
17601
17507
17602
interface VideoFrameRequestCallback {
17508
- (now: DOMHighResTimeStamp, metadata: VideoFrameMetadata ): void;
17603
+ (now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata ): void;
17509
17604
}
17510
17605
17511
17606
interface VoidFunction {
@@ -18182,7 +18277,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
18182
18277
type BufferSource = ArrayBufferView | ArrayBuffer;
18183
18278
type COSEAlgorithmIdentifier = number;
18184
18279
type CSSNumberish = number;
18185
- type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
18280
+ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas ;
18186
18281
type ClipboardItemData = Promise<string | Blob>;
18187
18282
type ClipboardItems = ClipboardItem[];
18188
18283
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
@@ -18219,6 +18314,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
18219
18314
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
18220
18315
type MutationRecordType = "attributes" | "characterData" | "childList";
18221
18316
type NamedCurve = string;
18317
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18222
18318
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
18223
18319
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
18224
18320
type PerformanceEntryList = PerformanceEntry[];
@@ -18227,9 +18323,9 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
18227
18323
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
18228
18324
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18229
18325
type RequestInfo = Request | string;
18230
- type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
18326
+ type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas ;
18231
18327
type TimerHandler = string | Function;
18232
- type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18328
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18233
18329
type Uint32List = Uint32Array | GLuint[];
18234
18330
type VibratePattern = number | number[];
18235
18331
type WindowProxy = Window;
@@ -18309,6 +18405,7 @@ type MediaStreamTrackState = "ended" | "live";
18309
18405
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
18310
18406
type NotificationDirection = "auto" | "ltr" | "rtl";
18311
18407
type NotificationPermission = "default" | "denied" | "granted";
18408
+ type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
18312
18409
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
18313
18410
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
18314
18411
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
0 commit comments