alpha2 0.4.4 → 0.4.6

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.
@@ -1,9 +1,9 @@
1
1
  /* @ts-self-types="./alpha2_wasm.d.ts" */
2
- import { alpha2Canvas2d, alpha2ImagePixels, alpha2PutRgba, alpha2ResizeCanvas } from './snippets/alpha2-wasm-a3e88ca7a20123fc/inline0.js';
3
- import { alpha2BitmapUploadsPremultiplied, alpha2FrameBitmap } from './snippets/alpha2-wasm-a3e88ca7a20123fc/inline2.js';
4
- import { alpha2CopyExternalImage } from './snippets/alpha2-wasm-a3e88ca7a20123fc/inline3.js';
5
- import * as import1 from "./snippets/alpha2-wasm-a3e88ca7a20123fc/inline1.js"
6
- import * as import2 from "./snippets/alpha2-wasm-a3e88ca7a20123fc/inline1.js"
2
+ import { alpha2Canvas2d, alpha2ImagePixels, alpha2PutRgba, alpha2ResizeCanvas } from './snippets/alpha2-wasm-c62e60c964e88a52/inline0.js';
3
+ import { alpha2BitmapUploadsPremultiplied, alpha2FrameBitmap } from './snippets/alpha2-wasm-c62e60c964e88a52/inline2.js';
4
+ import { alpha2CopyExternalImage } from './snippets/alpha2-wasm-c62e60c964e88a52/inline3.js';
5
+ import * as import1 from "./snippets/alpha2-wasm-c62e60c964e88a52/inline1.js"
6
+ import * as import2 from "./snippets/alpha2-wasm-c62e60c964e88a52/inline1.js"
7
7
 
8
8
 
