@rive-app/webgl 2.35.2 → 2.35.4

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",
3
- "version": "2.35.2",
3
+ "version": "2.35.4",
4
4
  "description": "Rive's webgl based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.d.ts CHANGED
@@ -792,6 +792,21 @@ export declare class Rive {
792
792
  getBindableArtboard(name: string): BindableArtboard | null;
793
793
  getDefaultBindableArtboard(): BindableArtboard | null;
794
794
  }
795
+ export declare enum DataType {
796
+ none = "none",
797
+ string = "string",
798
+ number = "number",
799
+ boolean = "boolean",
800
+ color = "color",
801
+ list = "list",
802
+ enumType = "enumType",
803
+ trigger = "trigger",
804
+ viewModel = "viewModel",
805
+ integer = "integer",
806
+ listIndex = "listIndex",
807
+ image = "image",
808
+ artboard = "artboard"
809
+ }
795
810
  export declare class ViewModel {
796
811
  private _viewModel;
797
812
  constructor(viewModel: rc.ViewModel);
@@ -800,7 +815,7 @@ export declare class ViewModel {
800
815
  instanceByIndex(index: number): ViewModelInstance | null;
801
816
  instanceByName(name: string): ViewModelInstance | null;
802
817
  defaultInstance(): ViewModelInstance | null;
803
- instance(): ViewModelInstance | null;
818
+ instance(): ViewModelInstance;
804
819
  get properties(): rc.ViewModelProperty[];
805
820
  get instanceNames(): string[];
806
821
  }
package/rive.js CHANGED
@@ -393,7 +393,7 @@ function Ra(a, b) {
393
393
  return Qa(c, a, b);
394
394
  }));
395
395
  }
396
- var Sa, Ta, Xa = {740866:(a, b, c, d, e) => {
396
+ var Sa, Ta, Xa = {728114:(a, b, c, d, e) => {
397
397
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
398
398
  return 0;
399
399
  }
@@ -456,11 +456,11 @@ var Sa, Ta, Xa = {740866:(a, b, c, d, e) => {
456
456
  }
457
457
  window.h.Ca += 1;
458
458
  return 1;
459
- }, 743044:() => {
459
+ }, 730292:() => {
460
460
  "undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
461
461
  document.removeEventListener(a, window.h.unlock, !0);
462
462
  }), --window.h.Ca, 0 === window.h.Ca && delete window.h);
463
- }, 743348:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 743452:() => {
463
+ }, 730596:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 730700:() => {
464
464
  try {
465
465
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
466
466
  a.close();
@@ -468,7 +468,7 @@ var Sa, Ta, Xa = {740866:(a, b, c, d, e) => {
468
468
  } catch (c) {
469
469
  return 0;
470
470
  }
471
- }, 743623:(a, b, c, d, e, f) => {
471
+ }, 730871:(a, b, c, d, e, f) => {
472
472
  if ("undefined" === typeof window.h) {
473
473
  return -1;
474
474
  }
@@ -514,7 +514,7 @@ var Sa, Ta, Xa = {740866:(a, b, c, d, e) => {
514
514
  a == window.h.H.Aa && g.W.connect(g.J.destination);
515
515
  g.kb = f;
516
516
  return window.h.fc(g);
517
- }, 746500:a => window.h.ra(a).J.sampleRate, 746573:a => {
517
+ }, 733748:a => window.h.ra(a).J.sampleRate, 733821:a => {
518
518
  a = window.h.ra(a);
519
519
  void 0 !== a.W && (a.W.onaudioprocess = function() {
520
520
  }, a.W.disconnect(), a.W = void 0);
@@ -522,13 +522,13 @@ var Sa, Ta, Xa = {740866:(a, b, c, d, e) => {
522
522
  a.J.close();
523
523
  a.J = void 0;
524
524
  a.kb = void 0;
525
- }, 746973:a => {
525
+ }, 734221:a => {
526
526
  window.h.ub(a);
527
- }, 747023:a => {
527
+ }, 734271:a => {
528
528
  a = window.h.ra(a);
529
529
  a.J.resume();
530
530
  a.state = window.h.ga.qb;
531
- }, 747162:a => {
531
+ }, 734410:a => {
532
532
  a = window.h.ra(a);
533
533
  a.J.suspend();
534
534
  a.state = window.h.ga.stopped;
@@ -3935,7 +3935,7 @@ moduleRtn = ca;
3935
3935
  /* 2 */
3936
3936
  /***/ ((module) => {
3937
3937
 
3938
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.35.2","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3938
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl","version":"2.35.4","description":"Rive\'s webgl based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.wasm","rive_fallback.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3939
3939
 
3940
3940
  /***/ }),
3941
3941
  /* 3 */
@@ -4750,6 +4750,7 @@ __webpack_require__.r(__webpack_exports__);
4750
4750
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4751
4751
  /* harmony export */ Alignment: () => (/* binding */ Alignment),
4752
4752
  /* harmony export */ DataEnum: () => (/* binding */ DataEnum),
4753
+ /* harmony export */ DataType: () => (/* binding */ DataType),
4753
4754
  /* harmony export */ DrawOptimizationOptions: () => (/* binding */ DrawOptimizationOptions),
4754
4755
  /* harmony export */ EventType: () => (/* binding */ EventType),
4755
4756
  /* harmony export */ Fit: () => (/* binding */ Fit),
@@ -7745,6 +7746,22 @@ var Rive = /** @class */ (function () {
7745
7746
  return Rive;
7746
7747
  }());
7747
7748
 
7749
+ var DataType;
7750
+ (function (DataType) {
7751
+ DataType["none"] = "none";
7752
+ DataType["string"] = "string";
7753
+ DataType["number"] = "number";
7754
+ DataType["boolean"] = "boolean";
7755
+ DataType["color"] = "color";
7756
+ DataType["list"] = "list";
7757
+ DataType["enumType"] = "enumType";
7758
+ DataType["trigger"] = "trigger";
7759
+ DataType["viewModel"] = "viewModel";
7760
+ DataType["integer"] = "integer";
7761
+ DataType["listIndex"] = "listIndex";
7762
+ DataType["image"] = "image";
7763
+ DataType["artboard"] = "artboard";
7764
+ })(DataType || (DataType = {}));
7748
7765
  var ViewModel = /** @class */ (function () {
7749
7766
  function ViewModel(viewModel) {
7750
7767
  this._viewModel = viewModel;