@splinetool/viewer 2.0.3 → 2.0.5

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/build/hana-ui.js CHANGED
@@ -523,6 +523,21 @@ export class SceneController {
523
523
  const ret = wasm.scenecontroller_isObjectInViewport(this.__wbg_ptr, addHeapObject(id));
524
524
  return ret !== 0;
525
525
  }
526
+ /**
527
+ * Whether the built-in editor/UI font (the single font the immediate-mode
528
+ * `updateUiShapes` overlay renders text with) has been fetched and parsed.
529
+ * The load kicks off asynchronously at controller creation
530
+ * (`Assets::load_ui_font`), so overlay text pushed before it lands
531
+ * tessellates to nothing until the next frame after the load completes.
532
+ * Hosts that rasterize on demand (the spline editor / runtime UI-frame
533
+ * canvases) poll this to know when to re-render — without it a canvas
534
+ * rasterized once at boot shows every shape except its texts.
535
+ * @returns {boolean}
536
+ */
537
+ isUiFontLoaded() {
538
+ const ret = wasm.scenecontroller_isUiFontLoaded(this.__wbg_ptr);
539
+ return ret !== 0;
540
+ }
526
541
  /**
527
542
  * @returns {boolean}
528
543
  */
@@ -2391,7 +2406,7 @@ function __wbg_get_imports() {
2391
2406
  const a = state0.a;
2392
2407
  state0.a = 0;
2393
2408
  try {
2394
- return __wasm_bindgen_func_elem_12882(a, state0.b, arg0, arg1);
2409
+ return __wasm_bindgen_func_elem_12885(a, state0.b, arg0, arg1);
2395
2410
  } finally {
2396
2411
  state0.a = a;
2397
2412
  }
@@ -2437,7 +2452,7 @@ function __wbg_get_imports() {
2437
2452
  const a = state0.a;
2438
2453
  state0.a = 0;
2439
2454
  try {
2440
- return __wasm_bindgen_func_elem_12882(a, state0.b, arg0, arg1);
2455
+ return __wasm_bindgen_func_elem_12885(a, state0.b, arg0, arg1);
2441
2456
  } finally {
2442
2457
  state0.a = a;
2443
2458
  }
@@ -3538,47 +3553,47 @@ function __wbg_get_imports() {
3538
3553
  }, arguments); },
3539
3554
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
3540
3555
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 800, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3541
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12874);
3556
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_12877);
3542
3557
  return addHeapObject(ret);
3543
3558
  },
3544
3559
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
3545
3560
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 3, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3546
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2919);
3561
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_2921);
3547
3562
  return addHeapObject(ret);
3548
3563
  },
3549
3564
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
3550
3565
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUComputePipeline")], shim_idx: 679, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3551
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9850);
3566
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9853);
3552
3567
  return addHeapObject(ret);
3553
3568
  },
3554
3569
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
3555
3570
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDevice")], shim_idx: 679, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3556
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9850_3);
3571
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9853_3);
3557
3572
  return addHeapObject(ret);
3558
3573
  },
3559
3574
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
3560
3575
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUDeviceLostInfo")], shim_idx: 680, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3561
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9852);
3576
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9855);
3562
3577
  return addHeapObject(ret);
3563
3578
  },
3564
3579
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
3565
3580
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPURenderPipeline")], shim_idx: 679, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3566
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9850_5);
3581
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9853_5);
3567
3582
  return addHeapObject(ret);
3568
3583
  },
3569
3584
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
3570
3585
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("any")], shim_idx: 679, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3571
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9850_6);
3586
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9853_6);
3572
3587
  return addHeapObject(ret);
3573
3588
  },
3574
3589
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
3575
3590
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("undefined")], shim_idx: 679, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
3576
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9850_7);
3591
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_9853_7);
3577
3592
  return addHeapObject(ret);
3578
3593
  },
3579
3594
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
3580
3595
  // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 795, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3581
- const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11260);
3596
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_11263);
3582
3597
  return addHeapObject(ret);
3583
3598
  },
3584
3599
  __wbindgen_cast_000000000000000a: function(arg0) {
@@ -3652,22 +3667,22 @@ function __wbg_get_imports() {
3652
3667
  };
3653
3668
  }
3654
3669
 