9
9
  /**
@@ -426,6 +426,26 @@ export class WasmTextMeasurer {
426
426
  const ptr = this.__destroy_into_raw();
427
427
  wasm.__wbg_wasmtextmeasurer_free(ptr, 0);
428
428
  }
429
+ /**
430
+ * Appends every face of an OpenType font file to the fallback stack,
431
+ * in the file's order: each weight of a collection (`.ttc`), all
432
+ * checked before any is added.
433
+ *
434
+ * # Errors
435
+ * Rejects malformed font bytes, naming no face added.
436
+ * @param {string} family
437
+ * @param {Uint8Array} bytes
438
+ */
439
+ addFontFile(family, bytes) {
440
+ const ptr0 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
441
+ const len0 = WASM_VECTOR_LEN;
442
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
443
+ const len1 = WASM_VECTOR_LEN;
444
+ const ret = wasm.wasmtextmeasurer_addFontFile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
445
+ if (ret[1]) {
446
+ throw takeFromExternrefTable0(ret[0]);
447
+ }
448
+ }
429
449
  /**
430
450
  * Appends an OpenType font to the fallback stack.
431
451
  *
@@ -457,9 +477,11 @@ export class WasmTextMeasurer {
457
477
  * `width` by `height` picture at picture time `time` (ticks), laid
458
478
  * out with these fonts as a frame lays it out, as JSON `{ nodes }`:
459
479
  * each node in preorder as `{ at, border, content, overflow,
460
- * lineCount }`, its boxes `{ left, top, right, bottom }` in fractions
461
- * of the picture, before its clip's transform and node visuals.
462
- * `lineCount` is `null` for a node without text. Measure at the size
480
+ * lineCount, baselines }`, its boxes `{ left, top, right, bottom }` in
481
+ * fractions of the picture, before its clip's transform and node
482
+ * visuals. `lineCount` is `null` for a node without text, and
483
+ * `baselines` (`{ first, last }`, in fractions of the picture height)
484
+ * for a node without text or with empty text. Measure at the size
463
485
  * the picture is drawn at. The layout's `"<n>px"` lengths are pixels
464
486
  * of the project canvas, `canvasWidth` by `canvasHeight`: the
465
487
  * picture's size when they are omitted.
@@ -499,11 +521,13 @@ export class WasmTextMeasurer {
499
521
  /**
500
522
  * Where the text generator `generator_json` (`{ "type": "text",
501
523
  * "text", "style" }`, as a project holds it) lies on a `width` by
502
- * `height` canvas, as JSON `{ layout, content, ink, lineCount }`:
503
- * each a `{ left, top, right, bottom }` rectangle in fractions of the
504
- * canvas, as the style's position is, on the picture the generator
505
- * draws before its clip's transform; `ink` is `null` when the text
506
- * draws nothing. Measure at the project's canvas size: text laid out
524
+ * `height` canvas, as JSON `{ layout, content, ink, lineCount,
525
+ * baselines }`: each a `{ left, top, right, bottom }` rectangle in
526
+ * fractions of the canvas, as the style's position is, on the picture
527
+ * the generator draws before its clip's transform; `ink` is `null`
528
+ * when the text draws nothing. `baselines` is `{ first, last }`, the
529
+ * first and last lines' alphabetic baselines in fractions of the
530
+ * canvas height. Measure at the project's canvas size: text laid out
507
531
  * at another size can break its lines elsewhere.
508
532
  *
509
533
  * # Errors
@@ -560,6 +584,26 @@ export class WasmTextRasterizer {
560
584
  const ptr = this.__destroy_into_raw();
561
585
  wasm.__wbg_wasmtextrasterizer_free(ptr, 0);
562
586
  }
587
+ /**
588
+ * Appends every face of an OpenType font file to the fallback stack,
589
+ * in the file's order: each weight of a collection (`.ttc`), all
590
+ * checked before any is added.
591
+ *
592
+ * # Errors
593
+ * Rejects malformed font bytes, naming no face added.
594
+ * @param {string} family
595
+ * @param {Uint8Array} bytes
596
+ */
597
+ addFontFile(family, bytes) {
598
+ const ptr0 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
599
+ const len0 = WASM_VECTOR_LEN;
600
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
601
+ const len1 = WASM_VECTOR_LEN;
602
+ const ret = wasm.wasmtextrasterizer_addFontFile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
603
+ if (ret[1]) {
604
+ throw takeFromExternrefTable0(ret[0]);
605
+ }
606
+ }
563
607
  /**
564
608
  * Appends an OpenType font to the fallback stack.
565
609
  *
@@ -787,6 +831,26 @@ export class WebCpuRenderer {
787
831
  const ptr = this.__destroy_into_raw();
788
832
  wasm.__wbg_webcpurenderer_free(ptr, 0);
789
833
  }
834
+ /**
835
+ * Appends every face of an OpenType font file to the fallback stack, in
836
+ * the file's order: each weight of a collection (`.ttc`), all checked
837
+ * before any is added, as the export host registers a file.
838
+ *
839
+ * # Errors
840
+ * Returns an error for malformed font bytes, with no face added.
841
+ * @param {string} family
842
+ * @param {Uint8Array} bytes
843
+ */
844
+ addFontFile(family, bytes) {
845
+ const ptr0 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
846
+ const len0 = WASM_VECTOR_LEN;
847
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
848
+ const len1 = WASM_VECTOR_LEN;
849
+ const ret = wasm.webcpurenderer_addFontFile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
850
+ if (ret[1]) {
851
+ throw takeFromExternrefTable0(ret[0]);
852
+ }
853
+ }
790
854
  /**
791
855
  * Appends an OpenType font to the fallback stack text draws with.
792
856
  *
@@ -1976,6 +2040,26 @@ export class WebEffectRegistry {
1976
2040
  const ptr = this.__destroy_into_raw();
1977
2041
  wasm.__wbg_webeffectregistry_free(ptr, 0);
1978
2042
  }
2043
+ /**
2044
+ * Appends every face of an OpenType font file to the fallback stack, in
2045
+ * the file's order: each weight of a collection (`.ttc`), all checked
2046
+ * before any is added, as the export host registers a file.
2047
+ *
2048
+ * # Errors
2049
+ * Returns an error for malformed font bytes, with no face added.
2050
+ * @param {string} family
2051
+ * @param {Uint8Array} bytes
2052
+ */
2053
+ addFontFile(family, bytes) {
2054
+ const ptr0 = passStringToWasm0(family, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2055
+ const len0 = WASM_VECTOR_LEN;
2056
+ const ptr1 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
2057
+ const len1 = WASM_VECTOR_LEN;
2058
+ const ret = wasm.webeffectregistry_addFontFile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
2059
+ if (ret[1]) {
2060
+ throw takeFromExternrefTable0(ret[0]);
2061
+ }
2062
+ }
1979
2063
  /**
1980
2064
  * Appends an OpenType font to the fallback stack caption tracks, text
1981
2065
  * generators and layouts draw and lay out with. Give it the same font
@@ -3544,6 +3628,19 @@ export function conformProject(project, catalog, purpose) {
3544
3628
  }
3545
3629
  }
3546
3630
 
3631
+ /**
3632
+ * How many faces the font file `bytes` holds: a font collection's
3633
+ * count, else 1. `addFontFile` registers each.
3634
+ * @param {Uint8Array} bytes
3635
+ * @returns {number}
3636
+ */
3637
+ export function fontFaceCount(bytes) {
3638
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
3639
+ const len0 = WASM_VECTOR_LEN;
3640
+ const ret = wasm.fontFaceCount(ptr0, len0);
3641
+ return ret >>> 0;
3642
+ }
3643
+
3547
3644
  /**
3548
3645
  * Returns the family name a caption style's `font_family` must give to
3549
3646
  * select face `face_index` of the font file `bytes`, read from the font's
@@ -4155,32 +4252,32 @@ function __wbg_get_imports() {
4155
4252
  __wbg_addEventListener_9534e2dc12044ee4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
4156
4253
  arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
4157
4254
  }, arguments); },
4158
- __wbg_alpha2BitmapUploadsPremultiplied_0998827b3e22863d: function() { return handleError(function () {
4255
+ __wbg_alpha2BitmapUploadsPremultiplied_094aeb45588d7a18: function() { return handleError(function () {
4159
4256
  const ret = alpha2BitmapUploadsPremultiplied();
4160
4257
  return ret;
4161
4258
  }, arguments); },
4162
- __wbg_alpha2Canvas2d_7f2205ce0f19899c: function() { return handleError(function (arg0) {
4259
+ __wbg_alpha2Canvas2d_035427008bee6c7e: function() { return handleError(function (arg0) {
4163
4260
  const ret = alpha2Canvas2d(arg0);
4164
4261
  return ret;
4165
4262
  }, arguments); },
4166
- __wbg_alpha2CopyExternalImage_dc0ce4e40cba9f76: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4263
+ __wbg_alpha2CopyExternalImage_da8bbed7a3f65b7c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4167
4264
  alpha2CopyExternalImage(arg0, arg1, arg2, arg3 >>> 0, arg4 >>> 0);
4168
4265
  }, arguments); },
4169
- __wbg_alpha2FrameBitmap_db7f32e872107eae: function() { return handleError(function (arg0, arg1, arg2) {
4266
+ __wbg_alpha2FrameBitmap_77e25f3e615cab49: function() { return handleError(function (arg0, arg1, arg2) {
4170
4267
  const ret = alpha2FrameBitmap(arg0, arg1 >>> 0, arg2 >>> 0);
4171
4268
  return ret;
4172
4269
  }, arguments); },
4173
- __wbg_alpha2ImagePixels_90c36089ce4b373d: function() { return handleError(function (arg0, arg1, arg2, arg3) {
4270
+ __wbg_alpha2ImagePixels_f7ae7949b0f24d9b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
4174
4271
  const ret = alpha2ImagePixels(arg1, arg2 >>> 0, arg3 >>> 0);
4175
4272
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_malloc);
4176
4273
  const len1 = WASM_VECTOR_LEN;
4177
4274
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4178
4275
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4179
4276
  }, arguments); },
4180
- __wbg_alpha2PutRgba_661d59818292453c: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4277
+ __wbg_alpha2PutRgba_7effa116f168f658: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4181
4278
  alpha2PutRgba(arg0, getArrayU8FromWasm0(arg1, arg2), arg3 >>> 0, arg4 >>> 0);
4182
4279
  }, arguments); },
4183
- __wbg_alpha2ResizeCanvas_76aa5c3ebfef97fe: function() { return handleError(function (arg0, arg1, arg2) {
4280
+ __wbg_alpha2ResizeCanvas_008eb9209f555b98: function() { return handleError(function (arg0, arg1, arg2) {
4184
4281
  alpha2ResizeCanvas(arg0, arg1 >>> 0, arg2 >>> 0);
4185
4282
  }, arguments); },
4186
4283
  __wbg_attachShader_74ecf95efc73ee58: function(arg0, arg1, arg2) {
@@ -6369,47 +6466,47 @@ function __wbg_get_imports() {
6369
6466
  arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
6370
6467
  }, arguments); },
6371
6468
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
6372
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3604, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6469
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3859, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6373
6470
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_);
6374
6471
  return ret;
6375
6472
  },
6376
6473
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
6377
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 457, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6474
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 477, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6378
6475
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_);
6379
6476
  return ret;
6380
6477
  },
6381
6478
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
6382
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx: 1382, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6479
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx: 1637, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6383
6480
  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_);
6384
6481
  return ret;
6385
6482
  },
6386
6483
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
6387
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1382, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6388
- 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__220);
6484
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1637, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6485
+ 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__225);
6389
6486
  return ret;
6390
6487
  },
6391
6488
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
6392
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 1385, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6489
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 1640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6393
6490
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
6394
6491
  return ret;
6395
6492
  },
6396
6493
  __wbindgen_generic_0000000000000006: function(arg0, arg1) {
6397
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1385, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6398
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__222);
6494
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1640, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6495
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__227);
6399
6496
  return ret;
6400
6497
  },
6401
6498
  __wbindgen_generic_0000000000000007: function(arg0, arg1) {
6402
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1382, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6403
- 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__223);
6499
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1637, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6500
+ 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__228);
6404
6501
  return ret;
6405
6502
  },
6406
6503
  __wbindgen_generic_0000000000000008: function(arg0, arg1) {
6407
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1382, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6408
- 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__224);
6504
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1637, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
6505
+ 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__229);
6409
6506
  return ret;
6410
6507
  },
6411
6508
  __wbindgen_generic_0000000000000009: function(arg0, arg1) {
6412
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 459, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6509
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 479, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
6413
6510
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_);
6414
6511
  return ret;
6415
6512
  },
@@ -6476,8 +6573,8 @@ function __wbg_get_imports() {
6476
6573
  return {
6477
6574
  __proto__: null,
6478
6575
  "./alpha2_wasm_bg.js": import0,
6479
- "./snippets/alpha2-wasm-a3e88ca7a20123fc/inline1.js": import1,
6480
- "./snippets/alpha2-wasm-a3e88ca7a20123fc/inline1.js": import2,
6576
+ "./snippets/alpha2-wasm-c62e60c964e88a52/inline1.js": import1,
6577
+ "./snippets/alpha2-wasm-c62e60c964e88a52/inline1.js": import2,
6481
6578
  };
6482
6579
  }
6483
6580
 
@@ -6493,8 +6590,8 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46
6493
6590
  wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
6494
6591
  }
6495
6592
 
6496
- function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__222(arg0, arg1, arg2) {
6497
- wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__222(arg0, arg1, arg2);
6593
+ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__227(arg0, arg1, arg2) {
6594
+ wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__227(arg0, arg1, arg2);
6498
6595
  }
6499
6596
 
6500
6597
  function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_(arg0, arg1, arg2) {
@@ -6511,22 +6608,22 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bin
6511
6608
  }
6512
6609
  }
6513
6610
 
6514
- 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__220(arg0, arg1, arg2) {
6515
- 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__220(arg0, arg1, arg2);
6611
+ 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__225(arg0, arg1, arg2) {
6612
+ 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__225(arg0, arg1, arg2);
6516
6613
  if (ret[1]) {
6517
6614
  throw takeFromExternrefTable0(ret[0]);
6518
6615
  }
6519
6616
  }
6520
6617
 
6521
- 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__223(arg0, arg1, arg2) {
6522
- 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__223(arg0, arg1, arg2);
6618
+ 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__228(arg0, arg1, arg2) {
6619
+ 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__228(arg0, arg1, arg2);
6523
6620
  if (ret[1]) {
6524
6621
  throw takeFromExternrefTable0(ret[0]);
6525
6622
  }
6526
6623
  }
6527
6624
 
6528
- 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__224(arg0, arg1, arg2) {
6529
- 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__224(arg0, arg1, arg2);
6625
+ 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__229(arg0, arg1, arg2) {
6626
+ 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__229(arg0, arg1, arg2);
6530
6627
  if (ret[1]) {
6531
6628
  throw takeFromExternrefTable0(ret[0]);
6532
6629
  }
Binary file
@@ -27,6 +27,7 @@ export const colorPipelineFingerprint: (a: number, b: number) => [number, number
27
27
  export const compareFingerprints: (a: number, b: number, c: number, d: number) => [number, number, number, number];
28
28
  export const compiledeffect_id: (a: number) => [number, number];
29
29
  export const conformProject: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number, number];
30
+ export const fontFaceCount: (a: number, b: number) => number;
30
31
  export const fontFamily: (a: number, b: number, c: number) => [number, number];
31
32
  export const geometryParityAnswers: () => [number, number];
32
33
  export const hitTest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
@@ -58,11 +59,13 @@ export const toPath: (a: number, b: number, c: number, d: number, e: number) =>
58
59
  export const trimPath: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number, number];
59
60
  export const vectorParityHashes: () => [number, number];
60
61
  export const wasmtextmeasurer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
62
+ export const wasmtextmeasurer_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
61
63
  export const wasmtextmeasurer_clearFonts: (a: number) => void;
62
64
  export const wasmtextmeasurer_measure: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
63
65
  export const wasmtextmeasurer_measureLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
64
66
  export const wasmtextmeasurer_new: () => number;
65
67
  export const wasmtextrasterizer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
68
+ export const wasmtextrasterizer_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
66
69
  export const wasmtextrasterizer_cacheSize: (a: number) => number;
67
70
  export const wasmtextrasterizer_clear: (a: number) => void;
68
71
  export const wasmtextrasterizer_invalidate: (a: number, b: bigint) => void;
@@ -76,6 +79,7 @@ export const waveformresult_buckets: (a: number, b: number, c: number) => [numbe
76
79
  export const waveformresult_frames: (a: number) => number;
77
80
  export const waveformresult_levelCount: (a: number) => number;
78
81
  export const webcpurenderer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
82
+ export const webcpurenderer_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
79
83
  export const webcpurenderer_aliasVideoFrame: (a: number, b: number, c: number, d: bigint, e: bigint) => [number, number, number];
80
84
  export const webcpurenderer_audioChannels: (a: number) => number;
81
85
  export const webcpurenderer_audioMaxBlock: (a: number) => number;
@@ -150,6 +154,7 @@ export const webcpurenderer_uploadedFrameBytes: (a: number) => bigint;
150
154
  export const webcpurenderer_uploadedFrameCount: (a: number) => number;
151
155
  export const webcpurenderer_videoFrameCopy: (a: number) => [number, number];
152
156
  export const webeffectregistry_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
157
+ export const webeffectregistry_addFontFile: (a: number, b: number, c: number, d: number, e: number) => [number, number];
153
158
  export const webeffectregistry_aliasVideoFrame: (a: number, b: number, c: number, d: bigint, e: bigint) => [number, number, number];
154
159
  export const webeffectregistry_audioChannels: (a: number) => number;
155
160
  export const webeffectregistry_audioMaxBlock: (a: number) => number;
@@ -232,12 +237,12 @@ export const webeffectregistry_videoFrameCopy: (a: number) => [number, number];
232
237
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___js_sys_dcf218532b47778c___Function_fn_wasm_bindgen_d171202afaeab6f2___JsValue_____wasm_bindgen_d171202afaeab6f2___sys__Undefined___js_sys_dcf218532b47778c___Function_fn_wasm_bindgen_d171202afaeab6f2___JsValue_____wasm_bindgen_d171202afaeab6f2___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
233
238
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_: (a: number, b: number, c: any) => [number, number];
234
239
  export const 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_: (a: number, b: number, c: any) => [number, number];
235
- export const 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__220: (a: number, b: number, c: any) => [number, number];
236
- export const 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__223: (a: number, b: number, c: any) => [number, number];
237
- export const 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__224: (a: number, b: number, c: any) => [number, number];
240
+ export const 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__225: (a: number, b: number, c: any) => [number, number];
241
+ export const 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__228: (a: number, b: number, c: any) => [number, number];
242
+ export const 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__229: (a: number, b: number, c: any) => [number, number];
238
243
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_: (a: number, b: number, c: any) => void;
239
244
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
240
- export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__222: (a: number, b: number, c: any) => void;
245
+ export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__227: (a: number, b: number, c: any) => void;
241
246
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
242
247
  export const __wbindgen_malloc: (a: number, b: number) => number;
243
248
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;