@@ -117,11 +117,13 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
117117interface AuthenticationExtensionsClientInputs {
118118 appid?: string;
119119 credProps?: boolean;
120+ hmacCreateSecret?: boolean;
120121}
121122
122123interface AuthenticationExtensionsClientOutputs {
123124 appid?: boolean;
124125 credProps?: CredentialPropertiesOutput;
126+ hmacCreateSecret?: boolean;
125127}
126128
127129interface AuthenticatorSelectionCriteria {
@@ -1324,6 +1326,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
13241326 frameHeight?: number;
13251327 frameWidth?: number;
13261328 framesDecoded?: number;
1329+ framesDropped?: number;
13271330 framesPerSecond?: number;
13281331 framesReceived?: number;
13291332 headerBytesReceived?: number;
@@ -1343,6 +1346,7 @@ interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
13431346 totalAudioEnergy?: number;
13441347 totalDecodeTime?: number;
13451348 totalInterFrameDelay?: number;
1349+ totalProcessingDelay?: number;
13461350 totalSamplesDuration?: number;
13471351 totalSamplesReceived?: number;
13481352 totalSquaredInterFrameDelay?: number;
@@ -1401,7 +1405,6 @@ interface RTCPeerConnectionIceEventInit extends EventInit {
14011405}
14021406
14031407interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
1404- framesDropped?: number;
14051408 jitter?: number;
14061409 packetsLost?: number;
14071410 packetsReceived?: number;
@@ -1446,6 +1449,8 @@ interface RTCRtpContributingSource {
14461449interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
14471450 active?: boolean;
14481451 maxBitrate?: number;
1452+ maxFramerate?: number;
1453+ networkPriority?: RTCPriorityType;
14491454 priority?: RTCPriorityType;
14501455 scaleResolutionDownBy?: number;
14511456}
@@ -1866,10 +1871,10 @@ interface ValidityStateFlags {
18661871}
18671872
18681873interface 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 ;
18731878}
18741879
18751880interface VideoConfiguration {
@@ -3101,6 +3106,7 @@ interface CSSStyleDeclaration {
31013106 outlineWidth: string;
31023107 overflow: string;
31033108 overflowAnchor: string;
3109+ overflowClipMargin: string;
31043110 overflowWrap: string;
31053111 overflowX: string;
31063112 overflowY: string;
@@ -6316,6 +6322,7 @@ interface HTMLCanvasElement extends HTMLElement {
63166322 * @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.
63176323 */
63186324 toDataURL(type?: string, quality?: any): string;
6325+ transferControlToOffscreen(): OffscreenCanvas;
63196326 addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
63206327 addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
63216328 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: {
90309037
90319038interface ImageBitmapRenderingContext {
90329039 /** Returns the canvas element that the context is bound to. */
9033- readonly canvas: HTMLCanvasElement;
9040+ readonly canvas: HTMLCanvasElement | OffscreenCanvas ;
90349041 /** Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound. */
90359042 transferFromImageBitmap(bitmap: ImageBitmap | null): void;
90369043}
@@ -9061,6 +9068,7 @@ interface InnerHTML {
90619068 innerHTML: string;
90629069}
90639070
9071+ /** Available only in secure contexts. */
90649072interface InputDeviceInfo extends MediaDeviceInfo {
90659073}
90669074
@@ -10353,6 +10361,57 @@ declare var OfflineAudioContext: {
1035310361 new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
1035410362};
1035510363
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+
1035610415/** 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. */
1035710416interface OscillatorNode extends AudioScheduledSourceNode {
1035810417 readonly detune: AudioParam;
@@ -16063,7 +16122,7 @@ declare var WebGLRenderingContext: {
1606316122};
1606416123
1606516124interface WebGLRenderingContextBase {
16066- readonly canvas: HTMLCanvasElement;
16125+ readonly canvas: HTMLCanvasElement | OffscreenCanvas ;
1606716126 readonly drawingBufferHeight: GLsizei;
1606816127 readonly drawingBufferWidth: GLsizei;
1606916128 activeTexture(texture: GLenum): void;
@@ -18218,7 +18277,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
1821818277type BufferSource = ArrayBufferView | ArrayBuffer;
1821918278type COSEAlgorithmIdentifier = number;
1822018279type CSSNumberish = number;
18221- type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
18280+ type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas ;
1822218281type ClipboardItemData = Promise<string | Blob>;
1822318282type ClipboardItems = ClipboardItem[];
1822418283type ConstrainBoolean = boolean | ConstrainBooleanParameters;
@@ -18255,6 +18314,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
1825518314type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
1825618315type MutationRecordType = "attributes" | "characterData" | "childList";
1825718316type NamedCurve = string;
18317+ type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
1825818318type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
1825918319type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
1826018320type PerformanceEntryList = PerformanceEntry[];
@@ -18263,9 +18323,9 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
1826318323type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
1826418324type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
1826518325type RequestInfo = Request | string;
18266- type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
18326+ type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas ;
1826718327type TimerHandler = string | Function;
18268- type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18328+ type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
1826918329type Uint32List = Uint32Array | GLuint[];
1827018330type VibratePattern = number | number[];
1827118331type WindowProxy = Window;
@@ -18345,6 +18405,7 @@ type MediaStreamTrackState = "ended" | "live";
1834518405type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
1834618406type NotificationDirection = "auto" | "ltr" | "rtl";
1834718407type NotificationPermission = "default" | "denied" | "granted";
18408+ type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
1834818409type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
1834918410type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
1835018411type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
0 commit comments