@rindo/core 2.17.4 → 2.22.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/cli/config-flags.d.ts +33 -21
- package/cli/index.cjs +693 -401
- package/cli/index.d.ts +3 -0
- package/cli/index.js +693 -401
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +898 -184
- package/compiler/lib.dom.iterable.d.ts +22 -4
- package/compiler/lib.es2015.collection.d.ts +62 -1
- package/compiler/lib.es2015.core.d.ts +3 -3
- package/compiler/lib.es2015.iterable.d.ts +2 -1
- package/compiler/lib.es2015.promise.d.ts +9 -4
- package/compiler/lib.es2015.proxy.d.ts +91 -2
- package/compiler/lib.es2015.reflect.d.ts +26 -3
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2017.intl.d.ts +16 -1
- package/compiler/lib.es2019.d.ts +1 -0
- package/compiler/lib.es2019.intl.d.ts +25 -0
- package/compiler/lib.es2020.bigint.d.ts +7 -5
- package/compiler/lib.es2020.d.ts +2 -0
- package/compiler/lib.es2020.date.d.ts +44 -0
- package/compiler/lib.es2020.intl.d.ts +81 -16
- package/compiler/lib.es2020.number.d.ts +30 -0
- package/compiler/lib.es2021.intl.d.ts +116 -6
- package/compiler/lib.es2022.array.d.ts +123 -0
- package/compiler/lib.es2022.d.ts +27 -0
- package/compiler/lib.es2022.error.d.ts +75 -0
- package/compiler/lib.es2022.full.d.ts +25 -0
- package/compiler/lib.es2022.intl.d.ts +111 -0
- package/compiler/lib.es2022.object.d.ts +28 -0
- package/compiler/lib.es2022.sharedmemory.d.ts +27 -0
- package/compiler/lib.es2022.string.d.ts +27 -0
- package/compiler/lib.es5.d.ts +62 -31
- package/compiler/lib.esnext.d.ts +1 -1
- package/compiler/lib.esnext.intl.d.ts +8 -1
- package/compiler/lib.webworker.d.ts +540 -81
- package/compiler/lib.webworker.iterable.d.ts +19 -4
- package/compiler/package.json +1 -1
- package/compiler/rindo.d.ts +3 -25
- package/compiler/rindo.js +54678 -52205
- package/compiler/rindo.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +218 -0
- package/compiler/transpile.d.ts +32 -0
- package/dependencies.json +12 -1
- package/dev-server/client/app-error.d.ts +1 -1
- package/dev-server/client/index.d.ts +2 -2
- package/dev-server/client/index.js +241 -241
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.d.ts +1 -1
- package/dev-server/index.js +2 -2
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +1192 -1158
- package/dev-server/ws.js +1 -1
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +2 -2
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +1130 -823
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +19 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +154 -143
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/hydrate/runner.js +106 -106
- package/internal/package.json +1 -1
- package/internal/rindo-core/index.d.ts +9 -10
- package/internal/rindo-private.d.ts +149 -184
- package/internal/rindo-public-compiler.d.ts +83 -38
- package/internal/rindo-public-docs.d.ts +24 -0
- package/internal/rindo-public-runtime.d.ts +79 -7
- package/internal/testing/index.js +187 -175
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +526 -501
- package/mock-doc/index.d.ts +15 -14
- package/mock-doc/index.js +526 -501
- package/mock-doc/package.json +1 -1
- package/package.json +48 -59
- package/readme.md +44 -31
- package/screenshot/compare/build/p-f4745c2f.entry.js +1 -1
- package/screenshot/index.d.ts +1 -1
- package/screenshot/index.js +13 -13
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +983 -849
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.js +1 -1
- package/sys/node/index.d.ts +4 -0
- package/sys/node/index.js +399 -413
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +6 -6
- package/testing/index.js +684 -839
- package/testing/jest/jest-config.d.ts +1 -1
- package/testing/jest/jest-preprocessor.d.ts +3 -3
- package/testing/jest/jest-serializer.d.ts +1 -2
- package/testing/matchers/index.d.ts +3 -3
- package/testing/mock-fetch.d.ts +1 -1
- package/testing/mocks.d.ts +2 -2
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +5 -5
- package/testing/puppeteer/puppeteer-element.d.ts +2 -2
- package/testing/puppeteer/puppeteer-events.d.ts +1 -1
- package/testing/testing-logger.d.ts +1 -1
- package/testing/testing-utils.d.ts +6 -5
- package/testing/testing.d.ts +1 -1
|
@@ -90,8 +90,8 @@ interface CloseEventInit extends EventInit {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
interface CryptoKeyPair {
|
|
93
|
-
privateKey
|
|
94
|
-
publicKey
|
|
93
|
+
privateKey: CryptoKey;
|
|
94
|
+
publicKey: CryptoKey;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
interface CustomEventInit<T = any> extends EventInit {
|
|
@@ -210,6 +210,18 @@ interface FilePropertyBag extends BlobPropertyBag {
|
|
|
210
210
|
lastModified?: number;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
interface FileSystemGetDirectoryOptions {
|
|
214
|
+
create?: boolean;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
interface FileSystemGetFileOptions {
|
|
218
|
+
create?: boolean;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
interface FileSystemRemoveOptions {
|
|
222
|
+
recursive?: boolean;
|
|
223
|
+
}
|
|
224
|
+
|
|
213
225
|
interface FontFaceDescriptors {
|
|
214
226
|
display?: string;
|
|
215
227
|
featureSettings?: string;
|
|
@@ -259,6 +271,10 @@ interface IDBObjectStoreParameters {
|
|
|
259
271
|
keyPath?: string | string[] | null;
|
|
260
272
|
}
|
|
261
273
|
|
|
274
|
+
interface IDBTransactionOptions {
|
|
275
|
+
durability?: IDBTransactionDurability;
|
|
276
|
+
}
|
|
277
|
+
|
|
262
278
|
interface IDBVersionChangeEventInit extends EventInit {
|
|
263
279
|
newVersion?: number | null;
|
|
264
280
|
oldVersion?: number;
|
|
@@ -310,6 +326,24 @@ interface KeyAlgorithm {
|
|
|
310
326
|
name: string;
|
|
311
327
|
}
|
|
312
328
|
|
|
329
|
+
interface LockInfo {
|
|
330
|
+
clientId?: string;
|
|
331
|
+
mode?: LockMode;
|
|
332
|
+
name?: string;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface LockManagerSnapshot {
|
|
336
|
+
held?: LockInfo[];
|
|
337
|
+
pending?: LockInfo[];
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
interface LockOptions {
|
|
341
|
+
ifAvailable?: boolean;
|
|
342
|
+
mode?: LockMode;
|
|
343
|
+
signal?: AbortSignal;
|
|
344
|
+
steal?: boolean;
|
|
345
|
+
}
|
|
346
|
+
|
|
313
347
|
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
|
|
314
348
|
configuration?: MediaDecodingConfiguration;
|
|
315
349
|
}
|
|
@@ -349,6 +383,11 @@ interface MultiCacheQueryOptions extends CacheQueryOptions {
|
|
|
349
383
|
cacheName?: string;
|
|
350
384
|
}
|
|
351
385
|
|
|
386
|
+
interface NavigationPreloadState {
|
|
387
|
+
enabled?: boolean;
|
|
388
|
+
headerValue?: string;
|
|
389
|
+
}
|
|
390
|
+
|
|
352
391
|
interface NotificationAction {
|
|
353
392
|
action: string;
|
|
354
393
|
icon?: string;
|
|
@@ -373,7 +412,7 @@ interface NotificationOptions {
|
|
|
373
412
|
requireInteraction?: boolean;
|
|
374
413
|
silent?: boolean;
|
|
375
414
|
tag?: string;
|
|
376
|
-
timestamp?:
|
|
415
|
+
timestamp?: EpochTimeStamp;
|
|
377
416
|
vibrate?: VibratePattern;
|
|
378
417
|
}
|
|
379
418
|
|
|
@@ -422,7 +461,7 @@ interface PushEventInit extends ExtendableEventInit {
|
|
|
422
461
|
|
|
423
462
|
interface PushSubscriptionJSON {
|
|
424
463
|
endpoint?: string;
|
|
425
|
-
expirationTime?:
|
|
464
|
+
expirationTime?: EpochTimeStamp | null;
|
|
426
465
|
keys?: Record<string, string>;
|
|
427
466
|
}
|
|
428
467
|
|
|
@@ -445,12 +484,37 @@ interface QueuingStrategyInit {
|
|
|
445
484
|
highWaterMark: number;
|
|
446
485
|
}
|
|
447
486
|
|
|
448
|
-
interface
|
|
487
|
+
interface RTCEncodedAudioFrameMetadata {
|
|
488
|
+
contributingSources?: number[];
|
|
489
|
+
synchronizationSource?: number;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
interface RTCEncodedVideoFrameMetadata {
|
|
493
|
+
contributingSources?: number[];
|
|
494
|
+
dependencies?: number[];
|
|
495
|
+
frameId?: number;
|
|
496
|
+
height?: number;
|
|
497
|
+
spatialIndex?: number;
|
|
498
|
+
synchronizationSource?: number;
|
|
499
|
+
temporalIndex?: number;
|
|
500
|
+
width?: number;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
interface ReadableStreamGetReaderOptions {
|
|
504
|
+
/**
|
|
505
|
+
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
|
|
506
|
+
*
|
|
507
|
+
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
|
|
508
|
+
*/
|
|
509
|
+
mode?: ReadableStreamReaderMode;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface ReadableStreamReadDoneResult<T> {
|
|
449
513
|
done: true;
|
|
450
|
-
value?:
|
|
514
|
+
value?: T;
|
|
451
515
|
}
|
|
452
516
|
|
|
453
|
-
interface
|
|
517
|
+
interface ReadableStreamReadValueResult<T> {
|
|
454
518
|
done: false;
|
|
455
519
|
value: T;
|
|
456
520
|
}
|
|
@@ -578,7 +642,7 @@ interface StreamPipeOptions {
|
|
|
578
642
|
}
|
|
579
643
|
|
|
580
644
|
interface StructuredSerializeOptions {
|
|
581
|
-
transfer?:
|
|
645
|
+
transfer?: Transferable[];
|
|
582
646
|
}
|
|
583
647
|
|
|
584
648
|
interface TextDecodeOptions {
|
|
@@ -603,6 +667,21 @@ interface Transformer<I = any, O = any> {
|
|
|
603
667
|
writableType?: undefined;
|
|
604
668
|
}
|
|
605
669
|
|
|
670
|
+
interface UnderlyingByteSource {
|
|
671
|
+
autoAllocateChunkSize?: number;
|
|
672
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
673
|
+
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
|
|
674
|
+
start?: (controller: ReadableByteStreamController) => any;
|
|
675
|
+
type: "bytes";
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
interface UnderlyingDefaultSource<R = any> {
|
|
679
|
+
cancel?: UnderlyingSourceCancelCallback;
|
|
680
|
+
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
|
|
681
|
+
start?: (controller: ReadableStreamDefaultController<R>) => any;
|
|
682
|
+
type?: undefined;
|
|
683
|
+
}
|
|
684
|
+
|
|
606
685
|
interface UnderlyingSink<W = any> {
|
|
607
686
|
abort?: UnderlyingSinkAbortCallback;
|
|
608
687
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -612,10 +691,18 @@ interface UnderlyingSink<W = any> {
|
|
|
612
691
|
}
|
|
613
692
|
|
|
614
693
|
interface UnderlyingSource<R = any> {
|
|
694
|
+
autoAllocateChunkSize?: number;
|
|
615
695
|
cancel?: UnderlyingSourceCancelCallback;
|
|
616
696
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
617
697
|
start?: UnderlyingSourceStartCallback<R>;
|
|
618
|
-
type?:
|
|
698
|
+
type?: ReadableStreamType;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
interface VideoColorSpaceInit {
|
|
702
|
+
fullRange?: boolean | null;
|
|
703
|
+
matrix?: VideoMatrixCoefficients | null;
|
|
704
|
+
primaries?: VideoColorPrimaries | null;
|
|
705
|
+
transfer?: VideoTransferCharacteristics | null;
|
|
619
706
|
}
|
|
620
707
|
|
|
621
708
|
interface VideoConfiguration {
|
|
@@ -665,7 +752,7 @@ interface AbortController {
|
|
|
665
752
|
/** Returns the AbortSignal object associated with this object. */
|
|
666
753
|
readonly signal: AbortSignal;
|
|
667
754
|
/** Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. */
|
|
668
|
-
abort(): void;
|
|
755
|
+
abort(reason?: any): void;
|
|
669
756
|
}
|
|
670
757
|
|
|
671
758
|
declare var AbortController: {
|
|
@@ -682,6 +769,8 @@ interface AbortSignal extends EventTarget {
|
|
|
682
769
|
/** Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. */
|
|
683
770
|
readonly aborted: boolean;
|
|
684
771
|
onabort: ((this: AbortSignal, ev: Event) => any) | null;
|
|
772
|
+
readonly reason: any;
|
|
773
|
+
throwIfAborted(): void;
|
|
685
774
|
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
686
775
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
687
776
|
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -691,7 +780,8 @@ interface AbortSignal extends EventTarget {
|
|
|
691
780
|
declare var AbortSignal: {
|
|
692
781
|
prototype: AbortSignal;
|
|
693
782
|
new(): AbortSignal;
|
|
694
|
-
|
|
783
|
+
abort(reason?: any): AbortSignal;
|
|
784
|
+
timeout(milliseconds: number): AbortSignal;
|
|
695
785
|
};
|
|
696
786
|
|
|
697
787
|
interface AbstractWorkerEventMap {
|
|
@@ -717,7 +807,7 @@ interface Blob {
|
|
|
717
807
|
readonly type: string;
|
|
718
808
|
arrayBuffer(): Promise<ArrayBuffer>;
|
|
719
809
|
slice(start?: number, end?: number, contentType?: string): Blob;
|
|
720
|
-
stream(): ReadableStream
|
|
810
|
+
stream(): ReadableStream<Uint8Array>;
|
|
721
811
|
text(): Promise<string>;
|
|
722
812
|
}
|
|
723
813
|
|
|
@@ -777,13 +867,13 @@ declare var ByteLengthQueuingStrategy: {
|
|
|
777
867
|
* Available only in secure contexts.
|
|
778
868
|
*/
|
|
779
869
|
interface Cache {
|
|
780
|
-
add(request: RequestInfo): Promise<void>;
|
|
870
|
+
add(request: RequestInfo | URL): Promise<void>;
|
|
781
871
|
addAll(requests: RequestInfo[]): Promise<void>;
|
|
782
|
-
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>;
|
|
783
|
-
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
784
|
-
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
785
|
-
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
786
|
-
put(request: RequestInfo, response: Response): Promise<void>;
|
|
872
|
+
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
|
|
873
|
+
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
|
|
874
|
+
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
|
|
875
|
+
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
|
|
876
|
+
put(request: RequestInfo | URL, response: Response): Promise<void>;
|
|
787
877
|
}
|
|
788
878
|
|
|
789
879
|
declare var Cache: {
|
|
@@ -799,7 +889,7 @@ interface CacheStorage {
|
|
|
799
889
|
delete(cacheName: string): Promise<boolean>;
|
|
800
890
|
has(cacheName: string): Promise<boolean>;
|
|
801
891
|
keys(): Promise<string[]>;
|
|
802
|
-
match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
892
|
+
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
|
|
803
893
|
open(cacheName: string): Promise<Cache>;
|
|
804
894
|
}
|
|
805
895
|
|
|
@@ -808,6 +898,44 @@ declare var CacheStorage: {
|
|
|
808
898
|
new(): CacheStorage;
|
|
809
899
|
};
|
|
810
900
|
|
|
901
|
+
interface CanvasCompositing {
|
|
902
|
+
globalAlpha: number;
|
|
903
|
+
globalCompositeOperation: GlobalCompositeOperation;
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
interface CanvasDrawImage {
|
|
907
|
+
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
|
|
908
|
+
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
|
|
909
|
+
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
interface CanvasDrawPath {
|
|
913
|
+
beginPath(): void;
|
|
914
|
+
clip(fillRule?: CanvasFillRule): void;
|
|
915
|
+
clip(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
916
|
+
fill(fillRule?: CanvasFillRule): void;
|
|
917
|
+
fill(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
918
|
+
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
919
|
+
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
|
|
920
|
+
isPointInStroke(x: number, y: number): boolean;
|
|
921
|
+
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|
|
922
|
+
stroke(): void;
|
|
923
|
+
stroke(path: Path2D): void;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
interface CanvasFillStrokeStyles {
|
|
927
|
+
fillStyle: string | CanvasGradient | CanvasPattern;
|
|
928
|
+
strokeStyle: string | CanvasGradient | CanvasPattern;
|
|
929
|
+
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
|
|
930
|
+
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
931
|
+
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
|
|
932
|
+
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
interface CanvasFilters {
|
|
936
|
+
filter: string;
|
|
937
|
+
}
|
|
938
|
+
|
|
811
939
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
812
940
|
interface CanvasGradient {
|
|
813
941
|
/**
|
|
@@ -823,6 +951,19 @@ declare var CanvasGradient: {
|
|
|
823
951
|
new(): CanvasGradient;
|
|
824
952
|
};
|
|
825
953
|
|
|
954
|
+
interface CanvasImageData {
|
|
955
|
+
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
956
|
+
createImageData(imagedata: ImageData): ImageData;
|
|
957
|
+
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
|
|
958
|
+
putImageData(imagedata: ImageData, dx: number, dy: number): void;
|
|
959
|
+
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
interface CanvasImageSmoothing {
|
|
963
|
+
imageSmoothingEnabled: boolean;
|
|
964
|
+
imageSmoothingQuality: ImageSmoothingQuality;
|
|
965
|
+
}
|
|
966
|
+
|
|
826
967
|
interface CanvasPath {
|
|
827
968
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
828
969
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
@@ -833,6 +974,17 @@ interface CanvasPath {
|
|
|
833
974
|
moveTo(x: number, y: number): void;
|
|
834
975
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
835
976
|
rect(x: number, y: number, w: number, h: number): void;
|
|
977
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
interface CanvasPathDrawingStyles {
|
|
981
|
+
lineCap: CanvasLineCap;
|
|
982
|
+
lineDashOffset: number;
|
|
983
|
+
lineJoin: CanvasLineJoin;
|
|
984
|
+
lineWidth: number;
|
|
985
|
+
miterLimit: number;
|
|
986
|
+
getLineDash(): number[];
|
|
987
|
+
setLineDash(segments: number[]): void;
|
|
836
988
|
}
|
|
837
989
|
|
|
838
990
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
@@ -846,6 +998,49 @@ declare var CanvasPattern: {
|
|
|
846
998
|
new(): CanvasPattern;
|
|
847
999
|
};
|
|
848
1000
|
|
|
1001
|
+
interface CanvasRect {
|
|
1002
|
+
clearRect(x: number, y: number, w: number, h: number): void;
|
|
1003
|
+
fillRect(x: number, y: number, w: number, h: number): void;
|
|
1004
|
+
strokeRect(x: number, y: number, w: number, h: number): void;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
interface CanvasShadowStyles {
|
|
1008
|
+
shadowBlur: number;
|
|
1009
|
+
shadowColor: string;
|
|
1010
|
+
shadowOffsetX: number;
|
|
1011
|
+
shadowOffsetY: number;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
interface CanvasState {
|
|
1015
|
+
restore(): void;
|
|
1016
|
+
save(): void;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
interface CanvasText {
|
|
1020
|
+
fillText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
1021
|
+
measureText(text: string): TextMetrics;
|
|
1022
|
+
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
interface CanvasTextDrawingStyles {
|
|
1026
|
+
direction: CanvasDirection;
|
|
1027
|
+
font: string;
|
|
1028
|
+
fontKerning: CanvasFontKerning;
|
|
1029
|
+
textAlign: CanvasTextAlign;
|
|
1030
|
+
textBaseline: CanvasTextBaseline;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
interface CanvasTransform {
|
|
1034
|
+
getTransform(): DOMMatrix;
|
|
1035
|
+
resetTransform(): void;
|
|
1036
|
+
rotate(angle: number): void;
|
|
1037
|
+
scale(x: number, y: number): void;
|
|
1038
|
+
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
1039
|
+
setTransform(transform?: DOMMatrix2DInit): void;
|
|
1040
|
+
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
1041
|
+
translate(x: number, y: number): void;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
849
1044
|
/** The Client interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific WindowClient. You can get Client/WindowClient objects from methods such as Clients.matchAll() and Clients.get(). */
|
|
850
1045
|
interface Client {
|
|
851
1046
|
readonly frameType: FrameType;
|
|
@@ -905,6 +1100,8 @@ interface Crypto {
|
|
|
905
1100
|
/** Available only in secure contexts. */
|
|
906
1101
|
readonly subtle: SubtleCrypto;
|
|
907
1102
|
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
|
|
1103
|
+
/** Available only in secure contexts. */
|
|
1104
|
+
randomUUID(): string;
|
|
908
1105
|
}
|
|
909
1106
|
|
|
910
1107
|
declare var Crypto: {
|
|
@@ -942,6 +1139,7 @@ declare var CustomEvent: {
|
|
|
942
1139
|
|
|
943
1140
|
/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */
|
|
944
1141
|
interface DOMException extends Error {
|
|
1142
|
+
/** @deprecated */
|
|
945
1143
|
readonly code: number;
|
|
946
1144
|
readonly message: string;
|
|
947
1145
|
readonly name: string;
|
|
@@ -1249,6 +1447,13 @@ interface EXT_sRGB {
|
|
|
1249
1447
|
interface EXT_shader_texture_lod {
|
|
1250
1448
|
}
|
|
1251
1449
|
|
|
1450
|
+
interface EXT_texture_compression_bptc {
|
|
1451
|
+
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: GLenum;
|
|
1452
|
+
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: GLenum;
|
|
1453
|
+
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: GLenum;
|
|
1454
|
+
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: GLenum;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1252
1457
|
interface EXT_texture_compression_rgtc {
|
|
1253
1458
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1254
1459
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -1262,6 +1467,17 @@ interface EXT_texture_filter_anisotropic {
|
|
|
1262
1467
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
1263
1468
|
}
|
|
1264
1469
|
|
|
1470
|
+
interface EXT_texture_norm16 {
|
|
1471
|
+
readonly R16_EXT: GLenum;
|
|
1472
|
+
readonly R16_SNORM_EXT: GLenum;
|
|
1473
|
+
readonly RG16_EXT: GLenum;
|
|
1474
|
+
readonly RG16_SNORM_EXT: GLenum;
|
|
1475
|
+
readonly RGB16_EXT: GLenum;
|
|
1476
|
+
readonly RGB16_SNORM_EXT: GLenum;
|
|
1477
|
+
readonly RGBA16_EXT: GLenum;
|
|
1478
|
+
readonly RGBA16_SNORM_EXT: GLenum;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1265
1481
|
/** Events providing information related to errors in scripts or in files. */
|
|
1266
1482
|
interface ErrorEvent extends Event {
|
|
1267
1483
|
readonly colno: number;
|
|
@@ -1280,6 +1496,7 @@ declare var ErrorEvent: {
|
|
|
1280
1496
|
interface Event {
|
|
1281
1497
|
/** Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise. */
|
|
1282
1498
|
readonly bubbles: boolean;
|
|
1499
|
+
/** @deprecated */
|
|
1283
1500
|
cancelBubble: boolean;
|
|
1284
1501
|
/** Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. */
|
|
1285
1502
|
readonly cancelable: boolean;
|
|
@@ -1358,8 +1575,10 @@ interface EventSource extends EventTarget {
|
|
|
1358
1575
|
readonly CONNECTING: number;
|
|
1359
1576
|
readonly OPEN: number;
|
|
1360
1577
|
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1578
|
+
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1361
1579
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1362
1580
|
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1581
|
+
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
|
|
1363
1582
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1364
1583
|
}
|
|
1365
1584
|
|
|
@@ -1402,7 +1621,7 @@ declare var EventTarget: {
|
|
|
1402
1621
|
|
|
1403
1622
|
/** Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries. */
|
|
1404
1623
|
interface ExtendableEvent extends Event {
|
|
1405
|
-
waitUntil(f: any): void;
|
|
1624
|
+
waitUntil(f: Promise<any>): void;
|
|
1406
1625
|
}
|
|
1407
1626
|
|
|
1408
1627
|
declare var ExtendableEvent: {
|
|
@@ -1428,6 +1647,7 @@ declare var ExtendableMessageEvent: {
|
|
|
1428
1647
|
interface FetchEvent extends ExtendableEvent {
|
|
1429
1648
|
readonly clientId: string;
|
|
1430
1649
|
readonly handled: Promise<undefined>;
|
|
1650
|
+
readonly preloadResponse: Promise<any>;
|
|
1431
1651
|
readonly request: Request;
|
|
1432
1652
|
readonly resultingClientId: string;
|
|
1433
1653
|
respondWith(r: Response | PromiseLike<Response>): void;
|
|
@@ -1518,6 +1738,43 @@ declare var FileReaderSync: {
|
|
|
1518
1738
|
new(): FileReaderSync;
|
|
1519
1739
|
};
|
|
1520
1740
|
|
|
1741
|
+
/** Available only in secure contexts. */
|
|
1742
|
+
interface FileSystemDirectoryHandle extends FileSystemHandle {
|
|
1743
|
+
readonly kind: "directory";
|
|
1744
|
+
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
|
|
1745
|
+
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
|
|
1746
|
+
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
|
|
1747
|
+
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
declare var FileSystemDirectoryHandle: {
|
|
1751
|
+
prototype: FileSystemDirectoryHandle;
|
|
1752
|
+
new(): FileSystemDirectoryHandle;
|
|
1753
|
+
};
|
|
1754
|
+
|
|
1755
|
+
/** Available only in secure contexts. */
|
|
1756
|
+
interface FileSystemFileHandle extends FileSystemHandle {
|
|
1757
|
+
readonly kind: "file";
|
|
1758
|
+
getFile(): Promise<File>;
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
declare var FileSystemFileHandle: {
|
|
1762
|
+
prototype: FileSystemFileHandle;
|
|
1763
|
+
new(): FileSystemFileHandle;
|
|
1764
|
+
};
|
|
1765
|
+
|
|
1766
|
+
/** Available only in secure contexts. */
|
|
1767
|
+
interface FileSystemHandle {
|
|
1768
|
+
readonly kind: FileSystemHandleKind;
|
|
1769
|
+
readonly name: string;
|
|
1770
|
+
isSameEntry(other: FileSystemHandle): Promise<boolean>;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
declare var FileSystemHandle: {
|
|
1774
|
+
prototype: FileSystemHandle;
|
|
1775
|
+
new(): FileSystemHandle;
|
|
1776
|
+
};
|
|
1777
|
+
|
|
1521
1778
|
interface FontFace {
|
|
1522
1779
|
ascentOverride: string;
|
|
1523
1780
|
descentOverride: string;
|
|
@@ -1699,7 +1956,7 @@ interface IDBDatabase extends EventTarget {
|
|
|
1699
1956
|
*/
|
|
1700
1957
|
deleteObjectStore(name: string): void;
|
|
1701
1958
|
/** Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names. */
|
|
1702
|
-
transaction(storeNames: string | string[], mode?: IDBTransactionMode): IDBTransaction;
|
|
1959
|
+
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
|
|
1703
1960
|
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1704
1961
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1705
1962
|
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
@@ -1923,13 +2180,13 @@ declare var IDBObjectStore: {
|
|
|
1923
2180
|
};
|
|
1924
2181
|
|
|
1925
2182
|
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
|
|
1926
|
-
"blocked":
|
|
2183
|
+
"blocked": IDBVersionChangeEvent;
|
|
1927
2184
|
"upgradeneeded": IDBVersionChangeEvent;
|
|
1928
2185
|
}
|
|
1929
2186
|
|
|
1930
2187
|
/** Also inherits methods from its parents IDBRequest and EventTarget. */
|
|
1931
2188
|
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
|
|
1932
|
-
onblocked: ((this: IDBOpenDBRequest, ev:
|
|
2189
|
+
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
1933
2190
|
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
1934
2191
|
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1935
2192
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -1981,6 +2238,7 @@ interface IDBTransactionEventMap {
|
|
|
1981
2238
|
interface IDBTransaction extends EventTarget {
|
|
1982
2239
|
/** Returns the transaction's connection. */
|
|
1983
2240
|
readonly db: IDBDatabase;
|
|
2241
|
+
readonly durability: IDBTransactionDurability;
|
|
1984
2242
|
/** If the transaction was aborted, returns the error (a DOMException) providing the reason. */
|
|
1985
2243
|
readonly error: DOMException | null;
|
|
1986
2244
|
/** Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction. */
|
|
@@ -2043,6 +2301,7 @@ declare var ImageBitmapRenderingContext: {
|
|
|
2043
2301
|
|
|
2044
2302
|
/** The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData(). */
|
|
2045
2303
|
interface ImageData {
|
|
2304
|
+
readonly colorSpace: PredefinedColorSpace;
|
|
2046
2305
|
/** Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255. */
|
|
2047
2306
|
readonly data: Uint8ClampedArray;
|
|
2048
2307
|
/** Returns the actual dimensions of the data in the ImageData object, in pixels. */
|
|
@@ -2061,6 +2320,29 @@ interface KHR_parallel_shader_compile {
|
|
|
2061
2320
|
readonly COMPLETION_STATUS_KHR: GLenum;
|
|
2062
2321
|
}
|
|
2063
2322
|
|
|
2323
|
+
/** Available only in secure contexts. */
|
|
2324
|
+
interface Lock {
|
|
2325
|
+
readonly mode: LockMode;
|
|
2326
|
+
readonly name: string;
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
declare var Lock: {
|
|
2330
|
+
prototype: Lock;
|
|
2331
|
+
new(): Lock;
|
|
2332
|
+
};
|
|
2333
|
+
|
|
2334
|
+
/** Available only in secure contexts. */
|
|
2335
|
+
interface LockManager {
|
|
2336
|
+
query(): Promise<LockManagerSnapshot>;
|
|
2337
|
+
request(name: string, callback: LockGrantedCallback): Promise<any>;
|
|
2338
|
+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
|
|
2339
|
+
}
|
|
2340
|
+
|
|
2341
|
+
declare var LockManager: {
|
|
2342
|
+
prototype: LockManager;
|
|
2343
|
+
new(): LockManager;
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2064
2346
|
interface MediaCapabilities {
|
|
2065
2347
|
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
|
|
2066
2348
|
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
|
|
@@ -2136,6 +2418,19 @@ declare var MessagePort: {
|
|
|
2136
2418
|
new(): MessagePort;
|
|
2137
2419
|
};
|
|
2138
2420
|
|
|
2421
|
+
/** Available only in secure contexts. */
|
|
2422
|
+
interface NavigationPreloadManager {
|
|
2423
|
+
disable(): Promise<void>;
|
|
2424
|
+
enable(): Promise<void>;
|
|
2425
|
+
getState(): Promise<NavigationPreloadState>;
|
|
2426
|
+
setHeaderValue(value: string): Promise<void>;
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
declare var NavigationPreloadManager: {
|
|
2430
|
+
prototype: NavigationPreloadManager;
|
|
2431
|
+
new(): NavigationPreloadManager;
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2139
2434
|
interface NavigatorConcurrentHardware {
|
|
2140
2435
|
readonly hardwareConcurrency: number;
|
|
2141
2436
|
}
|
|
@@ -2159,8 +2454,9 @@ interface NavigatorLanguage {
|
|
|
2159
2454
|
readonly languages: ReadonlyArray<string>;
|
|
2160
2455
|
}
|
|
2161
2456
|
|
|
2162
|
-
|
|
2163
|
-
|
|
2457
|
+
/** Available only in secure contexts. */
|
|
2458
|
+
interface NavigatorLocks {
|
|
2459
|
+
readonly locks: LockManager;
|
|
2164
2460
|
}
|
|
2165
2461
|
|
|
2166
2462
|
interface NavigatorOnLine {
|
|
@@ -2172,15 +2468,6 @@ interface NavigatorStorage {
|
|
|
2172
2468
|
readonly storage: StorageManager;
|
|
2173
2469
|
}
|
|
2174
2470
|
|
|
2175
|
-
interface NetworkInformation extends EventTarget {
|
|
2176
|
-
readonly type: ConnectionType;
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
|
-
declare var NetworkInformation: {
|
|
2180
|
-
prototype: NetworkInformation;
|
|
2181
|
-
new(): NetworkInformation;
|
|
2182
|
-
};
|
|
2183
|
-
|
|
2184
2471
|
interface NotificationEventMap {
|
|
2185
2472
|
"click": Event;
|
|
2186
2473
|
"close": Event;
|
|
@@ -2225,6 +2512,16 @@ declare var NotificationEvent: {
|
|
|
2225
2512
|
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
|
|
2226
2513
|
};
|
|
2227
2514
|
|
|
2515
|
+
interface OES_draw_buffers_indexed {
|
|
2516
|
+
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
|
|
2517
|
+
blendEquationiOES(buf: GLuint, mode: GLenum): void;
|
|
2518
|
+
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
|
|
2519
|
+
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
|
|
2520
|
+
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
|
|
2521
|
+
disableiOES(target: GLenum, index: GLuint): void;
|
|
2522
|
+
enableiOES(target: GLenum, index: GLuint): void;
|
|
2523
|
+
}
|
|
2524
|
+
|
|
2228
2525
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
2229
2526
|
interface OES_element_index_uint {
|
|
2230
2527
|
}
|
|
@@ -2270,10 +2567,57 @@ interface OVR_multiview2 {
|
|
|
2270
2567
|
readonly MAX_VIEWS_OVR: GLenum;
|
|
2271
2568
|
}
|
|
2272
2569
|
|
|
2273
|
-
|
|
2570
|
+
interface OffscreenCanvasEventMap {
|
|
2571
|
+
"contextlost": Event;
|
|
2572
|
+
"contextrestored": Event;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2274
2575
|
interface OffscreenCanvas extends EventTarget {
|
|
2576
|
+
/**
|
|
2577
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
2578
|
+
*
|
|
2579
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
2580
|
+
*/
|
|
2581
|
+
height: number;
|
|
2582
|
+
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
2583
|
+
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
|
|
2584
|
+
/**
|
|
2585
|
+
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
|
|
2586
|
+
*
|
|
2587
|
+
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
|
|
2588
|
+
*/
|
|
2589
|
+
width: number;
|
|
2590
|
+
/**
|
|
2591
|
+
* 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.
|
|
2592
|
+
*
|
|
2593
|
+
* 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]
|
|
2594
|
+
*
|
|
2595
|
+
* 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).
|
|
2596
|
+
*/
|
|
2597
|
+
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
|
|
2598
|
+
/** 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. */
|
|
2599
|
+
transferToImageBitmap(): ImageBitmap;
|
|
2600
|
+
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2601
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2602
|
+
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2603
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2604
|
+
}
|
|
2605
|
+
|
|
2606
|
+
declare var OffscreenCanvas: {
|
|
2607
|
+
prototype: OffscreenCanvas;
|
|
2608
|
+
new(width: number, height: number): OffscreenCanvas;
|
|
2609
|
+
};
|
|
2610
|
+
|
|
2611
|
+
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
|
|
2612
|
+
readonly canvas: OffscreenCanvas;
|
|
2613
|
+
commit(): void;
|
|
2275
2614
|
}
|
|
2276
2615
|
|
|
2616
|
+
declare var OffscreenCanvasRenderingContext2D: {
|
|
2617
|
+
prototype: OffscreenCanvasRenderingContext2D;
|
|
2618
|
+
new(): OffscreenCanvasRenderingContext2D;
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2277
2621
|
/** This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired. */
|
|
2278
2622
|
interface Path2D extends CanvasPath {
|
|
2279
2623
|
/** Adds to the path the path given by the argument. */
|
|
@@ -2417,6 +2761,7 @@ interface PermissionStatusEventMap {
|
|
|
2417
2761
|
}
|
|
2418
2762
|
|
|
2419
2763
|
interface PermissionStatus extends EventTarget {
|
|
2764
|
+
readonly name: string;
|
|
2420
2765
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
2421
2766
|
readonly state: PermissionState;
|
|
2422
2767
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2481,7 +2826,7 @@ declare var PushEvent: {
|
|
|
2481
2826
|
*/
|
|
2482
2827
|
interface PushManager {
|
|
2483
2828
|
getSubscription(): Promise<PushSubscription | null>;
|
|
2484
|
-
permissionState(options?: PushSubscriptionOptionsInit): Promise<
|
|
2829
|
+
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
|
|
2485
2830
|
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
|
|
2486
2831
|
}
|
|
2487
2832
|
|
|
@@ -2513,6 +2858,7 @@ declare var PushMessageData: {
|
|
|
2513
2858
|
*/
|
|
2514
2859
|
interface PushSubscription {
|
|
2515
2860
|
readonly endpoint: string;
|
|
2861
|
+
readonly expirationTime: EpochTimeStamp | null;
|
|
2516
2862
|
readonly options: PushSubscriptionOptions;
|
|
2517
2863
|
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
|
|
2518
2864
|
toJSON(): PushSubscriptionJSON;
|
|
@@ -2527,6 +2873,7 @@ declare var PushSubscription: {
|
|
|
2527
2873
|
/** Available only in secure contexts. */
|
|
2528
2874
|
interface PushSubscriptionOptions {
|
|
2529
2875
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2876
|
+
readonly userVisibleOnly: boolean;
|
|
2530
2877
|
}
|
|
2531
2878
|
|
|
2532
2879
|
declare var PushSubscriptionOptions: {
|
|
@@ -2534,11 +2881,49 @@ declare var PushSubscriptionOptions: {
|
|
|
2534
2881
|
new(): PushSubscriptionOptions;
|
|
2535
2882
|
};
|
|
2536
2883
|
|
|
2884
|
+
interface RTCEncodedAudioFrame {
|
|
2885
|
+
data: ArrayBuffer;
|
|
2886
|
+
readonly timestamp: number;
|
|
2887
|
+
getMetadata(): RTCEncodedAudioFrameMetadata;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
declare var RTCEncodedAudioFrame: {
|
|
2891
|
+
prototype: RTCEncodedAudioFrame;
|
|
2892
|
+
new(): RTCEncodedAudioFrame;
|
|
2893
|
+
};
|
|
2894
|
+
|
|
2895
|
+
interface RTCEncodedVideoFrame {
|
|
2896
|
+
data: ArrayBuffer;
|
|
2897
|
+
readonly timestamp: number;
|
|
2898
|
+
readonly type: RTCEncodedVideoFrameType;
|
|
2899
|
+
getMetadata(): RTCEncodedVideoFrameMetadata;
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
declare var RTCEncodedVideoFrame: {
|
|
2903
|
+
prototype: RTCEncodedVideoFrame;
|
|
2904
|
+
new(): RTCEncodedVideoFrame;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
interface ReadableByteStreamController {
|
|
2908
|
+
readonly byobRequest: ReadableStreamBYOBRequest | null;
|
|
2909
|
+
readonly desiredSize: number | null;
|
|
2910
|
+
close(): void;
|
|
2911
|
+
enqueue(chunk: ArrayBufferView): void;
|
|
2912
|
+
error(e?: any): void;
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2915
|
+
declare var ReadableByteStreamController: {
|
|
2916
|
+
prototype: ReadableByteStreamController;
|
|
2917
|
+
new(): ReadableByteStreamController;
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2537
2920
|
/** This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object. */
|
|
2538
2921
|
interface ReadableStream<R = any> {
|
|
2539
2922
|
readonly locked: boolean;
|
|
2540
2923
|
cancel(reason?: any): Promise<void>;
|
|
2924
|
+
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
2541
2925
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
2926
|
+
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
|
|
2542
2927
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
2543
2928
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
2544
2929
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -2546,9 +2931,32 @@ interface ReadableStream<R = any> {
|
|
|
2546
2931
|
|
|
2547
2932
|
declare var ReadableStream: {
|
|
2548
2933
|
prototype: ReadableStream;
|
|
2934
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
2935
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2549
2936
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2550
2937
|
};
|
|
2551
2938
|
|
|
2939
|
+
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
2940
|
+
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
2941
|
+
releaseLock(): void;
|
|
2942
|
+
}
|
|
2943
|
+
|
|
2944
|
+
declare var ReadableStreamBYOBReader: {
|
|
2945
|
+
prototype: ReadableStreamBYOBReader;
|
|
2946
|
+
new(stream: ReadableStream): ReadableStreamBYOBReader;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
interface ReadableStreamBYOBRequest {
|
|
2950
|
+
readonly view: ArrayBufferView | null;
|
|
2951
|
+
respond(bytesWritten: number): void;
|
|
2952
|
+
respondWithNewView(view: ArrayBufferView): void;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
declare var ReadableStreamBYOBRequest: {
|
|
2956
|
+
prototype: ReadableStreamBYOBRequest;
|
|
2957
|
+
new(): ReadableStreamBYOBRequest;
|
|
2958
|
+
};
|
|
2959
|
+
|
|
2552
2960
|
interface ReadableStreamDefaultController<R = any> {
|
|
2553
2961
|
readonly desiredSize: number | null;
|
|
2554
2962
|
close(): void;
|
|
@@ -2562,7 +2970,7 @@ declare var ReadableStreamDefaultController: {
|
|
|
2562
2970
|
};
|
|
2563
2971
|
|
|
2564
2972
|
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
|
|
2565
|
-
read(): Promise<
|
|
2973
|
+
read(): Promise<ReadableStreamReadResult<R>>;
|
|
2566
2974
|
releaseLock(): void;
|
|
2567
2975
|
}
|
|
2568
2976
|
|
|
@@ -2609,7 +3017,7 @@ interface Request extends Body {
|
|
|
2609
3017
|
|
|
2610
3018
|
declare var Request: {
|
|
2611
3019
|
prototype: Request;
|
|
2612
|
-
new(input: RequestInfo, init?: RequestInit): Request;
|
|
3020
|
+
new(input: RequestInfo | URL, init?: RequestInit): Request;
|
|
2613
3021
|
};
|
|
2614
3022
|
|
|
2615
3023
|
/** This Fetch API interface represents the response to a request. */
|
|
@@ -2717,6 +3125,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2717
3125
|
"notificationclick": NotificationEvent;
|
|
2718
3126
|
"notificationclose": NotificationEvent;
|
|
2719
3127
|
"push": PushEvent;
|
|
3128
|
+
"pushsubscriptionchange": Event;
|
|
2720
3129
|
}
|
|
2721
3130
|
|
|
2722
3131
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
@@ -2730,7 +3139,9 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2730
3139
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2731
3140
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2732
3141
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
3142
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
2733
3143
|
readonly registration: ServiceWorkerRegistration;
|
|
3144
|
+
readonly serviceWorker: ServiceWorker;
|
|
2734
3145
|
skipWaiting(): Promise<void>;
|
|
2735
3146
|
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2736
3147
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2754,6 +3165,7 @@ interface ServiceWorkerRegistrationEventMap {
|
|
|
2754
3165
|
interface ServiceWorkerRegistration extends EventTarget {
|
|
2755
3166
|
readonly active: ServiceWorker | null;
|
|
2756
3167
|
readonly installing: ServiceWorker | null;
|
|
3168
|
+
readonly navigationPreload: NavigationPreloadManager;
|
|
2757
3169
|
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
|
|
2758
3170
|
readonly pushManager: PushManager;
|
|
2759
3171
|
readonly scope: string;
|
|
@@ -2798,6 +3210,7 @@ declare var SharedWorkerGlobalScope: {
|
|
|
2798
3210
|
/** Available only in secure contexts. */
|
|
2799
3211
|
interface StorageManager {
|
|
2800
3212
|
estimate(): Promise<StorageEstimate>;
|
|
3213
|
+
getDirectory(): Promise<FileSystemDirectoryHandle>;
|
|
2801
3214
|
persisted(): Promise<boolean>;
|
|
2802
3215
|
}
|
|
2803
3216
|
|
|
@@ -2811,17 +3224,17 @@ declare var StorageManager: {
|
|
|
2811
3224
|
* Available only in secure contexts.
|
|
2812
3225
|
*/
|
|
2813
3226
|
interface SubtleCrypto {
|
|
2814
|
-
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
3227
|
+
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2815
3228
|
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
|
|
2816
3229
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2817
3230
|
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
|
|
2818
|
-
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<
|
|
3231
|
+
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2819
3232
|
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
|
|
2820
3233
|
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
|
|
2821
|
-
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: KeyUsage
|
|
2822
|
-
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage
|
|
3234
|
+
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
3235
|
+
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
2823
3236
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
|
|
2824
|
-
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage
|
|
3237
|
+
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
2825
3238
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
2826
3239
|
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
|
|
2827
3240
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
|
|
@@ -2999,6 +3412,19 @@ declare var URLSearchParams: {
|
|
|
2999
3412
|
toString(): string;
|
|
3000
3413
|
};
|
|
3001
3414
|
|
|
3415
|
+
interface VideoColorSpace {
|
|
3416
|
+
readonly fullRange: boolean | null;
|
|
3417
|
+
readonly matrix: VideoMatrixCoefficients | null;
|
|
3418
|
+
readonly primaries: VideoColorPrimaries | null;
|
|
3419
|
+
readonly transfer: VideoTransferCharacteristics | null;
|
|
3420
|
+
toJSON(): VideoColorSpaceInit;
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
declare var VideoColorSpace: {
|
|
3424
|
+
prototype: VideoColorSpace;
|
|
3425
|
+
new(init?: VideoColorSpaceInit): VideoColorSpace;
|
|
3426
|
+
};
|
|
3427
|
+
|
|
3002
3428
|
interface WEBGL_color_buffer_float {
|
|
3003
3429
|
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
|
|
3004
3430
|
readonly RGBA32F_EXT: GLenum;
|
|
@@ -3054,13 +3480,6 @@ interface WEBGL_compressed_texture_etc1 {
|
|
|
3054
3480
|
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
|
|
3055
3481
|
}
|
|
3056
3482
|
|
|
3057
|
-
interface WEBGL_compressed_texture_pvrtc {
|
|
3058
|
-
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
|
|
3059
|
-
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
|
|
3060
|
-
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
|
|
3061
|
-
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
|
|
3062
|
-
}
|
|
3063
|
-
|
|
3064
3483
|
/** The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats. */
|
|
3065
3484
|
interface WEBGL_compressed_texture_s3tc {
|
|
3066
3485
|
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: GLenum;
|
|
@@ -3134,6 +3553,13 @@ interface WEBGL_lose_context {
|
|
|
3134
3553
|
restoreContext(): void;
|
|
3135
3554
|
}
|
|
3136
3555
|
|
|
3556
|
+
interface WEBGL_multi_draw {
|
|
3557
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3558
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
3559
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3560
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3137
3563
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
3138
3564
|
}
|
|
3139
3565
|
|
|
@@ -4529,36 +4955,39 @@ interface WebGLRenderingContextBase {
|
|
|
4529
4955
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
4530
4956
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4531
4957
|
getError(): GLenum;
|
|
4958
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4532
4959
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4533
4960
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4534
4961
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4535
4962
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4536
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4537
4963
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4538
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4539
4964
|
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
|
|
4965
|
+
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4966
|
+
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
|
|
4967
|
+
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
|
|
4968
|
+
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4540
4969
|
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
|
|
4970
|
+
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4971
|
+
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
|
|
4972
|
+
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4973
|
+
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4974
|
+
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4975
|
+
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4976
|
+
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4541
4977
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4542
4978
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4543
4979
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4544
4980
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4545
4981
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4546
4982
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4547
|
-
getExtension(extensionName: "
|
|
4983
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4548
4984
|
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
|
|
4985
|
+
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4549
4986
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4987
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
4550
4988
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
4551
4989
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
4552
|
-
getExtension(extensionName: "
|
|
4553
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4554
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4555
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4556
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4557
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4558
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4559
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4560
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4561
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4990
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
4562
4991
|
getExtension(name: string): any;
|
|
4563
4992
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4564
4993
|
getParameter(pname: GLenum): any;
|
|
@@ -5075,7 +5504,7 @@ declare var WebSocket: {
|
|
|
5075
5504
|
/** This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources. */
|
|
5076
5505
|
interface WindowClient extends Client {
|
|
5077
5506
|
readonly focused: boolean;
|
|
5078
|
-
readonly visibilityState:
|
|
5507
|
+
readonly visibilityState: DocumentVisibilityState;
|
|
5079
5508
|
focus(): Promise<WindowClient>;
|
|
5080
5509
|
navigate(url: string | URL): Promise<WindowClient | null>;
|
|
5081
5510
|
}
|
|
@@ -5096,14 +5525,16 @@ interface WindowOrWorkerGlobalScope {
|
|
|
5096
5525
|
readonly performance: Performance;
|
|
5097
5526
|
atob(data: string): string;
|
|
5098
5527
|
btoa(data: string): string;
|
|
5099
|
-
clearInterval(
|
|
5100
|
-
clearTimeout(
|
|
5528
|
+
clearInterval(id: number | undefined): void;
|
|
5529
|
+
clearTimeout(id: number | undefined): void;
|
|
5101
5530
|
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5102
5531
|
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5103
|
-
fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
5532
|
+
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
5104
5533
|
queueMicrotask(callback: VoidFunction): void;
|
|
5534
|
+
reportError(e: any): void;
|
|
5105
5535
|
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5106
5536
|
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5537
|
+
structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
5107
5538
|
}
|
|
5108
5539
|
|
|
5109
5540
|
interface WorkerEventMap extends AbstractWorkerEventMap {
|
|
@@ -5187,7 +5618,7 @@ declare var WorkerLocation: {
|
|
|
5187
5618
|
};
|
|
5188
5619
|
|
|
5189
5620
|
/** A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator. */
|
|
5190
|
-
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage,
|
|
5621
|
+
interface WorkerNavigator extends NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
|
|
5191
5622
|
readonly mediaCapabilities: MediaCapabilities;
|
|
5192
5623
|
}
|
|
5193
5624
|
|
|
@@ -5211,6 +5642,7 @@ declare var WritableStream: {
|
|
|
5211
5642
|
|
|
5212
5643
|
/** This Streams API interface represents a controller allowing control of a WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate. */
|
|
5213
5644
|
interface WritableStreamDefaultController {
|
|
5645
|
+
readonly signal: AbortSignal;
|
|
5214
5646
|
error(e?: any): void;
|
|
5215
5647
|
}
|
|
5216
5648
|
|
|
@@ -5518,7 +5950,7 @@ declare namespace WebAssembly {
|
|
|
5518
5950
|
|
|
5519
5951
|
type ImportExportKind = "function" | "global" | "memory" | "table";
|
|
5520
5952
|
type TableKind = "anyfunc" | "externref";
|
|
5521
|
-
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64";
|
|
5953
|
+
type ValueType = "anyfunc" | "externref" | "f32" | "f64" | "i32" | "i64" | "v128";
|
|
5522
5954
|
type ExportValue = Function | Global | Memory | Table;
|
|
5523
5955
|
type Exports = Record<string, ExportValue>;
|
|
5524
5956
|
type ImportValue = ExportValue | number;
|
|
@@ -5536,6 +5968,10 @@ interface FrameRequestCallback {
|
|
|
5536
5968
|
(time: DOMHighResTimeStamp): void;
|
|
5537
5969
|
}
|
|
5538
5970
|
|
|
5971
|
+
interface LockGrantedCallback {
|
|
5972
|
+
(lock: Lock | null): any;
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5539
5975
|
interface OnErrorEventHandlerNonNull {
|
|
5540
5976
|
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
|
|
5541
5977
|
}
|
|
@@ -5630,14 +6066,16 @@ declare var origin: string;
|
|
|
5630
6066
|
declare var performance: Performance;
|
|
5631
6067
|
declare function atob(data: string): string;
|
|
5632
6068
|
declare function btoa(data: string): string;
|
|
5633
|
-
declare function clearInterval(
|
|
5634
|
-
declare function clearTimeout(
|
|
6069
|
+
declare function clearInterval(id: number | undefined): void;
|
|
6070
|
+
declare function clearTimeout(id: number | undefined): void;
|
|
5635
6071
|
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5636
6072
|
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
5637
|
-
declare function fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
6073
|
+
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
|
|
5638
6074
|
declare function queueMicrotask(callback: VoidFunction): void;
|
|
6075
|
+
declare function reportError(e: any): void;
|
|
5639
6076
|
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
5640
6077
|
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
|
|
6078
|
+
declare function structuredClone(value: any, options?: StructuredSerializeOptions): any;
|
|
5641
6079
|
declare function cancelAnimationFrame(handle: number): void;
|
|
5642
6080
|
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
|
|
5643
6081
|
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5652,7 +6090,7 @@ type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
|
|
|
5652
6090
|
type BufferSource = ArrayBufferView | ArrayBuffer;
|
|
5653
6091
|
type CanvasImageSource = ImageBitmap | OffscreenCanvas;
|
|
5654
6092
|
type DOMHighResTimeStamp = number;
|
|
5655
|
-
type
|
|
6093
|
+
type EpochTimeStamp = number;
|
|
5656
6094
|
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
|
5657
6095
|
type Float32List = Float32Array | GLfloat[];
|
|
5658
6096
|
type FormDataEntryValue = File | string;
|
|
@@ -5669,52 +6107,71 @@ type GLsizeiptr = number;
|
|
|
5669
6107
|
type GLuint = number;
|
|
5670
6108
|
type GLuint64 = number;
|
|
5671
6109
|
type HashAlgorithmIdentifier = AlgorithmIdentifier;
|
|
5672
|
-
type HeadersInit = string
|
|
6110
|
+
type HeadersInit = [string, string][] | Record<string, string> | Headers;
|
|
5673
6111
|
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
|
|
5674
6112
|
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
5675
6113
|
type Int32List = Int32Array | GLint[];
|
|
5676
6114
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
5677
6115
|
type NamedCurve = string;
|
|
6116
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
5678
6117
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5679
6118
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5680
6119
|
type PushMessageDataInit = BufferSource | string;
|
|
5681
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T
|
|
5682
|
-
type
|
|
5683
|
-
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T
|
|
6120
|
+
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
|
|
6121
|
+
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
|
|
6122
|
+
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
|
|
5684
6123
|
type RequestInfo = Request | string;
|
|
5685
6124
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
5686
6125
|
type TimerHandler = string | Function;
|
|
5687
|
-
type Transferable =
|
|
6126
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
5688
6127
|
type Uint32List = Uint32Array | GLuint[];
|
|
5689
6128
|
type VibratePattern = number | number[];
|
|
5690
6129
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
5691
6130
|
type BinaryType = "arraybuffer" | "blob";
|
|
6131
|
+
type CanvasDirection = "inherit" | "ltr" | "rtl";
|
|
6132
|
+
type CanvasFillRule = "evenodd" | "nonzero";
|
|
6133
|
+
type CanvasFontKerning = "auto" | "none" | "normal";
|
|
6134
|
+
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
|
|
6135
|
+
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
|
|
6136
|
+
type CanvasLineCap = "butt" | "round" | "square";
|
|
6137
|
+
type CanvasLineJoin = "bevel" | "miter" | "round";
|
|
6138
|
+
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
|
|
6139
|
+
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
|
|
6140
|
+
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
|
|
5692
6141
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5693
6142
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5694
6143
|
type ColorSpaceConversion = "default" | "none";
|
|
5695
|
-
type
|
|
6144
|
+
type DocumentVisibilityState = "hidden" | "visible";
|
|
5696
6145
|
type EndingType = "native" | "transparent";
|
|
6146
|
+
type FileSystemHandleKind = "directory" | "file";
|
|
5697
6147
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5698
6148
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5699
6149
|
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
|
|
6150
|
+
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
|
|
5700
6151
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5701
6152
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5702
6153
|
type IDBRequestReadyState = "done" | "pending";
|
|
6154
|
+
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5703
6155
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5704
6156
|
type ImageOrientation = "flipY" | "none";
|
|
6157
|
+
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
5705
6158
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5706
6159
|
type KeyType = "private" | "public" | "secret";
|
|
5707
6160
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
6161
|
+
type LockMode = "exclusive" | "shared";
|
|
5708
6162
|
type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
5709
6163
|
type MediaEncodingType = "record" | "webrtc";
|
|
5710
6164
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
5711
6165
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
6166
|
+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
5712
6167
|
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
5713
6168
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
5714
6169
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5715
6170
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5716
6171
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5717
|
-
type
|
|
6172
|
+
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
|
6173
|
+
type ReadableStreamReaderMode = "byob";
|
|
6174
|
+
type ReadableStreamType = "bytes";
|
|
5718
6175
|
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
|
|
5719
6176
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5720
6177
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
@@ -5727,7 +6184,9 @@ type SecurityPolicyViolationEventDisposition = "enforce" | "report";
|
|
|
5727
6184
|
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
|
|
5728
6185
|
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
|
|
5729
6186
|
type TransferFunction = "hlg" | "pq" | "srgb";
|
|
5730
|
-
type
|
|
6187
|
+
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
|
|
6188
|
+
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
|
|
6189
|
+
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
|
|
5731
6190
|
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
|
|
5732
6191
|
type WorkerType = "classic" | "module";
|
|
5733
6192
|
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
|