alpha2 0.2.1 → 0.3.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 +6 -4
- package/dist/containers.d.ts +89 -0
- package/dist/containers.js +150 -0
- package/dist/effects.d.ts +16 -2
- package/dist/frame-supply.d.ts +8 -0
- package/dist/frame-supply.js +26 -4
- package/dist/generated/project-schema.d.ts +564 -100
- package/dist/generated/project-schema.js +36 -0
- package/dist/generated/project-shape.js +345 -55
- package/dist/geometry.d.ts +98 -0
- package/dist/geometry.js +71 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mediabunny.d.ts +54 -27
- package/dist/mediabunny.js +261 -46
- package/dist/player.d.ts +5 -0
- package/dist/presented-frames.d.ts +16 -0
- package/dist/presented-frames.js +31 -0
- package/dist/project.d.ts +26 -2
- package/dist/project.js +358 -55
- package/dist/worker.js +15 -1
- package/package.json +9 -1
- package/wasm/alpha2_audio_worklet.wasm +0 -0
- package/wasm/alpha2_extensions_bg.wasm +0 -0
- package/wasm/alpha2_wasm.d.ts +178 -8
- package/wasm/alpha2_wasm.js +506 -34
- package/wasm/alpha2_wasm_bg.wasm +0 -0
- package/wasm/alpha2_wasm_bg.wasm.d.ts +23 -4
- /package/wasm/snippets/{alpha2-wasm-6cb97e5ef34d0f09 → alpha2-wasm-7f557ec9a60cc69b}/inline0.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-6cb97e5ef34d0f09 → alpha2-wasm-7f557ec9a60cc69b}/inline1.js +0 -0
- /package/wasm/snippets/{alpha2-wasm-6cb97e5ef34d0f09 → alpha2-wasm-7f557ec9a60cc69b}/inline2.js +0 -0
package/wasm/alpha2_wasm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @ts-self-types="./alpha2_wasm.d.ts" */
|
|
2
|
-
import { alpha2BitmapUploadsPremultiplied, alpha2FrameBitmap } from './snippets/alpha2-wasm-
|
|
3
|
-
import { alpha2CopyExternalImage } from './snippets/alpha2-wasm-
|
|
4
|
-
import * as import1 from "./snippets/alpha2-wasm-
|
|
5
|
-
import * as import2 from "./snippets/alpha2-wasm-
|
|
2
|
+
import { alpha2BitmapUploadsPremultiplied, alpha2FrameBitmap } from './snippets/alpha2-wasm-7f557ec9a60cc69b/inline1.js';
|
|
3
|
+
import { alpha2CopyExternalImage } from './snippets/alpha2-wasm-7f557ec9a60cc69b/inline2.js';
|
|
4
|
+
import * as import1 from "./snippets/alpha2-wasm-7f557ec9a60cc69b/inline0.js"
|
|
5
|
+
import * as import2 from "./snippets/alpha2-wasm-7f557ec9a60cc69b/inline0.js"
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -138,7 +138,7 @@ export class ClockStep {
|
|
|
138
138
|
return ret !== 0;
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
141
|
-
* The
|
|
141
|
+
* The start of the frame to show, in ticks.
|
|
142
142
|
* @returns {number}
|
|
143
143
|
*/
|
|
144
144
|
get tick() {
|
|
@@ -408,6 +408,98 @@ export class RasterizedText {
|
|
|
408
408
|
}
|
|
409
409
|
if (Symbol.dispose) RasterizedText.prototype[Symbol.dispose] = RasterizedText.prototype.free;
|
|
410
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Measures text generators with caller-supplied fonts, without a GPU:
|
|
413
|
+
* where the engine draws each one's text on the canvas. Given the fonts
|
|
414
|
+
* a renderer draws with, in the same order, it answers for that
|
|
415
|
+
* renderer's frames.
|
|
416
|
+
*/
|
|
417
|
+
export class WasmTextMeasurer {
|
|
418
|
+
__destroy_into_raw() {
|
|
419
|
+
const ptr = this.__wbg_ptr;
|
|
420
|
+
this.__wbg_ptr = 0;
|
|
421
|
+
WasmTextMeasurerFinalization.unregister(this);
|
|
422
|
+
return ptr;
|
|
423
|
+
}
|
|
424
|
+
free() {
|
|
425
|
+
const ptr = this.__destroy_into_raw();
|
|
426
|
+
wasm.__wbg_wasmtextmeasurer_free(ptr, 0);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Appends an OpenType font to the fallback stack.
|
|
430
|
+
*
|
|
431
|
+
* # Errors
|
|
432
|
+
* Rejects malformed font bytes.
|
|
433
|
+
* @param {string} family
|
|
434
|
+
* @param {Uint8Array} bytes
|
|
435
|
+
* @param {number} face_index
|
|
436
|
+
*/
|
|
437
|
+
addFont(family, bytes, face_index) {
|
|
438
|
+
const ptr0 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
439
|
+
const len0 = WASM_VECTOR_LEN;
|
|
440
|
+
const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
|
441
|
+
const len1 = WASM_VECTOR_LEN;
|
|
442
|
+
const ret = wasm.wasmtextmeasurer_addFont(this.__wbg_ptr, ptr0, len0, ptr1, len1, face_index);
|
|
443
|
+
if (ret[1]) {
|
|
444
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* Drops every font.
|
|
449
|
+
*/
|
|
450
|
+
clearFonts() {
|
|
451
|
+
wasm.wasmtextmeasurer_clearFonts(this.__wbg_ptr);
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Where the text generator `generator_json` (`{ "type": "text",
|
|
455
|
+
* "text", "style" }`, as a project holds it) lies on a `width` by
|
|
456
|
+
* `height` canvas, as JSON `{ layout, content, ink, lineCount }`:
|
|
457
|
+
* each a `{ left, top, right, bottom }` rectangle in fractions of the
|
|
458
|
+
* canvas, as the style's position is, on the picture the generator
|
|
459
|
+
* draws before its clip's transform; `ink` is `null` when the text
|
|
460
|
+
* draws nothing. Measure at the project's canvas size: text laid out
|
|
461
|
+
* at another size can break its lines elsewhere.
|
|
462
|
+
*
|
|
463
|
+
* # Errors
|
|
464
|
+
* Rejects JSON that is no valid text generator, an empty canvas, and
|
|
465
|
+
* a measurer without fonts.
|
|
466
|
+
* @param {string} generator_json
|
|
467
|
+
* @param {number} width
|
|
468
|
+
* @param {number} height
|
|
469
|
+
* @returns {string}
|
|
470
|
+
*/
|
|
471
|
+
measure(generator_json, width, height) {
|
|
472
|
+
let deferred3_0;
|
|
473
|
+
let deferred3_1;
|
|
474
|
+
try {
|
|
475
|
+
const ptr0 = passStringToWasm0(generator_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
476
|
+
const len0 = WASM_VECTOR_LEN;
|
|
477
|
+
const ret = wasm.wasmtextmeasurer_measure(this.__wbg_ptr, ptr0, len0, width, height);
|
|
478
|
+
var ptr2 = ret[0];
|
|
479
|
+
var len2 = ret[1];
|
|
480
|
+
if (ret[3]) {
|
|
481
|
+
ptr2 = 0; len2 = 0;
|
|
482
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
483
|
+
}
|
|
484
|
+
deferred3_0 = ptr2;
|
|
485
|
+
deferred3_1 = len2;
|
|
486
|
+
return getStringFromWasm0(ptr2, len2);
|
|
487
|
+
} finally {
|
|
488
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* A measurer with no fonts; add them in fallback order.
|
|
493
|
+
*/
|
|
494
|
+
constructor() {
|
|
495
|
+
const ret = wasm.wasmtextmeasurer_new();
|
|
496
|
+
this.__wbg_ptr = ret;
|
|
497
|
+
WasmTextMeasurerFinalization.register(this, this.__wbg_ptr, this);
|
|
498
|
+
return this;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
if (Symbol.dispose) WasmTextMeasurer.prototype[Symbol.dispose] = WasmTextMeasurer.prototype.free;
|
|
502
|
+
|
|
411
503
|
/**
|
|
412
504
|
* Shapes and rasterizes text from caller-supplied fonts, in wasm.
|
|
413
505
|
*/
|
|
@@ -1255,6 +1347,23 @@ export class WebEffectRegistry {
|
|
|
1255
1347
|
throw takeFromExternrefTable0(ret[0]);
|
|
1256
1348
|
}
|
|
1257
1349
|
}
|
|
1350
|
+
/**
|
|
1351
|
+
* The loaded project's render size at the preview scale, `[width,
|
|
1352
|
+
* height]`: the size `renderAt` renders and the surface should have.
|
|
1353
|
+
*
|
|
1354
|
+
* # Errors
|
|
1355
|
+
* Fails when no project is loaded.
|
|
1356
|
+
* @returns {Uint32Array}
|
|
1357
|
+
*/
|
|
1358
|
+
get previewSize() {
|
|
1359
|
+
const ret = wasm.webeffectregistry_previewSize(this.__wbg_ptr);
|
|
1360
|
+
if (ret[3]) {
|
|
1361
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
1362
|
+
}
|
|
1363
|
+
var v1 = getArrayU32FromWasm0(ret[0], ret[1]).slice();
|
|
1364
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1365
|
+
return v1;
|
|
1366
|
+
}
|
|
1258
1367
|
/**
|
|
1259
1368
|
* Adds an effect [`Self::compile_effect`] compiled on this binding and
|
|
1260
1369
|
* returns its `id@version`. The compiled effect is consumed either way.
|
|
@@ -1363,9 +1472,11 @@ export class WebEffectRegistry {
|
|
|
1363
1472
|
* Evaluates and presents one project frame on the worker-owned canvas.
|
|
1364
1473
|
*
|
|
1365
1474
|
* Returns JSON `{ requestedTimeTicks, presentedTimeTicks, missingSources,
|
|
1366
|
-
* missingFrames, repeated }`: `presentedTimeTicks` is `null`
|
|
1367
|
-
* has been presented, and `missingFrames` names the exact
|
|
1368
|
-
* each missing source was needed at.
|
|
1475
|
+
* missingFrames, repeated, unchanged }`: `presentedTimeTicks` is `null`
|
|
1476
|
+
* until a frame has been presented, and `missingFrames` names the exact
|
|
1477
|
+
* source time each missing source was needed at. `unchanged` says the
|
|
1478
|
+
* frame equals the one presented last (see `Player::render_at`): nothing
|
|
1479
|
+
* was rendered or presented, and the canvas still shows it.
|
|
1369
1480
|
* @param {bigint} time_ticks
|
|
1370
1481
|
* @returns {string}
|
|
1371
1482
|
*/
|
|
@@ -1514,6 +1625,22 @@ export class WebEffectRegistry {
|
|
|
1514
1625
|
setPassTiming(enabled) {
|
|
1515
1626
|
wasm.webeffectregistry_setPassTiming(this.__wbg_ptr, enabled);
|
|
1516
1627
|
}
|
|
1628
|
+
/**
|
|
1629
|
+
* Renders preview frames at `scale` times the project's size from now
|
|
1630
|
+
* on (the preview quality profile's resolution scale; 0.5 until set, 1
|
|
1631
|
+
* renders at the project's resolution). Drops the held frame, so the
|
|
1632
|
+
* next `renderAt` presents. Size the surface to `previewSize` after it.
|
|
1633
|
+
*
|
|
1634
|
+
* # Errors
|
|
1635
|
+
* Rejects a scale that is not finite, above 0 and at most 8.
|
|
1636
|
+
* @param {number} scale
|
|
1637
|
+
*/
|
|
1638
|
+
setPreviewScale(scale) {
|
|
1639
|
+
const ret = wasm.webeffectregistry_setPreviewScale(this.__wbg_ptr, scale);
|
|
1640
|
+
if (ret[1]) {
|
|
1641
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1517
1644
|
/**
|
|
1518
1645
|
* Lets rendered results (each clip's finished picture and the frame)
|
|
1519
1646
|
* occupy up to `bytes` of GPU memory, to be found again when a frame
|
|
@@ -1673,6 +1800,29 @@ export class WebEffectRegistry {
|
|
|
1673
1800
|
throw takeFromExternrefTable0(ret[0]);
|
|
1674
1801
|
}
|
|
1675
1802
|
}
|
|
1803
|
+
/**
|
|
1804
|
+
* [`Self::upload_presented_video_frame`] for a bitmap made of the frame
|
|
1805
|
+
* with `createImageBitmap(frame, { premultiplyAlpha: "none" })`, which
|
|
1806
|
+
* skips the canvas draw where `videoFrameCopy` is `"bitmap"`. Always
|
|
1807
|
+
* closes `bitmap`; a source the project declares HDR is refused.
|
|
1808
|
+
* @param {string} source_id
|
|
1809
|
+
* @param {bigint} media_time_ticks
|
|
1810
|
+
* @param {ImageBitmap} bitmap
|
|
1811
|
+
* @param {number} output_width
|
|
1812
|
+
* @param {number} output_height
|
|
1813
|
+
* @param {number} rotation_degrees
|
|
1814
|
+
* @param {boolean} mirror
|
|
1815
|
+
* @returns {any}
|
|
1816
|
+
*/
|
|
1817
|
+
uploadPresentedImageBitmap(source_id, media_time_ticks, bitmap, output_width, output_height, rotation_degrees, mirror) {
|
|
1818
|
+
const ptr0 = passStringToWasm0(source_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1819
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1820
|
+
const ret = wasm.webeffectregistry_uploadPresentedImageBitmap(this.__wbg_ptr, ptr0, len0, media_time_ticks, bitmap, output_width, output_height, rotation_degrees, mirror);
|
|
1821
|
+
if (ret[2]) {
|
|
1822
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1823
|
+
}
|
|
1824
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1825
|
+
}
|
|
1676
1826
|
/**
|
|
1677
1827
|
* Like [`Self::upload_presented_rgba_frame`], for premultiplied
|
|
1678
1828
|
* linear-light RGBA half floats (their bits) in BT.709 primaries, as
|
|
@@ -1780,6 +1930,7 @@ export class WebEffectRegistry {
|
|
|
1780
1930
|
* Browser WebGPU copies the frame into a texture directly, or, where the
|
|
1781
1931
|
* browser does not take a `VideoFrame` (Firefox), copies it through a
|
|
1782
1932
|
* reused 2D canvas's bitmap. WebGL2 always uploads that bitmap.
|
|
1933
|
+
* `videoFrameCopy` says which.
|
|
1783
1934
|
*
|
|
1784
1935
|
* Both copies go through the page's own color conversion, so an HDR
|
|
1785
1936
|
* frame (PQ or HLG, by the color the project declares for the source,
|
|
@@ -1951,6 +2102,24 @@ export class WebEffectRegistry {
|
|
|
1951
2102
|
const ret = wasm.webeffectregistry_uploadedFrameCount(this.__wbg_ptr);
|
|
1952
2103
|
return ret >>> 0;
|
|
1953
2104
|
}
|
|
2105
|
+
/**
|
|
2106
|
+
* How [`Self::upload_presented_video_frame`] copies a frame: `"direct"`,
|
|
2107
|
+
* `"bitmap"` (through a canvas, once WebGPU refused a frame), `"untried"`,
|
|
2108
|
+
* or `"canvas"` on WebGL2.
|
|
2109
|
+
* @returns {string}
|
|
2110
|
+
*/
|
|
2111
|
+
get videoFrameCopy() {
|
|
2112
|
+
let deferred1_0;
|
|
2113
|
+
let deferred1_1;
|
|
2114
|
+
try {
|
|
2115
|
+
const ret = wasm.webeffectregistry_videoFrameCopy(this.__wbg_ptr);
|
|
2116
|
+
deferred1_0 = ret[0];
|
|
2117
|
+
deferred1_1 = ret[1];
|
|
2118
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2119
|
+
} finally {
|
|
2120
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
1954
2123
|
}
|
|
1955
2124
|
if (Symbol.dispose) WebEffectRegistry.prototype[Symbol.dispose] = WebEffectRegistry.prototype.free;
|
|
1956
2125
|
|
|
@@ -2117,6 +2286,52 @@ export function fontFamily(bytes, face_index) {
|
|
|
2117
2286
|
return v2;
|
|
2118
2287
|
}
|
|
2119
2288
|
|
|
2289
|
+
/**
|
|
2290
|
+
* The answers of the geometry queries the native tests pin
|
|
2291
|
+
* (`tests/golden/geometry_queries.json`), computed by this module.
|
|
2292
|
+
* @returns {string}
|
|
2293
|
+
*/
|
|
2294
|
+
export function geometryParityAnswers() {
|
|
2295
|
+
let deferred1_0;
|
|
2296
|
+
let deferred1_1;
|
|
2297
|
+
try {
|
|
2298
|
+
const ret = wasm.geometryParityAnswers();
|
|
2299
|
+
deferred1_0 = ret[0];
|
|
2300
|
+
deferred1_1 = ret[1];
|
|
2301
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2302
|
+
} finally {
|
|
2303
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* The front-most paint under a normalized point, or `undefined`.
|
|
2309
|
+
*
|
|
2310
|
+
* # Errors
|
|
2311
|
+
* Rejects items that are not a valid content tree, or a bad size or time.
|
|
2312
|
+
* @param {string} items_json
|
|
2313
|
+
* @param {number} time
|
|
2314
|
+
* @param {number} width
|
|
2315
|
+
* @param {number} height
|
|
2316
|
+
* @param {number} x
|
|
2317
|
+
* @param {number} y
|
|
2318
|
+
* @returns {string | undefined}
|
|
2319
|
+
*/
|
|
2320
|
+
export function hitTest(items_json, time, width, height, x, y) {
|
|
2321
|
+
const ptr0 = passStringToWasm0(items_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2322
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2323
|
+
const ret = wasm.hitTest(ptr0, len0, time, width, height, x, y);
|
|
2324
|
+
if (ret[3]) {
|
|
2325
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2326
|
+
}
|
|
2327
|
+
let v2;
|
|
2328
|
+
if (ret[0] !== 0) {
|
|
2329
|
+
v2 = getStringFromWasm0(ret[0], ret[1]);
|
|
2330
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2331
|
+
}
|
|
2332
|
+
return v2;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2120
2335
|
/**
|
|
2121
2336
|
* A project's non-fatal diagnostics (`Project::lint`), as a JSON array of
|
|
2122
2337
|
* issues (`alpha2/project`'s `LintIssue`).
|
|
@@ -2147,6 +2362,70 @@ export function lintProject(project_json) {
|
|
|
2147
2362
|
}
|
|
2148
2363
|
}
|
|
2149
2364
|
|
|
2365
|
+
/**
|
|
2366
|
+
* The polyline a position travels between its keyframes.
|
|
2367
|
+
*
|
|
2368
|
+
* # Errors
|
|
2369
|
+
* Rejects an invalid position or size.
|
|
2370
|
+
* @param {string} point_json
|
|
2371
|
+
* @param {number} width
|
|
2372
|
+
* @param {number} height
|
|
2373
|
+
* @returns {string}
|
|
2374
|
+
*/
|
|
2375
|
+
export function motionPath(point_json, width, height) {
|
|
2376
|
+
let deferred3_0;
|
|
2377
|
+
let deferred3_1;
|
|
2378
|
+
try {
|
|
2379
|
+
const ptr0 = passStringToWasm0(point_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2380
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2381
|
+
const ret = wasm.motionPath(ptr0, len0, width, height);
|
|
2382
|
+
var ptr2 = ret[0];
|
|
2383
|
+
var len2 = ret[1];
|
|
2384
|
+
if (ret[3]) {
|
|
2385
|
+
ptr2 = 0; len2 = 0;
|
|
2386
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2387
|
+
}
|
|
2388
|
+
deferred3_0 = ptr2;
|
|
2389
|
+
deferred3_1 = len2;
|
|
2390
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2391
|
+
} finally {
|
|
2392
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
|
|
2396
|
+
/**
|
|
2397
|
+
* The point of a path nearest a normalized point, as JSON or `null`.
|
|
2398
|
+
*
|
|
2399
|
+
* # Errors
|
|
2400
|
+
* Rejects an invalid path or size.
|
|
2401
|
+
* @param {string} path_json
|
|
2402
|
+
* @param {number} width
|
|
2403
|
+
* @param {number} height
|
|
2404
|
+
* @param {number} x
|
|
2405
|
+
* @param {number} y
|
|
2406
|
+
* @returns {string}
|
|
2407
|
+
*/
|
|
2408
|
+
export function nearestPoint(path_json, width, height, x, y) {
|
|
2409
|
+
let deferred3_0;
|
|
2410
|
+
let deferred3_1;
|
|
2411
|
+
try {
|
|
2412
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2413
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2414
|
+
const ret = wasm.nearestPoint(ptr0, len0, width, height, x, y);
|
|
2415
|
+
var ptr2 = ret[0];
|
|
2416
|
+
var len2 = ret[1];
|
|
2417
|
+
if (ret[3]) {
|
|
2418
|
+
ptr2 = 0; len2 = 0;
|
|
2419
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2420
|
+
}
|
|
2421
|
+
deferred3_0 = ptr2;
|
|
2422
|
+
deferred3_1 = len2;
|
|
2423
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2424
|
+
} finally {
|
|
2425
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2150
2429
|
/**
|
|
2151
2430
|
* Reads a subtitle file (`format` is `srt` or `webvtt`) into caption cues,
|
|
2152
2431
|
* returned as JSON `{ rows, skipped }`.
|
|
@@ -2186,6 +2465,37 @@ export function parseCaptions(text, format) {
|
|
|
2186
2465
|
}
|
|
2187
2466
|
}
|
|
2188
2467
|
|
|
2468
|
+
/**
|
|
2469
|
+
* Each subpath's length in pixels, as a JSON array.
|
|
2470
|
+
*
|
|
2471
|
+
* # Errors
|
|
2472
|
+
* Rejects an invalid path or size.
|
|
2473
|
+
* @param {string} path_json
|
|
2474
|
+
* @param {number} width
|
|
2475
|
+
* @param {number} height
|
|
2476
|
+
* @returns {string}
|
|
2477
|
+
*/
|
|
2478
|
+
export function pathLength(path_json, width, height) {
|
|
2479
|
+
let deferred3_0;
|
|
2480
|
+
let deferred3_1;
|
|
2481
|
+
try {
|
|
2482
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2483
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2484
|
+
const ret = wasm.pathLength(ptr0, len0, width, height);
|
|
2485
|
+
var ptr2 = ret[0];
|
|
2486
|
+
var len2 = ret[1];
|
|
2487
|
+
if (ret[3]) {
|
|
2488
|
+
ptr2 = 0; len2 = 0;
|
|
2489
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2490
|
+
}
|
|
2491
|
+
deferred3_0 = ptr2;
|
|
2492
|
+
deferred3_1 = len2;
|
|
2493
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2494
|
+
} finally {
|
|
2495
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2189
2499
|
/**
|
|
2190
2500
|
* The gain that brings a measured mix (a `loudnessReport` JSON) to
|
|
2191
2501
|
* `target_lufs` without its true peak passing `ceiling_dbtp`, or its sample
|
|
@@ -2260,6 +2570,40 @@ export function qualityLevels() {
|
|
|
2260
2570
|
}
|
|
2261
2571
|
}
|
|
2262
2572
|
|
|
2573
|
+
/**
|
|
2574
|
+
* A path with the given vertex count per subpath, as a path.
|
|
2575
|
+
*
|
|
2576
|
+
* # Errors
|
|
2577
|
+
* Rejects an invalid path or size, or a count past the vertex limit.
|
|
2578
|
+
* @param {string} path_json
|
|
2579
|
+
* @param {number} width
|
|
2580
|
+
* @param {number} height
|
|
2581
|
+
* @param {Uint32Array} counts
|
|
2582
|
+
* @returns {string}
|
|
2583
|
+
*/
|
|
2584
|
+
export function resamplePath(path_json, width, height, counts) {
|
|
2585
|
+
let deferred4_0;
|
|
2586
|
+
let deferred4_1;
|
|
2587
|
+
try {
|
|
2588
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2589
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2590
|
+
const ptr1 = passArray32ToWasm0(counts, wasm.__wbindgen_malloc);
|
|
2591
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2592
|
+
const ret = wasm.resamplePath(ptr0, len0, width, height, ptr1, len1);
|
|
2593
|
+
var ptr3 = ret[0];
|
|
2594
|
+
var len3 = ret[1];
|
|
2595
|
+
if (ret[3]) {
|
|
2596
|
+
ptr3 = 0; len3 = 0;
|
|
2597
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2598
|
+
}
|
|
2599
|
+
deferred4_0 = ptr3;
|
|
2600
|
+
deferred4_1 = len3;
|
|
2601
|
+
return getStringFromWasm0(ptr3, len3);
|
|
2602
|
+
} finally {
|
|
2603
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2263
2607
|
/**
|
|
2264
2608
|
* Resolves a quality level into a stereo audio bitrate in bits per second.
|
|
2265
2609
|
*
|
|
@@ -2330,6 +2674,38 @@ export function roundingQuantum(timestamps) {
|
|
|
2330
2674
|
return ret;
|
|
2331
2675
|
}
|
|
2332
2676
|
|
|
2677
|
+
/**
|
|
2678
|
+
* Each item's normalized bounds; see the geometry module.
|
|
2679
|
+
*
|
|
2680
|
+
* # Errors
|
|
2681
|
+
* Rejects items that are not a valid content tree, or a bad size or time.
|
|
2682
|
+
* @param {string} items_json
|
|
2683
|
+
* @param {number} time
|
|
2684
|
+
* @param {number} width
|
|
2685
|
+
* @param {number} height
|
|
2686
|
+
* @returns {string}
|
|
2687
|
+
*/
|
|
2688
|
+
export function shapeBounds(items_json, time, width, height) {
|
|
2689
|
+
let deferred3_0;
|
|
2690
|
+
let deferred3_1;
|
|
2691
|
+
try {
|
|
2692
|
+
const ptr0 = passStringToWasm0(items_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2693
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2694
|
+
const ret = wasm.shapeBounds(ptr0, len0, time, width, height);
|
|
2695
|
+
var ptr2 = ret[0];
|
|
2696
|
+
var len2 = ret[1];
|
|
2697
|
+
if (ret[3]) {
|
|
2698
|
+
ptr2 = 0; len2 = 0;
|
|
2699
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2700
|
+
}
|
|
2701
|
+
deferred3_0 = ptr2;
|
|
2702
|
+
deferred3_1 = len2;
|
|
2703
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2704
|
+
} finally {
|
|
2705
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2706
|
+
}
|
|
2707
|
+
}
|
|
2708
|
+
|
|
2333
2709
|
/**
|
|
2334
2710
|
* Installs the panic reporter as the module is instantiated.
|
|
2335
2711
|
*
|
|
@@ -2339,6 +2715,90 @@ export function roundingQuantum(timestamps) {
|
|
|
2339
2715
|
export function start() {
|
|
2340
2716
|
wasm.start();
|
|
2341
2717
|
}
|
|
2718
|
+
|
|
2719
|
+
/**
|
|
2720
|
+
* A rectangle, ellipse, or polystar as a path of the same outline.
|
|
2721
|
+
*
|
|
2722
|
+
* # Errors
|
|
2723
|
+
* Rejects an invalid geometry, size, or time.
|
|
2724
|
+
* @param {string} geometry_json
|
|
2725
|
+
* @param {number} time
|
|
2726
|
+
* @param {number} width
|
|
2727
|
+
* @param {number} height
|
|
2728
|
+
* @returns {string}
|
|
2729
|
+
*/
|
|
2730
|
+
export function toPath(geometry_json, time, width, height) {
|
|
2731
|
+
let deferred3_0;
|
|
2732
|
+
let deferred3_1;
|
|
2733
|
+
try {
|
|
2734
|
+
const ptr0 = passStringToWasm0(geometry_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2735
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2736
|
+
const ret = wasm.toPath(ptr0, len0, time, width, height);
|
|
2737
|
+
var ptr2 = ret[0];
|
|
2738
|
+
var len2 = ret[1];
|
|
2739
|
+
if (ret[3]) {
|
|
2740
|
+
ptr2 = 0; len2 = 0;
|
|
2741
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2742
|
+
}
|
|
2743
|
+
deferred3_0 = ptr2;
|
|
2744
|
+
deferred3_1 = len2;
|
|
2745
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2746
|
+
} finally {
|
|
2747
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2748
|
+
}
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
/**
|
|
2752
|
+
* The part of a path a trim keeps, as a path.
|
|
2753
|
+
*
|
|
2754
|
+
* # Errors
|
|
2755
|
+
* Rejects an invalid path, size, or span.
|
|
2756
|
+
* @param {string} path_json
|
|
2757
|
+
* @param {number} width
|
|
2758
|
+
* @param {number} height
|
|
2759
|
+
* @param {number} start
|
|
2760
|
+
* @param {number} end
|
|
2761
|
+
* @param {number} offset
|
|
2762
|
+
* @returns {string}
|
|
2763
|
+
*/
|
|
2764
|
+
export function trimPath(path_json, width, height, start, end, offset) {
|
|
2765
|
+
let deferred3_0;
|
|
2766
|
+
let deferred3_1;
|
|
2767
|
+
try {
|
|
2768
|
+
const ptr0 = passStringToWasm0(path_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2769
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2770
|
+
const ret = wasm.trimPath(ptr0, len0, width, height, start, end, offset);
|
|
2771
|
+
var ptr2 = ret[0];
|
|
2772
|
+
var len2 = ret[1];
|
|
2773
|
+
if (ret[3]) {
|
|
2774
|
+
ptr2 = 0; len2 = 0;
|
|
2775
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
2776
|
+
}
|
|
2777
|
+
deferred3_0 = ptr2;
|
|
2778
|
+
deferred3_1 = len2;
|
|
2779
|
+
return getStringFromWasm0(ptr2, len2);
|
|
2780
|
+
} finally {
|
|
2781
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
|
|
2785
|
+
/**
|
|
2786
|
+
* The vector coverage and scene hashes the native tests pin
|
|
2787
|
+
* (`tests/golden/vector_coverage.json`), computed by this module.
|
|
2788
|
+
* @returns {string}
|
|
2789
|
+
*/
|
|
2790
|
+
export function vectorParityHashes() {
|
|
2791
|
+
let deferred1_0;
|
|
2792
|
+
let deferred1_1;
|
|
2793
|
+
try {
|
|
2794
|
+
const ret = wasm.vectorParityHashes();
|
|
2795
|
+
deferred1_0 = ret[0];
|
|
2796
|
+
deferred1_1 = ret[1];
|
|
2797
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
2798
|
+
} finally {
|
|
2799
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2342
2802
|
function __wbg_get_imports() {
|
|
2343
2803
|
const import0 = {
|
|
2344
2804
|
__proto__: null,
|
|
@@ -2416,14 +2876,14 @@ function __wbg_get_imports() {
|
|
|
2416
2876
|
__wbg_addEventListener_9534e2dc12044ee4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2417
2877
|
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
2418
2878
|
}, arguments); },
|
|
2419
|
-
|
|
2879
|
+
__wbg_alpha2BitmapUploadsPremultiplied_9fa4ca6ba736479b: function() { return handleError(function () {
|
|
2420
2880
|
const ret = alpha2BitmapUploadsPremultiplied();
|
|
2421
2881
|
return ret;
|
|
2422
2882
|
}, arguments); },
|
|
2423
|
-
|
|
2883
|
+
__wbg_alpha2CopyExternalImage_0e2fd677c6fb8e50: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2424
2884
|
alpha2CopyExternalImage(arg0, arg1, arg2, arg3 >>> 0, arg4 >>> 0);
|
|
2425
2885
|
}, arguments); },
|
|
2426
|
-
|
|
2886
|
+
__wbg_alpha2FrameBitmap_cdcdf23620ddcfd1: function() { return handleError(function (arg0, arg1, arg2) {
|
|
2427
2887
|
const ret = alpha2FrameBitmap(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
2428
2888
|
return ret;
|
|
2429
2889
|
}, arguments); },
|
|
@@ -2629,6 +3089,9 @@ function __wbg_get_imports() {
|
|
|
2629
3089
|
__wbg_copyBufferToBuffer_9c174b96fb08d551: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2630
3090
|
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
2631
3091
|
}, arguments); },
|
|
3092
|
+
__wbg_copyBufferToTexture_ff632a21ab3fe3a7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3093
|
+
arg0.copyBufferToTexture(arg1, arg2, arg3);
|
|
3094
|
+
}, arguments); },
|
|
2632
3095
|
__wbg_copyExternalImageToTexture_116560f3be856776: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2633
3096
|
arg0.copyExternalImageToTexture(arg1, arg2, arg3);
|
|
2634
3097
|
}, arguments); },
|
|
@@ -3663,6 +4126,12 @@ function __wbg_get_imports() {
|
|
|
3663
4126
|
__wbg_setScissorRect_889235eeb784732b: function(arg0, arg1, arg2, arg3, arg4) {
|
|
3664
4127
|
arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
|
|
3665
4128
|
},
|
|
4129
|
+
__wbg_setVertexBuffer_6db3b60e99280744: function(arg0, arg1, arg2, arg3) {
|
|
4130
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
|
|
4131
|
+
},
|
|
4132
|
+
__wbg_setVertexBuffer_cbf4ca1627c02f4c: function(arg0, arg1, arg2, arg3, arg4) {
|
|
4133
|
+
arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
|
|
4134
|
+
},
|
|
3666
4135
|
__wbg_set_9cfc0f17d60ff0af: function(arg0, arg1, arg2) {
|
|
3667
4136
|
arg0.set(arg1, arg2 >>> 0);
|
|
3668
4137
|
},
|
|
@@ -4604,47 +5073,47 @@ function __wbg_get_imports() {
|
|
|
4604
5073
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
4605
5074
|
}, arguments); },
|
|
4606
5075
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
4607
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
5076
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3362, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
4608
5077
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_);
|
|
4609
5078
|
return ret;
|
|
4610
5079
|
},
|
|
4611
5080
|
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
4612
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
5081
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 241, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
4613
5082
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_);
|
|
4614
5083
|
return ret;
|
|
4615
5084
|
},
|
|
4616
5085
|
__wbindgen_generic_0000000000000003: function(arg0, arg1) {
|
|
4617
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx:
|
|
5086
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx: 1140, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
4618
5087
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_);
|
|
4619
5088
|
return ret;
|
|
4620
5089
|
},
|
|
4621
5090
|
__wbindgen_generic_0000000000000004: function(arg0, arg1) {
|
|
4622
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx:
|
|
4623
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5091
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1140, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5092
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__143);
|
|
4624
5093
|
return ret;
|
|
4625
5094
|
},
|
|
4626
5095
|
__wbindgen_generic_0000000000000005: function(arg0, arg1) {
|
|
4627
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx:
|
|
5096
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 1143, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
4628
5097
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
|
|
4629
5098
|
return ret;
|
|
4630
5099
|
},
|
|
4631
5100
|
__wbindgen_generic_0000000000000006: function(arg0, arg1) {
|
|
4632
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx:
|
|
4633
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5101
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1143, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5102
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__145);
|
|
4634
5103
|
return ret;
|
|
4635
5104
|
},
|
|
4636
5105
|
__wbindgen_generic_0000000000000007: function(arg0, arg1) {
|
|
4637
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx:
|
|
4638
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5106
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1140, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5107
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__146);
|
|
4639
5108
|
return ret;
|
|
4640
5109
|
},
|
|
4641
5110
|
__wbindgen_generic_0000000000000008: function(arg0, arg1) {
|
|
4642
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx:
|
|
4643
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
5111
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1140, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5112
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__147);
|
|
4644
5113
|
return ret;
|
|
4645
5114
|
},
|
|
4646
5115
|
__wbindgen_generic_0000000000000009: function(arg0, arg1) {
|
|
4647
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
5116
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
4648
5117
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_);
|
|
4649
5118
|
return ret;
|
|
4650
5119
|
},
|
|
@@ -4711,8 +5180,8 @@ function __wbg_get_imports() {
|
|
|
4711
5180
|
return {
|
|
4712
5181
|
__proto__: null,
|
|
4713
5182
|
"./alpha2_wasm_bg.js": import0,
|
|
4714
|
-
"./snippets/alpha2-wasm-
|
|
4715
|
-
"./snippets/alpha2-wasm-
|
|
5183
|
+
"./snippets/alpha2-wasm-7f557ec9a60cc69b/inline0.js": import1,
|
|
5184
|
+
"./snippets/alpha2-wasm-7f557ec9a60cc69b/inline0.js": import2,
|
|
4716
5185
|
};
|
|
4717
5186
|
}
|
|
4718
5187
|
|
|
@@ -4728,8 +5197,8 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46
|
|
|
4728
5197
|
wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
|
|
4729
5198
|
}
|
|
4730
5199
|
|
|
4731
|
-
function
|
|
4732
|
-
wasm.
|
|
5200
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__145(arg0, arg1, arg2) {
|
|
5201
|
+
wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__145(arg0, arg1, arg2);
|
|
4733
5202
|
}
|
|
4734
5203
|
|
|
4735
5204
|
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_(arg0, arg1, arg2) {
|
|
@@ -4746,22 +5215,22 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bin
|
|
|
4746
5215
|
}
|
|
4747
5216
|
}
|
|
4748
5217
|
|
|
4749
|
-
function
|
|
4750
|
-
const ret = wasm.
|
|
5218
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__143(arg0, arg1, arg2) {
|
|
5219
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__143(arg0, arg1, arg2);
|
|
4751
5220
|
if (ret[1]) {
|
|
4752
5221
|
throw takeFromExternrefTable0(ret[0]);
|
|
4753
5222
|
}
|
|
4754
5223
|
}
|
|
4755
5224
|
|
|
4756
|
-
function
|
|
4757
|
-
const ret = wasm.
|
|
5225
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__146(arg0, arg1, arg2) {
|
|
5226
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__146(arg0, arg1, arg2);
|
|
4758
5227
|
if (ret[1]) {
|
|
4759
5228
|
throw takeFromExternrefTable0(ret[0]);
|
|
4760
5229
|
}
|
|
4761
5230
|
}
|
|
4762
5231
|
|
|
4763
|
-
function
|
|
4764
|
-
const ret = wasm.
|
|
5232
|
+
function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__147(arg0, arg1, arg2) {
|
|
5233
|
+
const ret = wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___sys__JsNullable_wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuError__GpuError___core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true__147(arg0, arg1, arg2);
|
|
4765
5234
|
if (ret[1]) {
|
|
4766
5235
|
throw takeFromExternrefTable0(ret[0]);
|
|
4767
5236
|
}
|
|
@@ -4884,6 +5353,9 @@ const PlaybackClockFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
4884
5353
|
const RasterizedTextFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4885
5354
|
? { register: () => {}, unregister: () => {} }
|
|
4886
5355
|
: new FinalizationRegistry(ptr => wasm.__wbg_rasterizedtext_free(ptr, 1));
|
|
5356
|
+
const WasmTextMeasurerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
5357
|
+
? { register: () => {}, unregister: () => {} }
|
|
5358
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextmeasurer_free(ptr, 1));
|
|
4887
5359
|
const WasmTextRasterizerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
4888
5360
|
? { register: () => {}, unregister: () => {} }
|
|
4889
5361
|
: new FinalizationRegistry(ptr => wasm.__wbg_wasmtextrasterizer_free(ptr, 1));
|