alpha2 0.5.2 → 0.6.0
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/README.md +71 -5
- package/THIRD_PARTY_NOTICES.md +191 -1
- package/dist/apply-edit.d.ts +124 -0
- package/dist/apply-edit.js +15 -0
- package/dist/assets.d.ts +12 -0
- package/dist/audio-layout.js +6 -3
- package/dist/audio-worklet-processor.js +27 -33
- package/dist/audio.d.ts +5 -4
- package/dist/audio.js +8 -6
- package/dist/compose.d.ts +105 -0
- package/dist/compose.js +63 -0
- package/dist/decoder-fallback.d.ts +3 -2
- package/dist/decoder-fallback.js +11 -3
- package/dist/decoder-stall.d.ts +15 -0
- package/dist/decoder-stall.js +52 -0
- package/dist/edit-data.d.ts +24 -0
- package/dist/edit-data.js +224 -0
- package/dist/edit-keys.d.ts +16 -0
- package/dist/edit-keys.js +233 -0
- package/dist/edit.d.ts +41 -8
- package/dist/edit.js +123 -30
- package/dist/export-failure.d.ts +10 -2
- package/dist/export-failure.js +55 -4
- package/dist/export-retry.d.ts +6 -1
- package/dist/export-retry.js +12 -1
- package/dist/exporter.d.ts +11 -7
- package/dist/exporter.js +10 -9
- package/dist/extensions.d.ts +86 -28
- package/dist/extensions.js +204 -61
- package/dist/extract.d.ts +65 -0
- package/dist/extract.js +291 -0
- package/dist/extractor.d.ts +151 -0
- package/dist/extractor.js +141 -0
- package/dist/float32.d.ts +2 -0
- package/dist/float32.js +10 -0
- package/dist/frame-intake.d.ts +5 -0
- package/dist/frame-intake.js +10 -3
- package/dist/generated/builtin-effects.d.ts +3 -0
- package/dist/generated/builtin-effects.js +1804 -0
- package/dist/generated/project-schema.d.ts +696 -41
- package/dist/generated/project-schema.js +67 -0
- package/dist/generated/project-shape.js +986 -383
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/json-text.js +14 -2
- package/dist/layout-values.js +7 -1
- package/dist/layout.d.ts +12 -4
- package/dist/media.d.ts +44 -11
- package/dist/media.js +256 -67
- package/dist/mediabunny.d.ts +32 -12
- package/dist/mediabunny.js +276 -90
- package/dist/player.d.ts +9 -3
- package/dist/player.js +114 -18
- package/dist/plugins.d.ts +62 -0
- package/dist/plugins.js +506 -0
- package/dist/project-data.d.ts +56 -0
- package/dist/project-data.js +765 -0
- package/dist/project.d.ts +36 -1
- package/dist/project.js +515 -42
- package/dist/robustness.d.ts +6 -33
- package/dist/robustness.js +2 -63
- package/dist/sha256.d.ts +3 -2
- package/dist/sha256.js +14 -6
- package/dist/wasm-module.d.ts +37 -0
- package/dist/wasm-module.js +47 -0
- package/dist/worker-error.d.ts +3 -2
- package/dist/worker-error.js +3 -1
- package/dist/worker.d.ts +13 -3
- package/dist/worker.js +36 -9
- package/package.json +36 -2
- package/wasm/alpha2_compose.d.ts +92 -0
- package/wasm/alpha2_compose.js +445 -0
- package/wasm/alpha2_compose_bg.wasm +0 -0
- package/wasm/alpha2_compose_bg.wasm.d.ts +17 -0
- package/wasm/alpha2_extensions.d.ts +4 -4
- package/wasm/alpha2_extensions.js +16 -4
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_extensions_pdf.d.ts +227 -0
- package/wasm/alpha2_extensions_pdf.js +841 -0
- package/wasm/alpha2_extensions_pdf_bg.wasm +0 -0
- package/wasm/alpha2_extensions_pdf_bg.wasm.d.ts +38 -0
- package/wasm/alpha2_wasm.d.ts +151 -18
- package/wasm/alpha2_wasm.js +403 -59
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +21 -6
- package/wasm/rust-crate-licenses.md +493 -54
- package/wasm/snippets/alpha2-wasm-1b02e9f302d283ba/inline3.js +7 -0
- /package/wasm/snippets/{alpha2-wasm-a21734ffde826659/inline1.js → alpha2-wasm-1b02e9f302d283ba/inline0.js} +0 -0
- /package/wasm/snippets/{alpha2-wasm-a21734ffde826659/inline2.js → alpha2-wasm-1b02e9f302d283ba/inline1.js} +0 -0
- /package/wasm/snippets/{alpha2-wasm-a21734ffde826659/inline3.js → alpha2-wasm-1b02e9f302d283ba/inline2.js} +0 -0
- /package/wasm/snippets/{alpha2-wasm-a21734ffde826659/inline0.js → alpha2-wasm-1b02e9f302d283ba/inline4.js} +0 -0
package/wasm/alpha2_wasm.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* @ts-self-types="./alpha2_wasm.d.ts" */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
2
|
+
import { alpha2BitmapUploadProbe, alpha2FrameBitmap, alpha2ImagePixels } from './snippets/alpha2-wasm-1b02e9f302d283ba/inline1.js';
|
|
3
|
+
import { alpha2CopyExternalImage } from './snippets/alpha2-wasm-1b02e9f302d283ba/inline2.js';
|
|
4
|
+
import { alpha2CopyOutBytes, alpha2CopyOutView } from './snippets/alpha2-wasm-1b02e9f302d283ba/inline3.js';
|
|
5
|
+
import { alpha2Canvas2d, alpha2PutRgba, alpha2ResizeCanvas } from './snippets/alpha2-wasm-1b02e9f302d283ba/inline4.js';
|
|
6
|
+
import * as import1 from "./snippets/alpha2-wasm-1b02e9f302d283ba/inline0.js"
|
|
7
|
+
import * as import2 from "./snippets/alpha2-wasm-1b02e9f302d283ba/inline0.js"
|
|
8
|
+
import * as import3 from "./snippets/alpha2-wasm-1b02e9f302d283ba/inline0.js"
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -198,6 +199,280 @@ export class CompiledEffect {
|
|
|
198
199
|
}
|
|
199
200
|
if (Symbol.dispose) CompiledEffect.prototype[Symbol.dispose] = CompiledEffect.prototype.free;
|
|
200
201
|
|
|
202
|
+
/**
|
|
203
|
+
* One extraction run.
|
|
204
|
+
*/
|
|
205
|
+
export class ExtractSession {
|
|
206
|
+
__destroy_into_raw() {
|
|
207
|
+
const ptr = this.__wbg_ptr;
|
|
208
|
+
this.__wbg_ptr = 0;
|
|
209
|
+
ExtractSessionFinalization.unregister(this);
|
|
210
|
+
return ptr;
|
|
211
|
+
}
|
|
212
|
+
free() {
|
|
213
|
+
const ptr = this.__destroy_into_raw();
|
|
214
|
+
wasm.__wbg_extractsession_free(ptr, 0);
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* The planar samples of the audio delivery `next` handed out.
|
|
218
|
+
* @returns {Float32Array}
|
|
219
|
+
*/
|
|
220
|
+
audioSamples() {
|
|
221
|
+
const ret = wasm.extractsession_audioSamples(this.__wbg_ptr);
|
|
222
|
+
var v1 = getArrayF32FromWasm0(ret[0], ret[1]).slice();
|
|
223
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
224
|
+
return v1;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* What `begin` is told as JSON, with the range, passes, clock and delivered video or audio.
|
|
228
|
+
*
|
|
229
|
+
* # Errors
|
|
230
|
+
* After `finish`.
|
|
231
|
+
* @returns {string}
|
|
232
|
+
*/
|
|
233
|
+
context() {
|
|
234
|
+
let deferred2_0;
|
|
235
|
+
let deferred2_1;
|
|
236
|
+
try {
|
|
237
|
+
const ret = wasm.extractsession_context(this.__wbg_ptr);
|
|
238
|
+
var ptr1 = ret[0];
|
|
239
|
+
var len1 = ret[1];
|
|
240
|
+
if (ret[3]) {
|
|
241
|
+
ptr1 = 0; len1 = 0;
|
|
242
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
243
|
+
}
|
|
244
|
+
deferred2_0 = ptr1;
|
|
245
|
+
deferred2_1 = len1;
|
|
246
|
+
return getStringFromWasm0(ptr1, len1);
|
|
247
|
+
} finally {
|
|
248
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Takes the extractor's emits for the last delivery or `end`, in the host protocol's JSON.
|
|
253
|
+
*
|
|
254
|
+
* # Errors
|
|
255
|
+
* `INVALID_EMIT` with `{ index, reason }` for the first emit the session refuses.
|
|
256
|
+
* @param {string} emits
|
|
257
|
+
*/
|
|
258
|
+
emit(emits) {
|
|
259
|
+
const ptr0 = passStringToWasm0(emits, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
260
|
+
const len0 = WASM_VECTOR_LEN;
|
|
261
|
+
const ret = wasm.extractsession_emit(this.__wbg_ptr, ptr0, len0);
|
|
262
|
+
if (ret[1]) {
|
|
263
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* The data sets, JSON; `made_from` (a fingerprint's JSON, or empty) is recorded on every
|
|
268
|
+
* source-anchored set. Ends the session.
|
|
269
|
+
*
|
|
270
|
+
* # Errors
|
|
271
|
+
* `INVALID_EMIT` when the run is not done or its result breaks a rule.
|
|
272
|
+
* @param {string | null} [made_from]
|
|
273
|
+
* @returns {string}
|
|
274
|
+
*/
|
|
275
|
+
finish(made_from) {
|
|
276
|
+
let deferred3_0;
|
|
277
|
+
let deferred3_1;
|
|
278
|
+
try {
|
|
279
|
+
var ptr0 = isLikeNone(made_from) ? 0 : passStringToWasm0(made_from, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
280
|
+
var len0 = WASM_VECTOR_LEN;
|
|
281
|
+
const ret = wasm.extractsession_finish(this.__wbg_ptr, ptr0, len0);
|
|
282
|
+
var ptr2 = ret[0];
|
|
283
|
+
var len2 = ret[1];
|
|
284
|
+
if (ret[3]) {
|
|
285
|
+
ptr2 = 0; len2 = 0;
|
|
286
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
287
|
+
}
|
|
288
|
+
deferred3_0 = ptr2;
|
|
289
|
+
deferred3_1 = len2;
|
|
290
|
+
return getStringFromWasm0(ptr2, len2);
|
|
291
|
+
} finally {
|
|
292
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* A run of the extractor `descriptor` describes over `project`, as `request` asks, all JSON.
|
|
297
|
+
*
|
|
298
|
+
* # Errors
|
|
299
|
+
* `INVALID_INPUT` for a project, descriptor or request that does not parse or is refused.
|
|
300
|
+
* @param {string} project
|
|
301
|
+
* @param {string} descriptor
|
|
302
|
+
* @param {string} request
|
|
303
|
+
*/
|
|
304
|
+
constructor(project, descriptor, request) {
|
|
305
|
+
const ptr0 = passStringToWasm0(project, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
306
|
+
const len0 = WASM_VECTOR_LEN;
|
|
307
|
+
const ptr1 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
308
|
+
const len1 = WASM_VECTOR_LEN;
|
|
309
|
+
const ptr2 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
310
|
+
const len2 = WASM_VECTOR_LEN;
|
|
311
|
+
const ret = wasm.extractsession_new(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
312
|
+
if (ret[2]) {
|
|
313
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
314
|
+
}
|
|
315
|
+
this.__wbg_ptr = ret[0];
|
|
316
|
+
ExtractSessionFinalization.register(this, this.__wbg_ptr, this);
|
|
317
|
+
return this;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* The next thing to do, as JSON: `{ step: "need", need: { ... } }`, `{ step: "pass", pass,
|
|
321
|
+
* direction }`, `{ step: "video", time, width, height, format }` (bytes from
|
|
322
|
+
* [`Self::video_bytes`]), `{ step: "audio", start, startSample, frames, rate, channels }`
|
|
323
|
+
* (samples from [`Self::audio_samples`]) or `{ step: "done" }`.
|
|
324
|
+
*
|
|
325
|
+
* # Errors
|
|
326
|
+
* After `finish`.
|
|
327
|
+
* @returns {string}
|
|
328
|
+
*/
|
|
329
|
+
next() {
|
|
330
|
+
let deferred2_0;
|
|
331
|
+
let deferred2_1;
|
|
332
|
+
try {
|
|
333
|
+
const ret = wasm.extractsession_next(this.__wbg_ptr);
|
|
334
|
+
var ptr1 = ret[0];
|
|
335
|
+
var len1 = ret[1];
|
|
336
|
+
if (ret[3]) {
|
|
337
|
+
ptr1 = 0; len1 = 0;
|
|
338
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
339
|
+
}
|
|
340
|
+
deferred2_0 = ptr1;
|
|
341
|
+
deferred2_1 = len1;
|
|
342
|
+
return getStringFromWasm0(ptr1, len1);
|
|
343
|
+
} finally {
|
|
344
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Each pass's progress, JSON `[{ completed, total }]`.
|
|
349
|
+
*
|
|
350
|
+
* # Errors
|
|
351
|
+
* After `finish`.
|
|
352
|
+
* @returns {string}
|
|
353
|
+
*/
|
|
354
|
+
progress() {
|
|
355
|
+
let deferred2_0;
|
|
356
|
+
let deferred2_1;
|
|
357
|
+
try {
|
|
358
|
+
const ret = wasm.extractsession_progress(this.__wbg_ptr);
|
|
359
|
+
var ptr1 = ret[0];
|
|
360
|
+
var len1 = ret[1];
|
|
361
|
+
if (ret[3]) {
|
|
362
|
+
ptr1 = 0; len1 = 0;
|
|
363
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
364
|
+
}
|
|
365
|
+
deferred2_0 = ptr1;
|
|
366
|
+
deferred2_1 = len1;
|
|
367
|
+
return getStringFromWasm0(ptr1, len1);
|
|
368
|
+
} finally {
|
|
369
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Answers an audio need: `channels` planes of the asked frame count, channel after channel.
|
|
374
|
+
* For a mono need, several channels are mixed down by `speakers` (a JSON array of `FFmpeg`
|
|
375
|
+
* channel names, such as `["FL","FR"]`) as the native hosts mix them.
|
|
376
|
+
*
|
|
377
|
+
* # Errors
|
|
378
|
+
* `INVALID_INPUT` for a supply the session did not ask for or of the wrong length, or
|
|
379
|
+
* channels that cannot be mixed down.
|
|
380
|
+
* @param {number} channels
|
|
381
|
+
* @param {Float32Array} samples
|
|
382
|
+
* @param {string | null} [speakers]
|
|
383
|
+
*/
|
|
384
|
+
supplyAudio(channels, samples, speakers) {
|
|
385
|
+
const ptr0 = passArrayF32ToWasm0(samples, wasm.__wbindgen_malloc);
|
|
386
|
+
const len0 = WASM_VECTOR_LEN;
|
|
387
|
+
var ptr1 = isLikeNone(speakers) ? 0 : passStringToWasm0(speakers, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
var len1 = WASM_VECTOR_LEN;
|
|
389
|
+
const ret = wasm.extractsession_supplyAudio(this.__wbg_ptr, channels, ptr0, len0, ptr1, len1);
|
|
390
|
+
if (ret[1]) {
|
|
391
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Answers a source-frame need when the source has no such frame.
|
|
396
|
+
*
|
|
397
|
+
* # Errors
|
|
398
|
+
* `INVALID_INPUT` when the session did not ask for a source frame.
|
|
399
|
+
*/
|
|
400
|
+
supplyEnd() {
|
|
401
|
+
const ret = wasm.extractsession_supplyEnd(this.__wbg_ptr);
|
|
402
|
+
if (ret[1]) {
|
|
403
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Answers a frame need with straight-alpha sRGB RGBA8 pixels already at the delivered size,
|
|
408
|
+
* such as a rendered timeline frame.
|
|
409
|
+
*
|
|
410
|
+
* # Errors
|
|
411
|
+
* `INVALID_INPUT` for a supply the session did not ask for or of the wrong size.
|
|
412
|
+
* @param {bigint} pts_ticks
|
|
413
|
+
* @param {number} width
|
|
414
|
+
* @param {number} height
|
|
415
|
+
* @param {Uint8Array} rgba
|
|
416
|
+
*/
|
|
417
|
+
supplyRgbaFrame(pts_ticks, width, height, rgba) {
|
|
418
|
+
const ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
|
|
419
|
+
const len0 = WASM_VECTOR_LEN;
|
|
420
|
+
const ret = wasm.extractsession_supplyRgbaFrame(this.__wbg_ptr, pts_ticks, width, height, ptr0, len0);
|
|
421
|
+
if (ret[1]) {
|
|
422
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Answers a source-frame need with a decoded frame's planes, as `VideoFrame.copyTo` writes
|
|
427
|
+
* them (the arguments of `uploadYuvFrame`), presented at the delivered size.
|
|
428
|
+
*
|
|
429
|
+
* # Errors
|
|
430
|
+
* `INVALID_INPUT` for planes that do not fit their format, or an unasked supply.
|
|
431
|
+
* @param {bigint} pts_ticks
|
|
432
|
+
* @param {string} format
|
|
433
|
+
* @param {number} coded_width
|
|
434
|
+
* @param {number} coded_height
|
|
435
|
+
* @param {Uint8Array} data
|
|
436
|
+
* @param {Uint32Array} layout
|
|
437
|
+
* @param {Uint32Array} visible
|
|
438
|
+
* @param {number} display_width
|
|
439
|
+
* @param {number} display_height
|
|
440
|
+
* @param {string} color
|
|
441
|
+
* @param {string} chroma_siting
|
|
442
|
+
* @param {number} rotation_degrees
|
|
443
|
+
* @param {boolean} mirror
|
|
444
|
+
*/
|
|
445
|
+
supplyYuvFrame(pts_ticks, format, coded_width, coded_height, data, layout, visible, display_width, display_height, color, chroma_siting, rotation_degrees, mirror) {
|
|
446
|
+
const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
447
|
+
const len0 = WASM_VECTOR_LEN;
|
|
448
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
449
|
+
const len1 = WASM_VECTOR_LEN;
|
|
450
|
+
const ptr2 = passArray32ToWasm0(layout, wasm.__wbindgen_malloc);
|
|
451
|
+
const len2 = WASM_VECTOR_LEN;
|
|
452
|
+
const ptr3 = passArray32ToWasm0(visible, wasm.__wbindgen_malloc);
|
|
453
|
+
const len3 = WASM_VECTOR_LEN;
|
|
454
|
+
const ptr4 = passStringToWasm0(color, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
455
|
+
const len4 = WASM_VECTOR_LEN;
|
|
456
|
+
const ptr5 = passStringToWasm0(chroma_siting, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
457
|
+
const len5 = WASM_VECTOR_LEN;
|
|
458
|
+
const ret = wasm.extractsession_supplyYuvFrame(this.__wbg_ptr, pts_ticks, ptr0, len0, coded_width, coded_height, ptr1, len1, ptr2, len2, ptr3, len3, display_width, display_height, ptr4, len4, ptr5, len5, rotation_degrees, mirror);
|
|
459
|
+
if (ret[1]) {
|
|
460
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* The pixels of the video delivery `next` handed out.
|
|
465
|
+
* @returns {Uint8Array}
|
|
466
|
+
*/
|
|
467
|
+
videoBytes() {
|
|
468
|
+
const ret = wasm.extractsession_videoBytes(this.__wbg_ptr);
|
|
469
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
470
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
471
|
+
return v1;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
if (Symbol.dispose) ExtractSession.prototype[Symbol.dispose] = ExtractSession.prototype.free;
|
|
475
|
+
|
|
201
476
|
/**
|
|
202
477
|
* Measures planar audio streamed in blocks.
|
|
203
478
|
*/
|
|
@@ -480,10 +755,11 @@ export class WasmTextMeasurer {
|
|
|
480
755
|
* "root" }`) lies on a `width` by `height` picture at `time` (ticks), as JSON
|
|
481
756
|
* `{ nodes }`.
|
|
482
757
|
*
|
|
483
|
-
* Nodes are in preorder as `{ at, border, content, overflow, lineCount, baselines
|
|
484
|
-
* boxes `{ left, top, right, bottom }` in picture fractions
|
|
485
|
-
* and node visuals. `lineCount`
|
|
486
|
-
* (`{ first, last }`, fractions of picture
|
|
758
|
+
* Nodes are in preorder as `{ at, border, content, overflow, lineCount, baselines,
|
|
759
|
+
* fontSize, truncated }`, boxes `{ left, top, right, bottom }` in picture fractions
|
|
760
|
+
* before the clip's transform and node visuals. `lineCount` and `fontSize` are `null`
|
|
761
|
+
* for a node without text, and `baselines` (`{ first, last }`, fractions of picture
|
|
762
|
+
* height) also for empty text. `truncated` says `line_clamp` cut its lines. `"<n>px"`
|
|
487
763
|
* lengths are project canvas pixels (`canvasWidth` by `canvasHeight`, defaulting to the
|
|
488
764
|
* picture size).
|
|
489
765
|
*
|
|
@@ -521,12 +797,14 @@ export class WasmTextMeasurer {
|
|
|
521
797
|
/**
|
|
522
798
|
* Where the text generator `generator_json` (`{ "type": "text", "text", "style" }`)
|
|
523
799
|
* lies on a `width` by `height` canvas, as JSON `{ layout, content, ink, lineCount,
|
|
524
|
-
* baselines }`.
|
|
800
|
+
* baselines, fontSize, truncated, overflow }`.
|
|
525
801
|
*
|
|
526
802
|
* Rectangles are `{ left, top, right, bottom }` in canvas fractions, before the clip's
|
|
527
803
|
* transform; `ink` is `null` when nothing draws. `baselines` is `{ first, last }`, the
|
|
528
|
-
* first and last alphabetic baselines as fractions of canvas height.
|
|
529
|
-
*
|
|
804
|
+
* first and last alphabetic baselines as fractions of canvas height. `fontSize` is the
|
|
805
|
+
* size drawn after `font_size_fit`. `truncated` says `line_clamp` cut lines, and
|
|
806
|
+
* `overflow` that the drawn text splits a word or is taller than `max_height`. Measure
|
|
807
|
+
* at the project canvas size, since another size can break lines elsewhere.
|
|
530
808
|
*
|
|
531
809
|
* # Errors
|
|
532
810
|
* Rejects an invalid text generator, an empty canvas, and a measurer without fonts.
|
|
@@ -1338,6 +1616,28 @@ export class WebCpuRenderer {
|
|
|
1338
1616
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1339
1617
|
return v1;
|
|
1340
1618
|
}
|
|
1619
|
+
/**
|
|
1620
|
+
* The project's frame at `time_ticks`, drawn at export quality at `width` x `height` from the
|
|
1621
|
+
* frames uploaded so far, as straight-alpha sRGB RGBA8, without touching the canvas. Only the
|
|
1622
|
+
* CPU renderer has it, and earlier renders do not change its result.
|
|
1623
|
+
*
|
|
1624
|
+
* # Errors
|
|
1625
|
+
* `INVALID_STATE` without a project, `MISSING_INPUT` when a source frame it shows has not
|
|
1626
|
+
* been uploaded, and what drawing the frame refuses.
|
|
1627
|
+
* @param {bigint} time_ticks
|
|
1628
|
+
* @param {number} width
|
|
1629
|
+
* @param {number} height
|
|
1630
|
+
* @returns {Uint8Array}
|
|
1631
|
+
*/
|
|
1632
|
+
readRgbaAt(time_ticks, width, height) {
|
|
1633
|
+
const ret = wasm.webcpurenderer_readRgbaAt(this.__wbg_ptr, time_ticks, width, height);
|
|
1634
|
+
if (ret[3]) {
|
|
1635
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1636
|
+
}
|
|
1637
|
+
var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
1638
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1639
|
+
return v1;
|
|
1640
|
+
}
|
|
1341
1641
|
/**
|
|
1342
1642
|
* Records an effect [`Self::compile_effect`] validated and returns its `id@version`.
|
|
1343
1643
|
*
|
|
@@ -2639,11 +2939,11 @@ export class WebEffectRegistry {
|
|
|
2639
2939
|
/**
|
|
2640
2940
|
* Loads and validates a versioned project document.
|
|
2641
2941
|
*
|
|
2642
|
-
* Uploaded frames and audio are kept for every source whose ID
|
|
2643
|
-
* so an edit needs no re-decode. Presentation frames are
|
|
2644
|
-
* or color pipeline (`settings.color`), or per source by
|
|
2645
|
-
* (`color_metadata`). All audio is dropped when the project sample rate
|
|
2646
|
-
* that changes
|
|
2942
|
+
* Uploaded frames and audio are kept for every source whose ID, locator, kind, provider and
|
|
2943
|
+
* fingerprint are unchanged, so an edit needs no re-decode. Presentation frames are
|
|
2944
|
+
* invalidated by a new canvas size or color pipeline (`settings.color`), or per source by
|
|
2945
|
+
* new declared color (`color_metadata`). All audio is dropped when the project sample rate
|
|
2946
|
+
* changes. Media that changes in a way the document does not show needs a new source ID.
|
|
2647
2947
|
*
|
|
2648
2948
|
* Loading ends a running export (`endExport`), so its next step is refused.
|
|
2649
2949
|
* @param {string} json
|
|
@@ -3494,6 +3794,29 @@ export class WebEffectRegistry {
|
|
|
3494
3794
|
}
|
|
3495
3795
|
if (Symbol.dispose) WebEffectRegistry.prototype[Symbol.dispose] = WebEffectRegistry.prototype.free;
|
|
3496
3796
|
|
|
3797
|
+
/**
|
|
3798
|
+
* Applies an edit operation (`remove_ranges`, `split_at`, `bake`) to a project, both JSON
|
|
3799
|
+
* text, and returns `[project, report]` as the engine's canonical JSON text.
|
|
3800
|
+
*
|
|
3801
|
+
* # Errors
|
|
3802
|
+
* `INVALID_INPUT` for an invalid project or request and for every refusal, or
|
|
3803
|
+
* `ALPHA2_ERROR` for an edited project that fails validation; `details.refusal` names why.
|
|
3804
|
+
* @param {string} project
|
|
3805
|
+
* @param {string} request
|
|
3806
|
+
* @returns {Array<any>}
|
|
3807
|
+
*/
|
|
3808
|
+
export function applyEdit(project, request) {
|
|
3809
|
+
const ptr0 = passStringToWasm0(project, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3810
|
+
const len0 = WASM_VECTOR_LEN;
|
|
3811
|
+
const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3812
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3813
|
+
const ret = wasm.applyEdit(ptr0, len0, ptr1, len1);
|
|
3814
|
+
if (ret[2]) {
|
|
3815
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
3816
|
+
}
|
|
3817
|
+
return takeFromExternrefTable0(ret[0]);
|
|
3818
|
+
}
|
|
3819
|
+
|
|
3497
3820
|
/**
|
|
3498
3821
|
* Checks that `bytes` hold face `face_index` of a font the engine can draw with, as
|
|
3499
3822
|
* registering it would.
|
|
@@ -4249,32 +4572,40 @@ function __wbg_get_imports() {
|
|
|
4249
4572
|
__wbg_addEventListener_9534e2dc12044ee4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4250
4573
|
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
4251
4574
|
}, arguments); },
|
|
4252
|
-
|
|
4575
|
+
__wbg_alpha2BitmapUploadProbe_c12b4f0b4cad2ee7: function() { return handleError(function () {
|
|
4253
4576
|
const ret = alpha2BitmapUploadProbe();
|
|
4254
4577
|
return ret;
|
|
4255
4578
|
}, arguments); },
|
|
4256
|
-
|
|
4579
|
+
__wbg_alpha2Canvas2d_faef7d1e44ca7c3e: function() { return handleError(function (arg0) {
|
|
4257
4580
|
const ret = alpha2Canvas2d(arg0);
|
|
4258
4581
|
return ret;
|
|
4259
4582
|
}, arguments); },
|
|
4260
|
-
|
|
4583
|
+
__wbg_alpha2CopyExternalImage_0d0ceaf69569fe96: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
4261
4584
|
alpha2CopyExternalImage(arg0, arg1, arg2, arg3 >>> 0, arg4 >>> 0);
|
|
4262
4585
|
}, arguments); },
|
|
4263
|
-
|
|
4586
|
+
__wbg_alpha2CopyOutBytes_21bb3b3bef9eaa6a: function() { return handleError(function (arg0, arg1) {
|
|
4587
|
+
const ret = alpha2CopyOutBytes(getArrayU8FromWasm0(arg0, arg1));
|
|
4588
|
+
return ret;
|
|
4589
|
+
}, arguments); },
|
|
4590
|
+
__wbg_alpha2CopyOutView_4127aee5e3ac46e8: function() { return handleError(function (arg0) {
|
|
4591
|
+
const ret = alpha2CopyOutView(arg0);
|
|
4592
|
+
return ret;
|
|
4593
|
+
}, arguments); },
|
|
4594
|
+
__wbg_alpha2FrameBitmap_7c6b53fa384b0fc5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
4264
4595
|
const ret = alpha2FrameBitmap(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
4265
4596
|
return ret;
|
|
4266
4597
|
}, arguments); },
|
|
4267
|
-
|
|
4598
|
+
__wbg_alpha2ImagePixels_8067f750ee50f0f8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
4268
4599
|
const ret = alpha2ImagePixels(arg1, arg2 >>> 0, arg3 >>> 0);
|
|
4269
4600
|
const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
|
|
4270
4601
|
const len1 = WASM_VECTOR_LEN;
|
|
4271
4602
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4272
4603
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4273
4604
|
}, arguments); },
|
|
4274
|
-
|
|
4605
|
+
__wbg_alpha2PutRgba_a451ed56e29a9f50: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
4275
4606
|
alpha2PutRgba(arg0, getArrayU8FromWasm0(arg1, arg2), arg3 >>> 0, arg4 >>> 0);
|
|
4276
4607
|
}, arguments); },
|
|
4277
|
-
|
|
4608
|
+
__wbg_alpha2ResizeCanvas_ca145705b154aaf1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
4278
4609
|
alpha2ResizeCanvas(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
4279
4610
|
}, arguments); },
|
|
4280
4611
|
__wbg_apply_5d9aa7604c2490a8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
@@ -5071,6 +5402,16 @@ function __wbg_get_imports() {
|
|
|
5071
5402
|
const ret = result;
|
|
5072
5403
|
return ret;
|
|
5073
5404
|
},
|
|
5405
|
+
__wbg_instanceof_VideoFrame_2ccce066c5fb74e6: function(arg0) {
|
|
5406
|
+
let result;
|
|
5407
|
+
try {
|
|
5408
|
+
result = arg0 instanceof VideoFrame;
|
|
5409
|
+
} catch (_) {
|
|
5410
|
+
result = false;
|
|
5411
|
+
}
|
|
5412
|
+
const ret = result;
|
|
5413
|
+
return ret;
|
|
5414
|
+
},
|
|
5074
5415
|
__wbg_instanceof_WebGl2RenderingContext_015d221b904a3c7b: function(arg0) {
|
|
5075
5416
|
let result;
|
|
5076
5417
|
try {
|
|
@@ -5396,6 +5737,10 @@ function __wbg_get_imports() {
|
|
|
5396
5737
|
const ret = Array.of(arg0);
|
|
5397
5738
|
return ret;
|
|
5398
5739
|
},
|
|
5740
|
+
__wbg_of_1c173c2ad96e2f7e: function(arg0, arg1) {
|
|
5741
|
+
const ret = Array.of(arg0, arg1);
|
|
5742
|
+
return ret;
|
|
5743
|
+
},
|
|
5399
5744
|
__wbg_offset_3a6b58d78a1ea664: function(arg0) {
|
|
5400
5745
|
const ret = arg0.offset;
|
|
5401
5746
|
return ret;
|
|
@@ -6160,10 +6505,6 @@ function __wbg_get_imports() {
|
|
|
6160
6505
|
const ret = arg0.size;
|
|
6161
6506
|
return ret;
|
|
6162
6507
|
},
|
|
6163
|
-
__wbg_slice_ec88db741786524b: function(arg0, arg1, arg2) {
|
|
6164
|
-
const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
|
|
6165
|
-
return ret;
|
|
6166
|
-
},
|
|
6167
6508
|
__wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
|
|
6168
6509
|
const ret = typeof global === 'undefined' ? null : global;
|
|
6169
6510
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -6499,47 +6840,47 @@ function __wbg_get_imports() {
|
|
|
6499
6840
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
6500
6841
|
}, arguments); },
|
|
6501
6842
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
6502
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
6843
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4142, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
6503
6844
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_);
|
|
6504
6845
|
return ret;
|
|
6505
6846
|
},
|
|
6506
6847
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
6507
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
6848
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 323, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6508
6849
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_);
|
|
6509
6850
|
return ret;
|
|
6510
6851
|
},
|
|
6511
6852
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
6512
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx:
|
|
6513
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6853
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx: 1923, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
6854
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_);
|
|
6514
6855
|
return ret;
|
|
6515
6856
|
},
|
|
6516
6857
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
6517
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
6518
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6858
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1923, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
6859
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__248);
|
|
6519
6860
|
return ret;
|
|
6520
6861
|
},
|
|
6521
6862
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
6522
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx:
|
|
6523
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6863
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 1926, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6864
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
|
|
6524
6865
|
return ret;
|
|
6525
6866
|
},
|
|
6526
6867
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
6527
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx:
|
|
6528
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6868
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1926, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6869
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__250);
|
|
6529
6870
|
return ret;
|
|
6530
6871
|
},
|
|
6531
6872
|
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
6532
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
6533
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6873
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1923, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
6874
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__251);
|
|
6534
6875
|
return ret;
|
|
6535
6876
|
},
|
|
6536
6877
|
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
6537
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
6538
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6878
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1923, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
6879
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__252);
|
|
6539
6880
|
return ret;
|
|
6540
6881
|
},
|
|
6541
6882
|
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
6542
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
6883
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 325, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
6543
6884
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_);
|
|
6544
6885
|
return ret;
|
|
6545
6886
|
},
|
|
@@ -6606,9 +6947,9 @@ function __wbg_get_imports() {
|
|
|
6606
6947
|
return {
|
|
6607
6948
|
__proto__: null,
|
|
6608
6949
|
"./alpha2_wasm_bg.js": import0,
|
|
6609
|
-
"./snippets/alpha2-wasm-
|
|
6610
|
-
"./snippets/alpha2-wasm-
|
|
6611
|
-
"./snippets/alpha2-wasm-
|
|
6950
|
+
"./snippets/alpha2-wasm-1b02e9f302d283ba/inline0.js": import1,
|
|
6951
|
+
"./snippets/alpha2-wasm-1b02e9f302d283ba/inline0.js": import2,
|
|
6952
|
+
"./snippets/alpha2-wasm-1b02e9f302d283ba/inline0.js": import3,
|
|
6612
6953
|
};
|
|
6613
6954
|
}
|
|
6614
6955
|
|
|
@@ -6620,12 +6961,12 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_
|
|
|
6620
6961
|
wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_(arg0, arg1, arg2);
|
|
6621
6962
|
}
|
|
6622
6963
|
|
|
6623
|
-
function
|
|
6624
|
-
wasm.
|
|
6964
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2) {
|
|
6965
|
+
wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
|
|
6625
6966
|
}
|
|
6626
6967
|
|
|
6627
|
-
function
|
|
6628
|
-
wasm.
|
|
6968
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__250(arg0, arg1, arg2) {
|
|
6969
|
+
wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__250(arg0, arg1, arg2);
|
|
6629
6970
|
}
|
|
6630
6971
|
|
|
6631
6972
|
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_(arg0, arg1, arg2) {
|
|
@@ -6635,29 +6976,29 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bin
|
|
|
6635
6976
|
}
|
|
6636
6977
|
}
|
|
6637
6978
|
|
|
6638
|
-
function
|
|
6639
|
-
const ret = wasm.
|
|
6979
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_(arg0, arg1, arg2) {
|
|
6980
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_(arg0, arg1, arg2);
|
|
6640
6981
|
if (ret[1]) {
|
|
6641
6982
|
throw takeFromExternrefTable0(ret[0]);
|
|
6642
6983
|
}
|
|
6643
6984
|
}
|
|
6644
6985
|
|
|
6645
|
-
function
|
|
6646
|
-
const ret = wasm.
|
|
6986
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__248(arg0, arg1, arg2) {
|
|
6987
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__248(arg0, arg1, arg2);
|
|
6647
6988
|
if (ret[1]) {
|
|
6648
6989
|
throw takeFromExternrefTable0(ret[0]);
|
|
6649
6990
|
}
|
|
6650
6991
|
}
|
|
6651
6992
|
|
|
6652
|
-
function
|
|
6653
|
-
const ret = wasm.
|
|
6993
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__251(arg0, arg1, arg2) {
|
|
6994
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__251(arg0, arg1, arg2);
|
|
6654
6995
|
if (ret[1]) {
|
|
6655
6996
|
throw takeFromExternrefTable0(ret[0]);
|
|
6656
6997
|
}
|
|
6657
6998
|
}
|
|
6658
6999
|
|
|
6659
|
-
function
|
|
6660
|
-
const ret = wasm.
|
|
7000
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__252(arg0, arg1, arg2) {
|
|
7001
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_8caefb168ee8d692___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__252(arg0, arg1, arg2);
|
|
6661
7002
|
if (ret[1]) {
|
|
6662
7003
|
throw takeFromExternrefTable0(ret[0]);
|
|
6663
7004
|
}
|
|
@@ -6771,6 +7112,9 @@ const ClockStepFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
6771
7112
|
const CompiledEffectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6772
7113
|
? { register: () => {}, unregister: () => {} }
|
|
6773
7114
|
: new FinalizationRegistry(ptr => wasm.__wbg_compiledeffect_free(ptr, 1));
|
|
7115
|
+
const ExtractSessionFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
7116
|
+
? { register: () => {}, unregister: () => {} }
|
|
7117
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_extractsession_free(ptr, 1));
|
|
6774
7118
|
const LoudnessMeterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
6775
7119
|
? { register: () => {}, unregister: () => {} }
|
|
6776
7120
|
: new FinalizationRegistry(ptr => wasm.__wbg_loudnessmeter_free(ptr, 1));
|
package/wasm/alpha2_wasm_bg.wasm
CHANGED
|
Binary file
|