alpha2 0.3.0 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alpha2",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "license": "MIT",
5
5
  "description": "JavaScript bindings for the standalone alpha2 media engine.",
6
6
  "repository": {
@@ -77,6 +77,10 @@
77
77
  "types": "./dist/media.d.ts",
78
78
  "import": "./dist/media.js"
79
79
  },
80
+ "./layout": {
81
+ "types": "./dist/layout.d.ts",
82
+ "import": "./dist/layout.js"
83
+ },
80
84
  "./text": {
81
85
  "types": "./dist/text.d.ts",
82
86
  "import": "./dist/text.js"
Binary file
@@ -191,6 +191,25 @@ export class WasmTextMeasurer {
191
191
  * Drops every font.
192
192
  */
193
193
  clearFonts(): void;
194
+ /**
195
+ * Where each node of the layout generator `generator_json`
196
+ * (`{ "type": "layout", "root" }`, as a project holds it) lies on a
197
+ * `width` by `height` picture at picture time `time` (ticks), laid
198
+ * out with these fonts as a frame lays it out, as JSON `{ nodes }`:
199
+ * each node in preorder as `{ at, border, content, overflow,
200
+ * lineCount }`, its boxes `{ left, top, right, bottom }` in fractions
201
+ * of the picture, before its clip's transform and node visuals.
202
+ * `lineCount` is `null` for a node without text. Measure at the size
203
+ * the picture is drawn at. The layout's `"<n>px"` lengths are pixels
204
+ * of the project canvas, `canvasWidth` by `canvasHeight`: the
205
+ * picture's size when they are omitted.
206
+ *
207
+ * # Errors
208
+ * Rejects JSON that is no valid layout generator (on that canvas),
209
+ * an empty picture or canvas, a time that is not whole ticks, and a
210
+ * measurer without fonts for a layout with text.
211
+ */
212
+ measureLayout(generator_json: string, width: number, height: number, time: number, canvas_width?: number | null, canvas_height?: number | null): string;
194
213
  /**
195
214
  * Where the text generator `generator_json` (`{ "type": "text",
196
215
  * "text", "style" }`, as a project holds it) lies on a `width` by
@@ -321,9 +340,10 @@ export class WebEffectRegistry {
321
340
  free(): void;
322
341
  [Symbol.dispose](): void;
323
342
  /**
324
- * Appends an OpenType font to the fallback stack caption tracks and
325
- * text generators draw with. Give it the same font files as the export
326
- * host, and preview text matches exported text pixel for pixel.
343
+ * Appends an OpenType font to the fallback stack caption tracks, text
344
+ * generators and layouts draw and lay out with. Give it the same font
345
+ * files as the export host, and preview text matches exported text pixel
346
+ * for pixel.
327
347
  *
328
348
  * # Errors
329
349
  * Returns an error for malformed font bytes.
@@ -1251,6 +1271,7 @@ export interface InitOutput {
1251
1271
  readonly wasmtextmeasurer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1252
1272
  readonly wasmtextmeasurer_clearFonts: (a: number) => void;
1253
1273
  readonly wasmtextmeasurer_measure: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
1274
+ readonly wasmtextmeasurer_measureLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
1254
1275
  readonly wasmtextmeasurer_new: () => number;
1255
1276
  readonly wasmtextrasterizer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
1256
1277
  readonly wasmtextrasterizer_cacheSize: (a: number) => number;
@@ -1346,12 +1367,12 @@ export interface InitOutput {
1346
1367
  readonly 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;
1347
1368
  readonly 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];
1348
1369
  readonly 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];
1349
- readonly 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: (a: number, b: number, c: any) => [number, number];
1350
- readonly 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: (a: number, b: number, c: any) => [number, number];
1370
+ readonly 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__144: (a: number, b: number, c: any) => [number, number];
1351
1371
  readonly 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: (a: number, b: number, c: any) => [number, number];
1372
+ readonly 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__148: (a: number, b: number, c: any) => [number, number];
1352
1373
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_: (a: number, b: number, c: any) => void;
1353
1374
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_: (a: number, b: number, c: any) => void;
1354
- readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__145: (a: number, b: number, c: any) => void;
1375
+ readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__146: (a: number, b: number, c: any) => void;
1355
1376
  readonly wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
1356
1377
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1357
1378
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -1,8 +1,8 @@
1
1
  /* @ts-self-types="./alpha2_wasm.d.ts" */
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"
2
+ import { alpha2BitmapUploadsPremultiplied, alpha2FrameBitmap } from './snippets/alpha2-wasm-d60137a7bad549ac/inline1.js';
3
+ import { alpha2CopyExternalImage } from './snippets/alpha2-wasm-d60137a7bad549ac/inline2.js';
4
+ import * as import1 from "./snippets/alpha2-wasm-d60137a7bad549ac/inline0.js"
5
+ import * as import2 from "./snippets/alpha2-wasm-d60137a7bad549ac/inline0.js"
6
6
 
7
7
 
8
8
  /**
@@ -450,6 +450,51 @@ export class WasmTextMeasurer {
450
450
  clearFonts() {
451
451
  wasm.wasmtextmeasurer_clearFonts(this.__wbg_ptr);
452
452
  }
453
+ /**
454
+ * Where each node of the layout generator `generator_json`
455
+ * (`{ "type": "layout", "root" }`, as a project holds it) lies on a
456
+ * `width` by `height` picture at picture time `time` (ticks), laid
457
+ * out with these fonts as a frame lays it out, as JSON `{ nodes }`:
458
+ * each node in preorder as `{ at, border, content, overflow,
459
+ * lineCount }`, its boxes `{ left, top, right, bottom }` in fractions
460
+ * of the picture, before its clip's transform and node visuals.
461
+ * `lineCount` is `null` for a node without text. Measure at the size
462
+ * the picture is drawn at. The layout's `"<n>px"` lengths are pixels
463
+ * of the project canvas, `canvasWidth` by `canvasHeight`: the
464
+ * picture's size when they are omitted.
465
+ *
466
+ * # Errors
467
+ * Rejects JSON that is no valid layout generator (on that canvas),
468
+ * an empty picture or canvas, a time that is not whole ticks, and a
469
+ * measurer without fonts for a layout with text.
470
+ * @param {string} generator_json
471
+ * @param {number} width
472
+ * @param {number} height
473
+ * @param {number} time
474
+ * @param {number | null} [canvas_width]
475
+ * @param {number | null} [canvas_height]
476
+ * @returns {string}
477
+ */
478
+ measureLayout(generator_json, width, height, time, canvas_width, canvas_height) {
479
+ let deferred3_0;
480
+ let deferred3_1;
481
+ try {
482
+ const ptr0 = passStringToWasm0(generator_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
483
+ const len0 = WASM_VECTOR_LEN;
484
+ const ret = wasm.wasmtextmeasurer_measureLayout(this.__wbg_ptr, ptr0, len0, width, height, time, isLikeNone(canvas_width) ? Number.MAX_SAFE_INTEGER : (canvas_width) >>> 0, isLikeNone(canvas_height) ? Number.MAX_SAFE_INTEGER : (canvas_height) >>> 0);
485
+ var ptr2 = ret[0];
486
+ var len2 = ret[1];
487
+ if (ret[3]) {
488
+ ptr2 = 0; len2 = 0;
489
+ throw takeFromExternrefTable0(ret[2]);
490
+ }
491
+ deferred3_0 = ptr2;
492
+ deferred3_1 = len2;
493
+ return getStringFromWasm0(ptr2, len2);
494
+ } finally {
495
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
496
+ }
497
+ }
453
498
  /**
454
499
  * Where the text generator `generator_json` (`{ "type": "text",
455
500
  * "text", "style" }`, as a project holds it) lies on a `width` by
@@ -738,9 +783,10 @@ export class WebEffectRegistry {
738
783
  wasm.__wbg_webeffectregistry_free(ptr, 0);
739
784
  }
740
785
  /**
741
- * Appends an OpenType font to the fallback stack caption tracks and
742
- * text generators draw with. Give it the same font files as the export
743
- * host, and preview text matches exported text pixel for pixel.
786
+ * Appends an OpenType font to the fallback stack caption tracks, text
787
+ * generators and layouts draw and lay out with. Give it the same font
788
+ * files as the export host, and preview text matches exported text pixel
789
+ * for pixel.
744
790
  *
745
791
  * # Errors
746
792
  * Returns an error for malformed font bytes.
@@ -2876,14 +2922,14 @@ function __wbg_get_imports() {
2876
2922
  __wbg_addEventListener_9534e2dc12044ee4: function() { return handleError(function (arg0, arg1, arg2, arg3) {
2877
2923
  arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
2878
2924
  }, arguments); },
2879
- __wbg_alpha2BitmapUploadsPremultiplied_9fa4ca6ba736479b: function() { return handleError(function () {
2925
+ __wbg_alpha2BitmapUploadsPremultiplied_43dcb695436167da: function() { return handleError(function () {
2880
2926
  const ret = alpha2BitmapUploadsPremultiplied();
2881
2927
  return ret;
2882
2928
  }, arguments); },
2883
- __wbg_alpha2CopyExternalImage_0e2fd677c6fb8e50: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2929
+ __wbg_alpha2CopyExternalImage_7e637d8245acdea5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2884
2930
  alpha2CopyExternalImage(arg0, arg1, arg2, arg3 >>> 0, arg4 >>> 0);
2885
2931
  }, arguments); },
2886
- __wbg_alpha2FrameBitmap_cdcdf23620ddcfd1: function() { return handleError(function (arg0, arg1, arg2) {
2932
+ __wbg_alpha2FrameBitmap_08f0a8a53ce59643: function() { return handleError(function (arg0, arg1, arg2) {
2887
2933
  const ret = alpha2FrameBitmap(arg0, arg1 >>> 0, arg2 >>> 0);
2888
2934
  return ret;
2889
2935
  }, arguments); },
@@ -5073,47 +5119,47 @@ function __wbg_get_imports() {
5073
5119
  arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
5074
5120
  }, arguments); },
5075
5121
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
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`.
5122
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3524, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5077
5123
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_);
5078
5124
  return ret;
5079
5125
  },
5080
5126
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
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`.
5127
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5082
5128
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_);
5083
5129
  return ret;
5084
5130
  },
5085
5131
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
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`.
5132
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUCompilationInfo")], shim_idx: 1302, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5087
5133
  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_);
5088
5134
  return ret;
5089
5135
  },
5090
5136
  __wbindgen_generic_0000000000000004: function(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);
5137
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 1302, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5138
+ 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__144);
5093
5139
  return ret;
5094
5140
  },
5095
5141
  __wbindgen_generic_0000000000000005: function(arg0, arg1) {
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`.
5142
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 1305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5097
5143
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_);
5098
5144
  return ret;
5099
5145
  },
5100
5146
  __wbindgen_generic_0000000000000006: function(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);
5147
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1305, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5148
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__146);
5103
5149
  return ret;
5104
5150
  },
5105
5151
  __wbindgen_generic_0000000000000007: function(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);
5152
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 1302, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5153
+ 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);
5108
5154
  return ret;
5109
5155
  },
5110
5156
  __wbindgen_generic_0000000000000008: function(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);
5157
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 1302, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5158
+ 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__148);
5113
5159
  return ret;
5114
5160
  },
5115
5161
  __wbindgen_generic_0000000000000009: function(arg0, arg1) {
5116
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5162
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 245, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5117
5163
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_);
5118
5164
  return ret;
5119
5165
  },
@@ -5180,8 +5226,8 @@ function __wbg_get_imports() {
5180
5226
  return {
5181
5227
  __proto__: null,
5182
5228
  "./alpha2_wasm_bg.js": import0,
5183
- "./snippets/alpha2-wasm-7f557ec9a60cc69b/inline0.js": import1,
5184
- "./snippets/alpha2-wasm-7f557ec9a60cc69b/inline0.js": import2,
5229
+ "./snippets/alpha2-wasm-d60137a7bad549ac/inline0.js": import1,
5230
+ "./snippets/alpha2-wasm-d60137a7bad549ac/inline0.js": import2,
5185
5231
  };
5186
5232
  }
5187
5233
 
@@ -5197,8 +5243,8 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46
5197
5243
  wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true_(arg0, arg1, arg2);
5198
5244
  }
5199
5245
 
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);
5246
+ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__146(arg0, arg1, arg2) {
5247
+ wasm.wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__146(arg0, arg1, arg2);
5202
5248
  }
5203
5249
 
5204
5250
  function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bindgen_d171202afaeab6f2___JsValue__core_608f92abc48d28da___result__Result_____wasm_bindgen_d171202afaeab6f2___JsError___true_(arg0, arg1, arg2) {
@@ -5215,22 +5261,22 @@ function wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wasm_bin
5215
5261
  }
5216
5262
  }
5217
5263
 
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);
5264
+ 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__144(arg0, arg1, arg2) {
5265
+ 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__144(arg0, arg1, arg2);
5220
5266
  if (ret[1]) {
5221
5267
  throw takeFromExternrefTable0(ret[0]);
5222
5268
  }
5223
5269
  }
5224
5270
 
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);
5271
+ 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) {
5272
+ 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);
5227
5273
  if (ret[1]) {
5228
5274
  throw takeFromExternrefTable0(ret[0]);
5229
5275
  }
5230
5276
  }
5231
5277
 
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);
5278
+ 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__148(arg0, arg1, arg2) {
5279
+ 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__148(arg0, arg1, arg2);
5234
5280
  if (ret[1]) {
5235
5281
  throw takeFromExternrefTable0(ret[0]);
5236
5282
  }
Binary file
@@ -59,6 +59,7 @@ export const vectorParityHashes: () => [number, number];
59
59
  export const wasmtextmeasurer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
60
60
  export const wasmtextmeasurer_clearFonts: (a: number) => void;
61
61
  export const wasmtextmeasurer_measure: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
62
+ export const wasmtextmeasurer_measureLayout: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number, number, number];
62
63
  export const wasmtextmeasurer_new: () => number;
63
64
  export const wasmtextrasterizer_addFont: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
64
65
  export const wasmtextrasterizer_cacheSize: (a: number) => number;
@@ -154,12 +155,12 @@ export const webeffectregistry_videoFrameCopy: (a: number) => [number, number];
154
155
  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;
155
156
  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];
156
157
  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];
157
- 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__143: (a: number, b: number, c: any) => [number, number];
158
- 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__146: (a: number, b: number, c: any) => [number, number];
158
+ 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__144: (a: number, b: number, c: any) => [number, number];
159
159
  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__147: (a: number, b: number, c: any) => [number, number];
160
+ 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__148: (a: number, b: number, c: any) => [number, number];
160
161
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___web_sys_9e2ae0ace5131457___features__gen_Event__Event______true_: (a: number, b: number, c: any) => void;
161
162
  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;
162
- export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__145: (a: number, b: number, c: any) => void;
163
+ export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke___wgpu_f46556a90412e4d9___backend__webgpu__webgpu_sys__gen_GpuDeviceLostInfo__GpuDeviceLostInfo______true__146: (a: number, b: number, c: any) => void;
163
164
  export const wasm_bindgen_d171202afaeab6f2___convert__closures_____invoke_______true_: (a: number, b: number) => void;
164
165
  export const __wbindgen_malloc: (a: number, b: number) => number;
165
166
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -3405,7 +3405,7 @@ SOFTWARE.
3405
3405
 
3406
3406
  ## MIT License (MIT)
3407
3407
 
3408
- Used by `libm 0.2.16`, `pulp-wasm-simd-flag 0.1.1`.
3408
+ Used by `libm 0.2.16`, `pulp-wasm-simd-flag 0.1.1`, `taffy 0.15.0`.
3409
3409
 
3410
3410
  ```
3411
3411
  MIT License