Skip to content

Commit 1a77ff8

Browse files
authored
Co-authored-by: saschanaz <[email protected]>
1 parent 4d90e54 commit 1a77ff8

11 files changed

+1769
-685
lines changed

baselines/audioworklet.generated.d.ts

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,69 @@ declare var CustomEvent: {
262262
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
263263
};
264264

265+
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
266+
interface DOMException extends Error {
267+
/** @deprecated */
268+
readonly code: number;
269+
readonly message: string;
270+
readonly name: string;
271+
readonly ABORT_ERR: number;
272+
readonly DATA_CLONE_ERR: number;
273+
readonly DOMSTRING_SIZE_ERR: number;
274+
readonly HIERARCHY_REQUEST_ERR: number;
275+
readonly INDEX_SIZE_ERR: number;
276+
readonly INUSE_ATTRIBUTE_ERR: number;
277+
readonly INVALID_ACCESS_ERR: number;
278+
readonly INVALID_CHARACTER_ERR: number;
279+
readonly INVALID_MODIFICATION_ERR: number;
280+
readonly INVALID_NODE_TYPE_ERR: number;
281+
readonly INVALID_STATE_ERR: number;
282+
readonly NAMESPACE_ERR: number;
283+
readonly NETWORK_ERR: number;
284+
readonly NOT_FOUND_ERR: number;
285+
readonly NOT_SUPPORTED_ERR: number;
286+
readonly NO_DATA_ALLOWED_ERR: number;
287+
readonly NO_MODIFICATION_ALLOWED_ERR: number;
288+
readonly QUOTA_EXCEEDED_ERR: number;
289+
readonly SECURITY_ERR: number;
290+
readonly SYNTAX_ERR: number;
291+
readonly TIMEOUT_ERR: number;
292+
readonly TYPE_MISMATCH_ERR: number;
293+
readonly URL_MISMATCH_ERR: number;
294+
readonly VALIDATION_ERR: number;
295+
readonly WRONG_DOCUMENT_ERR: number;
296+
}
297+
298+
declare var DOMException: {
299+
prototype: DOMException;
300+
new(message?: string, name?: string): DOMException;
301+
readonly ABORT_ERR: number;
302+
readonly DATA_CLONE_ERR: number;
303+
readonly DOMSTRING_SIZE_ERR: number;
304+
readonly HIERARCHY_REQUEST_ERR: number;
305+
readonly INDEX_SIZE_ERR: number;
306+
readonly INUSE_ATTRIBUTE_ERR: number;
307+
readonly INVALID_ACCESS_ERR: number;
308+
readonly INVALID_CHARACTER_ERR: number;
309+
readonly INVALID_MODIFICATION_ERR: number;
310+
readonly INVALID_NODE_TYPE_ERR: number;
311+
readonly INVALID_STATE_ERR: number;
312+
readonly NAMESPACE_ERR: number;
313+
readonly NETWORK_ERR: number;
314+
readonly NOT_FOUND_ERR: number;
315+
readonly NOT_SUPPORTED_ERR: number;
316+
readonly NO_DATA_ALLOWED_ERR: number;
317+
readonly NO_MODIFICATION_ALLOWED_ERR: number;
318+
readonly QUOTA_EXCEEDED_ERR: number;
319+
readonly SECURITY_ERR: number;
320+
readonly SYNTAX_ERR: number;
321+
readonly TIMEOUT_ERR: number;
322+
readonly TYPE_MISMATCH_ERR: number;
323+
readonly URL_MISMATCH_ERR: number;
324+
readonly VALIDATION_ERR: number;
325+
readonly WRONG_DOCUMENT_ERR: number;
326+
};
327+
265328
/** Events providing information related to errors in scripts or in files. */
266329
interface ErrorEvent extends Event {
267330
readonly colno: number;

baselines/dom.generated.d.ts

Lines changed: 71 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ interface AudioWorkletNodeOptions extends AudioNodeOptions {
117117
interface AuthenticationExtensionsClientInputs {
118118
appid?: string;
119119
credProps?: boolean;
120+
hmacCreateSecret?: boolean;
120121
}
121122

122123
interface AuthenticationExtensionsClientOutputs {
123124
appid?: boolean;
124125
credProps?: CredentialPropertiesOutput;
126+
hmacCreateSecret?: boolean;
125127
}
126128

127129
interface 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

14031407
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
1404-
framesDropped?: number;
14051408
jitter?: number;
14061409
packetsLost?: number;
14071410
packetsReceived?: number;
@@ -1446,6 +1449,8 @@ interface RTCRtpContributingSource {
14461449
interface 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

18681873
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;
18731878
}
18741879

18751880
interface 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

90319038
interface 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. */
90649072
interface 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. */
1035710416
interface OscillatorNode extends AudioScheduledSourceNode {
1035810417
readonly detune: AudioParam;
@@ -16063,7 +16122,7 @@ declare var WebGLRenderingContext: {
1606316122
};
1606416123

1606516124
interface 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;
1821818277
type BufferSource = ArrayBufferView | ArrayBuffer;
1821918278
type COSEAlgorithmIdentifier = number;
1822018279
type CSSNumberish = number;
18221-
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap;
18280+
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas;
1822218281
type ClipboardItemData = Promise<string | Blob>;
1822318282
type ClipboardItems = ClipboardItem[];
1822418283
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
@@ -18255,6 +18314,7 @@ type MediaProvider = MediaStream | MediaSource | Blob;
1825518314
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
1825618315
type MutationRecordType = "attributes" | "characterData" | "childList";
1825718316
type NamedCurve = string;
18317+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
1825818318
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
1825918319
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
1826018320
type PerformanceEntryList = PerformanceEntry[];
@@ -18263,9 +18323,9 @@ type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableSt
1826318323
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
1826418324
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
1826518325
type RequestInfo = Request | string;
18266-
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement;
18326+
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas;
1826718327
type TimerHandler = string | Function;
18268-
type Transferable = ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
18328+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
1826918329
type Uint32List = Uint32Array | GLuint[];
1827018330
type VibratePattern = number | number[];
1827118331
type WindowProxy = Window;
@@ -18345,6 +18405,7 @@ type MediaStreamTrackState = "ended" | "live";
1834518405
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
1834618406
type NotificationDirection = "auto" | "ltr" | "rtl";
1834718407
type NotificationPermission = "default" | "denied" | "granted";
18408+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
1834818409
type OrientationLockType = "any" | "landscape" | "landscape-primary" | "landscape-secondary" | "natural" | "portrait" | "portrait-primary" | "portrait-secondary";
1834918410
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
1835018411
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";

0 commit comments

Comments
 (0)