3655
- function __wasm_bindgen_func_elem_11260(arg0, arg1) {
3656
- wasm.__wasm_bindgen_func_elem_11260(arg0, arg1);
3670
+ function __wasm_bindgen_func_elem_11263(arg0, arg1) {
3671
+ wasm.__wasm_bindgen_func_elem_11263(arg0, arg1);
3657
3672
  }
3658
3673
 
3659
- function __wasm_bindgen_func_elem_2919(arg0, arg1, arg2) {
3660
- wasm.__wasm_bindgen_func_elem_2919(arg0, arg1, addHeapObject(arg2));
3674
+ function __wasm_bindgen_func_elem_2921(arg0, arg1, arg2) {
3675
+ wasm.__wasm_bindgen_func_elem_2921(arg0, arg1, addHeapObject(arg2));
3661
3676
  }
3662
3677
 
3663
- function __wasm_bindgen_func_elem_9852(arg0, arg1, arg2) {
3664
- wasm.__wasm_bindgen_func_elem_9852(arg0, arg1, addHeapObject(arg2));
3678
+ function __wasm_bindgen_func_elem_9855(arg0, arg1, arg2) {
3679
+ wasm.__wasm_bindgen_func_elem_9855(arg0, arg1, addHeapObject(arg2));
3665
3680
  }
3666
3681
 
3667
- function __wasm_bindgen_func_elem_12874(arg0, arg1, arg2) {
3682
+ function __wasm_bindgen_func_elem_12877(arg0, arg1, arg2) {
3668
3683
  try {
3669
3684
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3670
- wasm.__wasm_bindgen_func_elem_12874(retptr, arg0, arg1, addHeapObject(arg2));
3685
+ wasm.__wasm_bindgen_func_elem_12877(retptr, arg0, arg1, addHeapObject(arg2));
3671
3686
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3672
3687
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3673
3688
  if (r1) {
@@ -3678,10 +3693,10 @@ function __wasm_bindgen_func_elem_12874(arg0, arg1, arg2) {
3678
3693
  }
3679
3694
  }
3680
3695
 
3681
- function __wasm_bindgen_func_elem_9850(arg0, arg1, arg2) {
3696
+ function __wasm_bindgen_func_elem_9853(arg0, arg1, arg2) {
3682
3697
  try {
3683
3698
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3684
- wasm.__wasm_bindgen_func_elem_9850(retptr, arg0, arg1, addHeapObject(arg2));
3699
+ wasm.__wasm_bindgen_func_elem_9853(retptr, arg0, arg1, addHeapObject(arg2));
3685
3700
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3686
3701
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3687
3702
  if (r1) {
@@ -3692,10 +3707,10 @@ function __wasm_bindgen_func_elem_9850(arg0, arg1, arg2) {
3692
3707
  }
3693
3708
  }
3694
3709
 
3695
- function __wasm_bindgen_func_elem_9850_3(arg0, arg1, arg2) {
3710
+ function __wasm_bindgen_func_elem_9853_3(arg0, arg1, arg2) {
3696
3711
  try {
3697
3712
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3698
- wasm.__wasm_bindgen_func_elem_9850_3(retptr, arg0, arg1, addHeapObject(arg2));
3713
+ wasm.__wasm_bindgen_func_elem_9853_3(retptr, arg0, arg1, addHeapObject(arg2));
3699
3714
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3700
3715
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3701
3716
  if (r1) {
@@ -3706,10 +3721,10 @@ function __wasm_bindgen_func_elem_9850_3(arg0, arg1, arg2) {
3706
3721
  }
3707
3722
  }
3708
3723
 
3709
- function __wasm_bindgen_func_elem_9850_5(arg0, arg1, arg2) {
3724
+ function __wasm_bindgen_func_elem_9853_5(arg0, arg1, arg2) {
3710
3725
  try {
3711
3726
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3712
- wasm.__wasm_bindgen_func_elem_9850_5(retptr, arg0, arg1, addHeapObject(arg2));
3727
+ wasm.__wasm_bindgen_func_elem_9853_5(retptr, arg0, arg1, addHeapObject(arg2));
3713
3728
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3714
3729
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3715
3730
  if (r1) {
@@ -3720,10 +3735,10 @@ function __wasm_bindgen_func_elem_9850_5(arg0, arg1, arg2) {
3720
3735
  }
3721
3736
  }
3722
3737
 
3723
- function __wasm_bindgen_func_elem_9850_6(arg0, arg1, arg2) {
3738
+ function __wasm_bindgen_func_elem_9853_6(arg0, arg1, arg2) {
3724
3739
  try {
3725
3740
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3726
- wasm.__wasm_bindgen_func_elem_9850_6(retptr, arg0, arg1, addHeapObject(arg2));
3741
+ wasm.__wasm_bindgen_func_elem_9853_6(retptr, arg0, arg1, addHeapObject(arg2));
3727
3742
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3728
3743
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3729
3744
  if (r1) {
@@ -3734,10 +3749,10 @@ function __wasm_bindgen_func_elem_9850_6(arg0, arg1, arg2) {
3734
3749
  }
3735
3750
  }
3736
3751
 
3737
- function __wasm_bindgen_func_elem_9850_7(arg0, arg1, arg2) {
3752
+ function __wasm_bindgen_func_elem_9853_7(arg0, arg1, arg2) {
3738
3753
  try {
3739
3754
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
3740
- wasm.__wasm_bindgen_func_elem_9850_7(retptr, arg0, arg1, addHeapObject(arg2));
3755
+ wasm.__wasm_bindgen_func_elem_9853_7(retptr, arg0, arg1, addHeapObject(arg2));
3741
3756
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
3742
3757
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
3743
3758
  if (r1) {
@@ -3748,8 +3763,8 @@ function __wasm_bindgen_func_elem_9850_7(arg0, arg1, arg2) {
3748
3763
  }
3749
3764
  }
3750
3765
 
3751
- function __wasm_bindgen_func_elem_12882(arg0, arg1, arg2, arg3) {
3752
- wasm.__wasm_bindgen_func_elem_12882(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
3766
+ function __wasm_bindgen_func_elem_12885(arg0, arg1, arg2, arg3) {
3767
+ wasm.__wasm_bindgen_func_elem_12885(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
3753
3768
  }
3754
3769
 
3755
3770
 
Binary file