@@ -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 {
@@ -3101,6 +3106,7 @@ interface CSSStyleDeclaration {
3101
3106
outlineWidth: string;
3102
3107
overflow: string;
3103
3108
overflowAnchor: string;
3109
+ overflowClipMargin: string;
3104
3110
overflowWrap: string;
3105
3111
overflowX: string;
3106
3112
overflowY: string;
@@ -6316,6 +6322,7 @@ interface HTMLCanvasElement extends HTMLElement {
6316
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.
6317
6323
*/
6318
6324
toDataURL(type?: string, quality?: any): string;
6325
+ transferControlToOffscreen(): OffscreenCanvas;
6319
6326
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
6320
6327
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
6321
6328
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -9030,7 +9037,7 @@ declare var ImageBitmap: {
9030
9037
9031
9038
interface ImageBitmapRenderingContext {
9032
9039
/** Returns the canvas element that the context is bound to. */
9033
- readonly canvas: HTMLCanvasElement;
9040
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas ;
9034
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. */
9035
9042
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
9036
9043
}
@@ -9061,6 +9068,7 @@ interface InnerHTML {
9061
9068
innerHTML: string;
9062
9069
}
9063
9070
9071
+ /** Available only in secure contexts. */
9064
9072
interface InputDeviceInfo extends MediaDeviceInfo {
9065
9073
}
9066
9074
@@ -10353,6 +10361,57 @@ declare var OfflineAudioContext: {
10353
10361
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
10354
10362
};
10355
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
+
10356
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. */
10357
10416
interface OscillatorNode extends AudioScheduledSourceNode {
10358
10417
readonly detune: AudioParam;
@@ -16063,7 +16122,7 @@ declare var WebGLRenderingContext: {
16063
16122
};
16064
16123
16065
16124
interface WebGLRenderingContextBase {
16066
- readonly canvas: HTMLCanvasElement;
16125
+ readonly canvas: HTMLCanvasElement | OffscreenCanvas ;
16067
16126
readonly drawingBufferHeight: GLsizei;
16068
16127
readonly drawingBufferWidth: GLsizei;
16069
16128
activeTexture(texture: GLenum): void;
@@ -18218,7 +18277,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
18218
18277
type BufferSource = ArrayBufferView | ArrayBuffer;
18219
18278
type COSEAlgorithmIdentifier = number;
18220
18279
type CSSNumberish = number;
18221
- type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
18280
+ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas ;
18222
18281
type ClipboardItemData = Promise<string | Blob>;
18223
18282
type ClipboardItems = ClipboardItem[];
18224
18283
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
@@ -18255,6 +18314,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
18255
18314
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
18256
18315
type MutationRecordType = "attributes" | "characterData" | "childList";
18257
18316
type NamedCurve = string;
18317
+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18258
18318
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
18259
18319
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
18260
18320
type PerformanceEntryList = PerformanceEntry[];
@@ -18263,9 +18323,9 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
18263
18323
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
18264
18324
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
18265
18325
type RequestInfo = Request | string;
18266
- type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
18326
+ type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas ;
18267
18327
type TimerHandler = string | Function;
18268
- type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18328
+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18269
18329
type Uint32List = Uint32Array | GLuint[];
18270
18330
type VibratePattern = number | number[];
18271
18331
type WindowProxy = Window;
@@ -18345,6 +18405,7 @@ type MediaStreamTrackState = "ended" | "live";
18345
18405
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
18346
18406
type NotificationDirection = "auto" | "ltr" | "rtl";
18347
18407
type NotificationPermission = "default" | "denied" | "granted";
18408
+ type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
18348
18409
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
18349
18410
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
18350
18411
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
0 commit comments