@rive-app/webgl-advanced 2.20.1 → 2.21.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": "@rive-app/webgl-advanced",
3
- "version": "2.20.1",
3
+ "version": "2.21.0",
4
4
  "description": "Rive's webgl low-level canvas based web api.",
5
5
  "main": "webgl_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -456,6 +456,12 @@ export declare class Artboard {
456
456
  * @param path - Path of where the input exists at an artboard level
457
457
  */
458
458
  inputByPath(name: string, path: string): SMIInput;
459
+ /**
460
+ * Returns a reference for a TextValueRun object to get/set a text value for
461
+ * @param name - Name of the Text Run to grab a reference to
462
+ * @param path - Path of where the text exists at an artboard level
463
+ */
464
+ textByPath(name: string, path: string): TextValueRun;
459
465
  }
460
466
 
461
467
  export declare class Bone extends TransformComponent {
Binary file
@@ -379,7 +379,7 @@ function Qa(a, b) {
379
379
  return Pa(c, a, b);
380
380
  }));
381
381
  }
382
- var Ra, Sa, Wa = {692140:(a, b, c, d, e) => {
382
+ var Ra, Sa, Wa = {692220:(a, b, c, d, e) => {
383
383
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
384
384
  return 0;
385
385
  }
@@ -442,9 +442,9 @@ var Ra, Sa, Wa = {692140:(a, b, c, d, e) => {
442
442
  }
443
443
  window.h.Ea += 1;
444
444
  return 1;
445
- }, 694318:() => {
445
+ }, 694398:() => {
446
446
  "undefined" !== typeof window.h && (--window.h.Ea, 0 === window.h.Ea && delete window.h);
447
- }, 694482:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 694586:() => {
447
+ }, 694562:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 694666:() => {
448
448
  try {
449
449
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
450
450
  a.close();
@@ -452,7 +452,7 @@ var Ra, Sa, Wa = {692140:(a, b, c, d, e) => {
452
452
  } catch (c) {
453
453
  return 0;
454
454
  }
455
- }, 694757:(a, b, c, d, e, f) => {
455
+ }, 694837:(a, b, c, d, e, f) => {
456
456
  if ("undefined" === typeof window.h) {
457
457
  return -1;
458
458
  }
@@ -498,7 +498,7 @@ var Ra, Sa, Wa = {692140:(a, b, c, d, e) => {
498
498
  a == window.h.H.Ca && g.X.connect(g.I.destination);
499
499
  g.lb = f;
500
500
  return window.h.nc(g);
501
- }, 697634:a => window.h.ta(a).I.sampleRate, 697707:a => {
501
+ }, 697714:a => window.h.ta(a).I.sampleRate, 697787:a => {
502
502
  a = window.h.ta(a);
503
503
  void 0 !== a.X && (a.X.onaudioprocess = function() {
504
504
  }, a.X.disconnect(), a.X = void 0);
@@ -506,13 +506,13 @@ var Ra, Sa, Wa = {692140:(a, b, c, d, e) => {
506
506
  a.I.close();
507
507
  a.I = void 0;
508
508
  a.lb = void 0;
509
- }, 698107:a => {
509
+ }, 698187:a => {
510
510
  window.h.xb(a);
511
- }, 698157:a => {
511
+ }, 698237:a => {
512
512
  a = window.h.ta(a);
513
513
  a.I.resume();
514
514
  a.state = window.h.ha.sb;
515
- }, 698296:a => {
515
+ }, 698376:a => {
516
516
  a = window.h.ta(a);
517
517
  a.I.suspend();
518
518
  a.state = window.h.ha.stopped;