@stencil/core 3.0.0-alpha.1 → 3.0.0-alpha.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 +16 -16
- package/cli/index.cjs +5 -4
- package/cli/index.js +5 -4
- package/cli/package.json +1 -1
- package/compiler/lib.dom.d.ts +308 -70
- package/compiler/lib.dom.iterable.d.ts +6 -2
- package/compiler/lib.es2015.promise.d.ts +9 -4
- package/compiler/lib.es2015.proxy.d.ts +1 -1
- package/compiler/lib.es2015.reflect.d.ts +25 -2
- package/compiler/lib.es2015.symbol.wellknown.d.ts +3 -3
- package/compiler/lib.es2019.d.ts +1 -0
- package/compiler/lib.es2019.intl.d.ts +25 -0
- package/compiler/lib.es2020.intl.d.ts +1 -1
- package/compiler/lib.es5.d.ts +26 -13
- package/compiler/lib.webworker.d.ts +266 -30
- package/compiler/lib.webworker.iterable.d.ts +10 -2
- package/compiler/package.json +1 -1
- package/compiler/stencil.d.ts +1 -23
- package/compiler/stencil.js +1372 -303
- package/compiler/stencil.min.js +2 -2
- package/compiler/sys/in-memory-fs.d.ts +3 -3
- package/compiler/transpile.d.ts +32 -0
- package/dependencies.json +2 -1
- package/dev-server/client/app-error.d.ts +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/open-in-editor-api.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- 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 +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -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 +2 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +4 -4
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +37 -37
- package/internal/stencil-public-compiler.d.ts +27 -27
- package/internal/stencil-public-runtime.d.ts +3 -3
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +6 -6
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +1 -1
- package/sys/node/glob.js +1 -1
- package/sys/node/index.js +29 -42
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +19 -13
- package/testing/jest/jest-preprocessor.d.ts +3 -3
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-declarations.d.ts +4 -4
- package/testing/testing-utils.d.ts +1 -1
|
@@ -500,9 +500,18 @@ interface RTCEncodedVideoFrameMetadata {
|
|
|
500
500
|
width?: number;
|
|
501
501
|
}
|
|
502
502
|
|
|
503
|
-
interface
|
|
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> {
|
|
504
513
|
done: true;
|
|
505
|
-
value?:
|
|
514
|
+
value?: T;
|
|
506
515
|
}
|
|
507
516
|
|
|
508
517
|
interface ReadableStreamReadValueResult<T> {
|
|
@@ -658,6 +667,21 @@ interface Transformer<I = any, O = any> {
|
|
|
658
667
|
writableType?: undefined;
|
|
659
668
|
}
|
|
660
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
|
+
|
|
661
685
|
interface UnderlyingSink<W = any> {
|
|
662
686
|
abort?: UnderlyingSinkAbortCallback;
|
|
663
687
|
close?: UnderlyingSinkCloseCallback;
|
|
@@ -667,17 +691,18 @@ interface UnderlyingSink<W = any> {
|
|
|
667
691
|
}
|
|
668
692
|
|
|
669
693
|
interface UnderlyingSource<R = any> {
|
|
694
|
+
autoAllocateChunkSize?: number;
|
|
670
695
|
cancel?: UnderlyingSourceCancelCallback;
|
|
671
696
|
pull?: UnderlyingSourcePullCallback<R>;
|
|
672
697
|
start?: UnderlyingSourceStartCallback<R>;
|
|
673
|
-
type?:
|
|
698
|
+
type?: ReadableStreamType;
|
|
674
699
|
}
|
|
675
700
|
|
|
676
701
|
interface VideoColorSpaceInit {
|
|
677
|
-
fullRange?: boolean;
|
|
678
|
-
matrix?: VideoMatrixCoefficients;
|
|
679
|
-
primaries?: VideoColorPrimaries;
|
|
680
|
-
transfer?: VideoTransferCharacteristics;
|
|
702
|
+
fullRange?: boolean | null;
|
|
703
|
+
matrix?: VideoMatrixCoefficients | null;
|
|
704
|
+
primaries?: VideoColorPrimaries | null;
|
|
705
|
+
transfer?: VideoTransferCharacteristics | null;
|
|
681
706
|
}
|
|
682
707
|
|
|
683
708
|
interface VideoConfiguration {
|
|
@@ -727,7 +752,7 @@ interface AbortController {
|
|
|
727
752
|
/** Returns the AbortSignal object associated with this object. */
|
|
728
753
|
readonly signal: AbortSignal;
|
|
729
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. */
|
|
730
|
-
|
|
755
|
+
abort(reason?: any): void;
|
|
731
756
|
}
|
|
732
757
|
|
|
733
758
|
declare var AbortController: {
|
|
@@ -756,6 +781,7 @@ declare var AbortSignal: {
|
|
|
756
781
|
prototype: AbortSignal;
|
|
757
782
|
new(): AbortSignal;
|
|
758
783
|
abort(reason?: any): AbortSignal;
|
|
784
|
+
timeout(milliseconds: number): AbortSignal;
|
|
759
785
|
};
|
|
760
786
|
|
|
761
787
|
interface AbstractWorkerEventMap {
|
|
@@ -872,6 +898,44 @@ declare var CacheStorage: {
|
|
|
872
898
|
new(): CacheStorage;
|
|
873
899
|
};
|
|
874
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
|
+
|
|
875
939
|
/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */
|
|
876
940
|
interface CanvasGradient {
|
|
877
941
|
/**
|
|
@@ -887,6 +951,19 @@ declare var CanvasGradient: {
|
|
|
887
951
|
new(): CanvasGradient;
|
|
888
952
|
};
|
|
889
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
|
+
|
|
890
967
|
interface CanvasPath {
|
|
891
968
|
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
|
|
892
969
|
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
@@ -897,6 +974,17 @@ interface CanvasPath {
|
|
|
897
974
|
moveTo(x: number, y: number): void;
|
|
898
975
|
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
899
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;
|
|
900
988
|
}
|
|
901
989
|
|
|
902
990
|
/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */
|
|
@@ -910,6 +998,49 @@ declare var CanvasPattern: {
|
|
|
910
998
|
new(): CanvasPattern;
|
|
911
999
|
};
|
|
912
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
|
+
|
|
913
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(). */
|
|
914
1045
|
interface Client {
|
|
915
1046
|
readonly frameType: FrameType;
|
|
@@ -1316,6 +1447,13 @@ interface EXT_sRGB {
|
|
|
1316
1447
|
interface EXT_shader_texture_lod {
|
|
1317
1448
|
}
|
|
1318
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
|
+
|
|
1319
1457
|
interface EXT_texture_compression_rgtc {
|
|
1320
1458
|
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;
|
|
1321
1459
|
readonly COMPRESSED_RED_RGTC1_EXT: GLenum;
|
|
@@ -1329,6 +1467,17 @@ interface EXT_texture_filter_anisotropic {
|
|
|
1329
1467
|
readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;
|
|
1330
1468
|
}
|
|
1331
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
|
+
|
|
1332
1481
|
/** Events providing information related to errors in scripts or in files. */
|
|
1333
1482
|
interface ErrorEvent extends Event {
|
|
1334
1483
|
readonly colno: number;
|
|
@@ -1347,6 +1496,7 @@ declare var ErrorEvent: {
|
|
|
1347
1496
|
interface Event {
|
|
1348
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. */
|
|
1349
1498
|
readonly bubbles: boolean;
|
|
1499
|
+
/** @deprecated */
|
|
1350
1500
|
cancelBubble: boolean;
|
|
1351
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. */
|
|
1352
1502
|
readonly cancelable: boolean;
|
|
@@ -2030,13 +2180,13 @@ declare var IDBObjectStore: {
|
|
|
2030
2180
|
};
|
|
2031
2181
|
|
|
2032
2182
|
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
|
|
2033
|
-
"blocked":
|
|
2183
|
+
"blocked": IDBVersionChangeEvent;
|
|
2034
2184
|
"upgradeneeded": IDBVersionChangeEvent;
|
|
2035
2185
|
}
|
|
2036
2186
|
|
|
2037
2187
|
/** Also inherits methods from its parents IDBRequest and EventTarget. */
|
|
2038
2188
|
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
|
|
2039
|
-
onblocked: ((this: IDBOpenDBRequest, ev:
|
|
2189
|
+
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
2040
2190
|
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
|
|
2041
2191
|
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2042
2192
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2292,6 +2442,7 @@ interface NavigatorID {
|
|
|
2292
2442
|
readonly appName: string;
|
|
2293
2443
|
/** @deprecated */
|
|
2294
2444
|
readonly appVersion: string;
|
|
2445
|
+
/** @deprecated */
|
|
2295
2446
|
readonly platform: string;
|
|
2296
2447
|
/** @deprecated */
|
|
2297
2448
|
readonly product: string;
|
|
@@ -2361,6 +2512,16 @@ declare var NotificationEvent: {
|
|
|
2361
2512
|
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
|
|
2362
2513
|
};
|
|
2363
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
|
+
|
|
2364
2525
|
/** The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements(). */
|
|
2365
2526
|
interface OES_element_index_uint {
|
|
2366
2527
|
}
|
|
@@ -2406,10 +2567,57 @@ interface OVR_multiview2 {
|
|
|
2406
2567
|
readonly MAX_VIEWS_OVR: GLenum;
|
|
2407
2568
|
}
|
|
2408
2569
|
|
|
2409
|
-
|
|
2570
|
+
interface OffscreenCanvasEventMap {
|
|
2571
|
+
"contextlost": Event;
|
|
2572
|
+
"contextrestored": Event;
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2410
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;
|
|
2411
2614
|
}
|
|
2412
2615
|
|
|
2616
|
+
declare var OffscreenCanvasRenderingContext2D: {
|
|
2617
|
+
prototype: OffscreenCanvasRenderingContext2D;
|
|
2618
|
+
new(): OffscreenCanvasRenderingContext2D;
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2413
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. */
|
|
2414
2622
|
interface Path2D extends CanvasPath {
|
|
2415
2623
|
/** Adds to the path the path given by the argument. */
|
|
@@ -2553,6 +2761,7 @@ interface PermissionStatusEventMap {
|
|
|
2553
2761
|
}
|
|
2554
2762
|
|
|
2555
2763
|
interface PermissionStatus extends EventTarget {
|
|
2764
|
+
readonly name: string;
|
|
2556
2765
|
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
|
|
2557
2766
|
readonly state: PermissionState;
|
|
2558
2767
|
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -2664,6 +2873,7 @@ declare var PushSubscription: {
|
|
|
2664
2873
|
/** Available only in secure contexts. */
|
|
2665
2874
|
interface PushSubscriptionOptions {
|
|
2666
2875
|
readonly applicationServerKey: ArrayBuffer | null;
|
|
2876
|
+
readonly userVisibleOnly: boolean;
|
|
2667
2877
|
}
|
|
2668
2878
|
|
|
2669
2879
|
declare var PushSubscriptionOptions: {
|
|
@@ -2711,7 +2921,9 @@ declare var ReadableByteStreamController: {
|
|
|
2711
2921
|
interface ReadableStream<R = any> {
|
|
2712
2922
|
readonly locked: boolean;
|
|
2713
2923
|
cancel(reason?: any): Promise<void>;
|
|
2924
|
+
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
|
|
2714
2925
|
getReader(): ReadableStreamDefaultReader<R>;
|
|
2926
|
+
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
|
|
2715
2927
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
2716
2928
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
2717
2929
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
@@ -2719,11 +2931,13 @@ interface ReadableStream<R = any> {
|
|
|
2719
2931
|
|
|
2720
2932
|
declare var ReadableStream: {
|
|
2721
2933
|
prototype: ReadableStream;
|
|
2934
|
+
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
|
|
2935
|
+
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2722
2936
|
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
|
|
2723
2937
|
};
|
|
2724
2938
|
|
|
2725
2939
|
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
|
|
2726
|
-
read(view:
|
|
2940
|
+
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
|
|
2727
2941
|
releaseLock(): void;
|
|
2728
2942
|
}
|
|
2729
2943
|
|
|
@@ -2911,6 +3125,7 @@ interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
|
|
|
2911
3125
|
"notificationclick": NotificationEvent;
|
|
2912
3126
|
"notificationclose": NotificationEvent;
|
|
2913
3127
|
"push": PushEvent;
|
|
3128
|
+
"pushsubscriptionchange": Event;
|
|
2914
3129
|
}
|
|
2915
3130
|
|
|
2916
3131
|
/** This ServiceWorker API interface represents the global execution context of a service worker. */
|
|
@@ -2924,6 +3139,7 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
|
|
2924
3139
|
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2925
3140
|
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
|
|
2926
3141
|
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
|
|
3142
|
+
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
|
|
2927
3143
|
readonly registration: ServiceWorkerRegistration;
|
|
2928
3144
|
readonly serviceWorker: ServiceWorker;
|
|
2929
3145
|
skipWaiting(): Promise<void>;
|
|
@@ -3340,8 +3556,8 @@ interface WEBGL_lose_context {
|
|
|
3340
3556
|
interface WEBGL_multi_draw {
|
|
3341
3557
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
3342
3558
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
|
|
3343
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array |
|
|
3344
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array |
|
|
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;
|
|
3345
3561
|
}
|
|
3346
3562
|
|
|
3347
3563
|
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
|
|
@@ -4739,35 +4955,39 @@ interface WebGLRenderingContextBase {
|
|
|
4739
4955
|
getBufferParameter(target: GLenum, pname: GLenum): any;
|
|
4740
4956
|
getContextAttributes(): WebGLContextAttributes | null;
|
|
4741
4957
|
getError(): GLenum;
|
|
4958
|
+
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4742
4959
|
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
|
|
4743
4960
|
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
|
|
4744
4961
|
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
|
|
4745
4962
|
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
|
|
4746
|
-
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
|
|
4747
4963
|
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
|
|
4748
|
-
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
|
|
4749
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;
|
|
4750
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;
|
|
4751
4977
|
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
|
|
4752
4978
|
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
|
|
4753
4979
|
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
|
|
4754
4980
|
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
|
|
4755
4981
|
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
|
|
4756
4982
|
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
|
|
4983
|
+
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4757
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;
|
|
4758
4986
|
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
|
|
4987
|
+
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
|
|
4759
4988
|
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
|
|
4760
4989
|
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
|
|
4761
|
-
getExtension(extensionName: "
|
|
4762
|
-
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
|
|
4763
|
-
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
|
|
4764
|
-
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
|
|
4765
|
-
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
|
|
4766
|
-
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
|
|
4767
|
-
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
|
|
4768
|
-
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
|
|
4769
|
-
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
|
|
4770
|
-
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
|
|
4990
|
+
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
|
|
4771
4991
|
getExtension(name: string): any;
|
|
4772
4992
|
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
|
|
4773
4993
|
getParameter(pname: GLenum): any;
|
|
@@ -5893,20 +6113,31 @@ type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
|
|
|
5893
6113
|
type Int32List = Int32Array | GLint[];
|
|
5894
6114
|
type MessageEventSource = MessagePort | ServiceWorker;
|
|
5895
6115
|
type NamedCurve = string;
|
|
6116
|
+
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
|
|
5896
6117
|
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
|
|
5897
6118
|
type PerformanceEntryList = PerformanceEntry[];
|
|
5898
6119
|
type PushMessageDataInit = BufferSource | string;
|
|
5899
|
-
type ReadableStreamController<T> = ReadableStreamDefaultController<T
|
|
5900
|
-
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult
|
|
5901
|
-
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;
|
|
5902
6123
|
type RequestInfo = Request | string;
|
|
5903
6124
|
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas;
|
|
5904
6125
|
type TimerHandler = string | Function;
|
|
5905
|
-
type Transferable =
|
|
6126
|
+
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | ArrayBuffer;
|
|
5906
6127
|
type Uint32List = Uint32Array | GLuint[];
|
|
5907
6128
|
type VibratePattern = number | number[];
|
|
5908
6129
|
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
|
|
5909
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";
|
|
5910
6141
|
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
|
|
5911
6142
|
type ColorGamut = "p3" | "rec2020" | "srgb";
|
|
5912
6143
|
type ColorSpaceConversion = "default" | "none";
|
|
@@ -5916,12 +6147,14 @@ type FileSystemHandleKind = "directory" | "file";
|
|
|
5916
6147
|
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
|
|
5917
6148
|
type FontFaceSetLoadStatus = "loaded" | "loading";
|
|
5918
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";
|
|
5919
6151
|
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
|
|
5920
6152
|
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
|
|
5921
6153
|
type IDBRequestReadyState = "done" | "pending";
|
|
5922
6154
|
type IDBTransactionDurability = "default" | "relaxed" | "strict";
|
|
5923
6155
|
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
|
|
5924
6156
|
type ImageOrientation = "flipY" | "none";
|
|
6157
|
+
type ImageSmoothingQuality = "high" | "low" | "medium";
|
|
5925
6158
|
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
|
|
5926
6159
|
type KeyType = "private" | "public" | "secret";
|
|
5927
6160
|
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
|
|
@@ -5930,12 +6163,15 @@ type MediaDecodingType = "file" | "media-source" | "webrtc";
|
|
|
5930
6163
|
type MediaEncodingType = "record" | "webrtc";
|
|
5931
6164
|
type NotificationDirection = "auto" | "ltr" | "rtl";
|
|
5932
6165
|
type NotificationPermission = "default" | "denied" | "granted";
|
|
6166
|
+
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
|
|
5933
6167
|
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
|
|
5934
6168
|
type PermissionState = "denied" | "granted" | "prompt";
|
|
5935
6169
|
type PredefinedColorSpace = "display-p3" | "srgb";
|
|
5936
6170
|
type PremultiplyAlpha = "default" | "none" | "premultiply";
|
|
5937
6171
|
type PushEncryptionKeyName = "auth" | "p256dh";
|
|
5938
6172
|
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
|
|
6173
|
+
type ReadableStreamReaderMode = "byob";
|
|
6174
|
+
type ReadableStreamType = "bytes";
|
|
5939
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";
|
|
5940
6176
|
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
|
|
5941
6177
|
type RequestCredentials = "include" | "omit" | "same-origin";
|
|
@@ -26,6 +26,14 @@ interface Cache {
|
|
|
26
26
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
interface CanvasPath {
|
|
30
|
+
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface CanvasPathDrawingStyles {
|
|
34
|
+
setLineDash(segments: Iterable<number>): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
29
37
|
interface DOMStringList {
|
|
30
38
|
[Symbol.iterator](): IterableIterator<string>;
|
|
31
39
|
}
|
|
@@ -103,8 +111,8 @@ interface WEBGL_draw_buffers {
|
|
|
103
111
|
interface WEBGL_multi_draw {
|
|
104
112
|
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
105
113
|
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: GLuint, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, drawcount: GLsizei): void;
|
|
106
|
-
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<
|
|
107
|
-
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<
|
|
114
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: GLuint, drawcount: GLsizei): void;
|
|
115
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: GLuint, drawcount: GLsizei): void;
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
interface WebGL2RenderingContextBase {
|
package/compiler/package.json
CHANGED
package/compiler/stencil.d.ts
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
import { Compiler, CompilerBuildResults, CompilerSystem, CompilerWatcher, CompileScriptMinifyOptions, Config, Diagnostic, LoadConfigInit, LoadConfigResults, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, PlatformPath, PrerenderResults, PrerenderStartOptions, TranspileOptions, TranspileResults } from '../internal/index';
|
|
2
|
-
|
|
3
|
-
* The `transpile()` function inputs source code as a string, with various options
|
|
4
|
-
* within the second argument. The function is stateless and returns a `Promise` of the
|
|
5
|
-
* results, including diagnostics and the transpiled code. The `transpile()` function
|
|
6
|
-
* does not handle any bundling, minifying, or precompiling any CSS preprocessing like
|
|
7
|
-
* Sass or Less. The `transpileSync()` equivalent is available so the same function
|
|
8
|
-
* it can be called synchronously. However, TypeScript must be already loaded within
|
|
9
|
-
* the global for it to work, where as the async `transpile()` function will load
|
|
10
|
-
* TypeScript automatically.
|
|
11
|
-
*
|
|
12
|
-
* Since TypeScript is used, the source code will transpile from TypeScript to JavaScript,
|
|
13
|
-
* and does not require Babel presets. Additionally, the results includes an `imports`
|
|
14
|
-
* array of all the import paths found in the source file. The transpile options can be
|
|
15
|
-
* used to set the `module` format, such as `cjs`, and JavaScript `target` version, such
|
|
16
|
-
* as `es2017`.
|
|
17
|
-
*/
|
|
18
|
-
export declare const transpile: (code: string, opts?: TranspileOptions) => Promise<TranspileResults>;
|
|
19
|
-
/**
|
|
20
|
-
* Synchronous equivalent of the `transpile()` function. When used in a browser
|
|
21
|
-
* environment, TypeScript must already be available globally, where as the async
|
|
22
|
-
* `transpile()` function will load TypeScript automatically.
|
|
23
|
-
*/
|
|
24
|
-
export declare const transpileSync: (code: string, opts?: TranspileOptions) => TranspileResults;
|
|
2
|
+
export { transpile, transpileSync } from './transpile';
|
|
25
3
|
/**
|
|
26
4
|
* The compiler is the utility that brings together many tools to build optimized components,
|
|
27
5
|
* such as a transpiler, bundler, and minifier, along with many internal optimizations to
|