@stencil/core 4.38.0 → 4.38.1
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/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/lib.decorators.d.ts +13 -15
- package/compiler/lib.dom.asynciterable.d.ts +14 -6
- package/compiler/lib.dom.d.ts +15847 -5014
- package/compiler/lib.dom.iterable.d.ts +207 -111
- package/compiler/lib.es2015.core.d.ts +9 -9
- package/compiler/lib.es2015.generator.d.ts +2 -2
- package/compiler/lib.es2015.iterable.d.ts +214 -104
- package/compiler/lib.es2015.symbol.wellknown.d.ts +11 -11
- package/compiler/lib.es2016.array.include.d.ts +9 -9
- package/compiler/lib.es2016.intl.d.ts +1 -1
- package/compiler/lib.es2017.arraybuffer.d.ts +21 -0
- package/compiler/lib.es2017.d.ts +3 -2
- package/compiler/lib.es2017.object.d.ts +4 -4
- package/compiler/lib.es2017.sharedmemory.d.ts +15 -15
- package/compiler/lib.es2017.typedarrays.d.ts +9 -9
- package/compiler/lib.es2018.asyncgenerator.d.ts +2 -2
- package/compiler/lib.es2018.asynciterable.d.ts +16 -6
- package/compiler/lib.es2020.bigint.d.ts +100 -62
- package/compiler/lib.es2020.intl.d.ts +36 -36
- package/compiler/lib.es2020.sharedmemory.d.ts +13 -11
- package/compiler/lib.es2020.string.d.ts +3 -1
- package/compiler/lib.es2020.symbol.wellknown.d.ts +5 -1
- package/compiler/lib.es2021.intl.d.ts +17 -17
- package/compiler/lib.es2021.weakref.d.ts +2 -0
- package/compiler/lib.es2022.array.d.ts +11 -11
- package/compiler/lib.es2022.d.ts +1 -2
- package/compiler/lib.es2022.error.d.ts +2 -0
- package/compiler/lib.es2022.intl.d.ts +39 -11
- package/compiler/lib.es2023.array.d.ts +79 -79
- package/compiler/lib.es2024.arraybuffer.d.ts +65 -0
- package/compiler/lib.es2024.collection.d.ts +29 -0
- package/compiler/lib.es2024.d.ts +26 -0
- package/compiler/lib.es2024.full.d.ts +24 -0
- package/compiler/lib.es2024.promise.d.ts +35 -0
- package/compiler/{lib.es2022.sharedmemory.d.ts → lib.es2024.sharedmemory.d.ts} +29 -0
- package/compiler/lib.es5.d.ts +321 -305
- package/compiler/lib.esnext.array.d.ts +1 -1
- package/compiler/lib.esnext.collection.d.ts +1 -11
- package/compiler/lib.esnext.d.ts +6 -5
- package/compiler/lib.esnext.disposable.d.ts +8 -0
- package/compiler/lib.esnext.error.d.ts +24 -0
- package/compiler/lib.esnext.float16.d.ts +445 -0
- package/compiler/lib.esnext.iterator.d.ts +148 -0
- package/compiler/lib.esnext.promise.d.ts +11 -12
- package/compiler/lib.esnext.sharedmemory.d.ts +25 -0
- package/compiler/lib.webworker.asynciterable.d.ts +14 -6
- package/compiler/lib.webworker.d.ts +5113 -1394
- package/compiler/lib.webworker.iterable.d.ts +125 -61
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +20679 -15213
- 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/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +5 -2
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +5 -2
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +2 -2
- package/internal/package.json +1 -1
- package/internal/stencil-public-runtime.d.ts +2 -1
- package/internal/testing/index.js +4 -1
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +2 -2
- package/mock-doc/index.d.ts +2 -2
- package/mock-doc/index.js +2 -2
- package/mock-doc/package.json +1 -1
- package/package.json +9 -9
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/screenshot/screenshot-fs.d.ts +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.d.ts +1 -1
- package/testing/index.js +93 -1
- package/testing/mocks.d.ts +1 -0
- package/testing/package.json +1 -1
- /package/compiler/{lib.esnext.object.d.ts → lib.es2024.object.d.ts} +0 -0
- /package/compiler/{lib.esnext.regexp.d.ts → lib.es2024.regexp.d.ts} +0 -0
- /package/compiler/{lib.esnext.string.d.ts → lib.es2024.string.d.ts} +0 -0
|
@@ -20,34 +20,33 @@ and limitations under the License.
|
|
|
20
20
|
/// Worker Iterable APIs
|
|
21
21
|
/////////////////////////////
|
|
22
22
|
|
|
23
|
-
interface AbortSignal {
|
|
24
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/any_static) */
|
|
25
|
-
any(signals: Iterable<AbortSignal>): AbortSignal;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
23
|
interface CSSNumericArray {
|
|
29
|
-
[Symbol.iterator]():
|
|
30
|
-
entries():
|
|
31
|
-
keys():
|
|
32
|
-
values():
|
|
24
|
+
[Symbol.iterator](): ArrayIterator<CSSNumericValue>;
|
|
25
|
+
entries(): ArrayIterator<[number, CSSNumericValue]>;
|
|
26
|
+
keys(): ArrayIterator<number>;
|
|
27
|
+
values(): ArrayIterator<CSSNumericValue>;
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
interface CSSTransformValue {
|
|
36
|
-
[Symbol.iterator]():
|
|
37
|
-
entries():
|
|
38
|
-
keys():
|
|
39
|
-
values():
|
|
31
|
+
[Symbol.iterator](): ArrayIterator<CSSTransformComponent>;
|
|
32
|
+
entries(): ArrayIterator<[number, CSSTransformComponent]>;
|
|
33
|
+
keys(): ArrayIterator<number>;
|
|
34
|
+
values(): ArrayIterator<CSSTransformComponent>;
|
|
40
35
|
}
|
|
41
36
|
|
|
42
37
|
interface CSSUnparsedValue {
|
|
43
|
-
[Symbol.iterator]():
|
|
44
|
-
entries():
|
|
45
|
-
keys():
|
|
46
|
-
values():
|
|
38
|
+
[Symbol.iterator](): ArrayIterator<CSSUnparsedSegment>;
|
|
39
|
+
entries(): ArrayIterator<[number, CSSUnparsedSegment]>;
|
|
40
|
+
keys(): ArrayIterator<number>;
|
|
41
|
+
values(): ArrayIterator<CSSUnparsedSegment>;
|
|
47
42
|
}
|
|
48
43
|
|
|
49
44
|
interface Cache {
|
|
50
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* The **`addAll()`** method of the Cache interface takes an array of URLs, retrieves them, and adds the resulting response objects to the given cache.
|
|
47
|
+
*
|
|
48
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll)
|
|
49
|
+
*/
|
|
51
50
|
addAll(requests: Iterable<RequestInfo>): Promise<void>;
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -61,40 +60,63 @@ interface CanvasPathDrawingStyles {
|
|
|
61
60
|
setLineDash(segments: Iterable<number>): void;
|
|
62
61
|
}
|
|
63
62
|
|
|
63
|
+
interface CookieStoreManager {
|
|
64
|
+
/**
|
|
65
|
+
* The **`subscribe()`** method of the CookieStoreManager interface subscribes a ServiceWorkerRegistration to cookie change events.
|
|
66
|
+
*
|
|
67
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/subscribe)
|
|
68
|
+
*/
|
|
69
|
+
subscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* The **`unsubscribe()`** method of the CookieStoreManager interface stops the ServiceWorkerRegistration from receiving previously subscribed events.
|
|
72
|
+
*
|
|
73
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CookieStoreManager/unsubscribe)
|
|
74
|
+
*/
|
|
75
|
+
unsubscribe(subscriptions: Iterable<CookieStoreGetOptions>): Promise<void>;
|
|
76
|
+
}
|
|
77
|
+
|
|
64
78
|
interface DOMStringList {
|
|
65
|
-
[Symbol.iterator]():
|
|
79
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
66
80
|
}
|
|
67
81
|
|
|
68
82
|
interface FileList {
|
|
69
|
-
[Symbol.iterator]():
|
|
83
|
+
[Symbol.iterator](): ArrayIterator<File>;
|
|
70
84
|
}
|
|
71
85
|
|
|
72
86
|
interface FontFaceSet extends Set<FontFace> {
|
|
73
87
|
}
|
|
74
88
|
|
|
89
|
+
interface FormDataIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
90
|
+
[Symbol.iterator](): FormDataIterator<T>;
|
|
91
|
+
}
|
|
92
|
+
|
|
75
93
|
interface FormData {
|
|
76
|
-
[Symbol.iterator]():
|
|
94
|
+
[Symbol.iterator](): FormDataIterator<[string, FormDataEntryValue]>;
|
|
77
95
|
/** Returns an array of key, value pairs for every entry in the list. */
|
|
78
|
-
entries():
|
|
96
|
+
entries(): FormDataIterator<[string, FormDataEntryValue]>;
|
|
79
97
|
/** Returns a list of keys in the list. */
|
|
80
|
-
keys():
|
|
98
|
+
keys(): FormDataIterator<string>;
|
|
81
99
|
/** Returns a list of values in the list. */
|
|
82
|
-
values():
|
|
100
|
+
values(): FormDataIterator<FormDataEntryValue>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface HeadersIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
104
|
+
[Symbol.iterator](): HeadersIterator<T>;
|
|
83
105
|
}
|
|
84
106
|
|
|
85
107
|
interface Headers {
|
|
86
|
-
[Symbol.iterator]():
|
|
108
|
+
[Symbol.iterator](): HeadersIterator<[string, string]>;
|
|
87
109
|
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
|
|
88
|
-
entries():
|
|
110
|
+
entries(): HeadersIterator<[string, string]>;
|
|
89
111
|
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
|
|
90
|
-
keys():
|
|
112
|
+
keys(): HeadersIterator<string>;
|
|
91
113
|
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
|
|
92
|
-
values():
|
|
114
|
+
values(): HeadersIterator<string>;
|
|
93
115
|
}
|
|
94
116
|
|
|
95
117
|
interface IDBDatabase {
|
|
96
118
|
/**
|
|
97
|
-
*
|
|
119
|
+
* The **`transaction`** method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.
|
|
98
120
|
*
|
|
99
121
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
|
|
100
122
|
*/
|
|
@@ -103,70 +125,112 @@ interface IDBDatabase {
|
|
|
103
125
|
|
|
104
126
|
interface IDBObjectStore {
|
|
105
127
|
/**
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
|
|
128
|
+
* The **`createIndex()`** method of the field/column defining a new data point for each database record to contain.
|
|
109
129
|
*
|
|
110
130
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
|
|
111
131
|
*/
|
|
112
132
|
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
|
|
113
133
|
}
|
|
114
134
|
|
|
135
|
+
interface ImageTrackList {
|
|
136
|
+
[Symbol.iterator](): ArrayIterator<ImageTrack>;
|
|
137
|
+
}
|
|
138
|
+
|
|
115
139
|
interface MessageEvent<T = any> {
|
|
116
|
-
/**
|
|
117
|
-
* @deprecated
|
|
118
|
-
*
|
|
119
|
-
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
|
|
120
|
-
*/
|
|
140
|
+
/** @deprecated */
|
|
121
141
|
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
|
|
122
142
|
}
|
|
123
143
|
|
|
144
|
+
interface StylePropertyMapReadOnlyIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
145
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<T>;
|
|
146
|
+
}
|
|
147
|
+
|
|
124
148
|
interface StylePropertyMapReadOnly {
|
|
125
|
-
[Symbol.iterator]():
|
|
126
|
-
entries():
|
|
127
|
-
keys():
|
|
128
|
-
values():
|
|
149
|
+
[Symbol.iterator](): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
150
|
+
entries(): StylePropertyMapReadOnlyIterator<[string, Iterable<CSSStyleValue>]>;
|
|
151
|
+
keys(): StylePropertyMapReadOnlyIterator<string>;
|
|
152
|
+
values(): StylePropertyMapReadOnlyIterator<Iterable<CSSStyleValue>>;
|
|
129
153
|
}
|
|
130
154
|
|
|
131
155
|
interface SubtleCrypto {
|
|
132
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* The **`deriveKey()`** method of the SubtleCrypto interface can be used to derive a secret key from a master key.
|
|
158
|
+
*
|
|
159
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey)
|
|
160
|
+
*/
|
|
133
161
|
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
134
|
-
/**
|
|
135
|
-
|
|
162
|
+
/**
|
|
163
|
+
* The **`generateKey()`** method of the SubtleCrypto interface is used to generate a new key (for symmetric algorithms) or key pair (for public-key algorithms).
|
|
164
|
+
*
|
|
165
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey)
|
|
166
|
+
*/
|
|
167
|
+
generateKey(algorithm: "Ed25519" | { name: "Ed25519" }, extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
|
|
136
168
|
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
|
|
137
169
|
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
138
170
|
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
|
|
139
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* The **`importKey()`** method of the SubtleCrypto interface imports a key: that is, it takes as input a key in an external, portable format and gives you a CryptoKey object that you can use in the Web Crypto API.
|
|
173
|
+
*
|
|
174
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey)
|
|
175
|
+
*/
|
|
140
176
|
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
|
|
141
177
|
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
142
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* The **`unwrapKey()`** method of the SubtleCrypto interface 'unwraps' a key.
|
|
180
|
+
*
|
|
181
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey)
|
|
182
|
+
*/
|
|
143
183
|
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
|
|
144
184
|
}
|
|
145
185
|
|
|
186
|
+
interface URLSearchParamsIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
187
|
+
[Symbol.iterator](): URLSearchParamsIterator<T>;
|
|
188
|
+
}
|
|
189
|
+
|
|
146
190
|
interface URLSearchParams {
|
|
147
|
-
[Symbol.iterator]():
|
|
191
|
+
[Symbol.iterator](): URLSearchParamsIterator<[string, string]>;
|
|
148
192
|
/** Returns an array of key, value pairs for every entry in the search params. */
|
|
149
|
-
entries():
|
|
193
|
+
entries(): URLSearchParamsIterator<[string, string]>;
|
|
150
194
|
/** Returns a list of keys in the search params. */
|
|
151
|
-
keys():
|
|
195
|
+
keys(): URLSearchParamsIterator<string>;
|
|
152
196
|
/** Returns a list of values in the search params. */
|
|
153
|
-
values():
|
|
197
|
+
values(): URLSearchParamsIterator<string>;
|
|
154
198
|
}
|
|
155
199
|
|
|
156
200
|
interface WEBGL_draw_buffers {
|
|
157
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* The **`WEBGL_draw_buffers.drawBuffersWEBGL()`** method is part of the WebGL API and allows you to define the draw buffers to which all fragment colors are written.
|
|
203
|
+
*
|
|
204
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)
|
|
205
|
+
*/
|
|
158
206
|
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
|
|
159
207
|
}
|
|
160
208
|
|
|
161
209
|
interface WEBGL_multi_draw {
|
|
162
|
-
/**
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
|
|
210
|
+
/**
|
|
211
|
+
* The **`WEBGL_multi_draw.multiDrawArraysInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
212
|
+
*
|
|
213
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL)
|
|
214
|
+
*/
|
|
215
|
+
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
216
|
+
/**
|
|
217
|
+
* The **`WEBGL_multi_draw.multiDrawArraysWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
218
|
+
*
|
|
219
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL)
|
|
220
|
+
*/
|
|
221
|
+
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array<ArrayBufferLike> | Iterable<GLint>, firstsOffset: number, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
|
|
222
|
+
/**
|
|
223
|
+
* The **`WEBGL_multi_draw.multiDrawElementsInstancedWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
224
|
+
*
|
|
225
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL)
|
|
226
|
+
*/
|
|
227
|
+
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
|
|
228
|
+
/**
|
|
229
|
+
* The **`WEBGL_multi_draw.multiDrawElementsWEBGL()`** method of the WebGL API renders multiple primitives from array data.
|
|
230
|
+
*
|
|
231
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL)
|
|
232
|
+
*/
|
|
233
|
+
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array<ArrayBufferLike> | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
|
|
170
234
|
}
|
|
171
235
|
|
|
172
236
|
interface WebGL2RenderingContextBase {
|
|
@@ -181,7 +245,7 @@ interface WebGL2RenderingContextBase {
|
|
|
181
245
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
|
|
182
246
|
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
|
|
183
247
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
|
|
184
|
-
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>):
|
|
248
|
+
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): GLuint[] | null;
|
|
185
249
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
|
|
186
250
|
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
|
|
187
251
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
|
|
@@ -231,7 +295,7 @@ interface WebGL2RenderingContextOverloads {
|
|
|
231
295
|
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
232
296
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
|
|
233
297
|
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
|
|
234
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/
|
|
298
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
|
|
235
299
|
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|
|
236
300
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
|
|
237
301
|
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
|