@rive-app/webgl2 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/webgl2",
3
- "version": "2.35.2",
3
+ "version": "2.35.4",
4
4
  "description": "Rive's webgl2 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
@@ -427,7 +427,7 @@ function Na(a, b) {
427
427
  return Ma(c, a, b);
428
428
  }));
429
429
  }
430
- var Oa, Pa, Ta = {574209:(a, b, c, d, e) => {
430
+ var Oa, Pa, Ta = {562865:(a, b, c, d, e) => {
431
431
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
432
432
  return 0;
433
433
  }
@@ -490,11 +490,11 @@ var Oa, Pa, Ta = {574209:(a, b, c, d, e) => {
490
490
  }
491
491
  window.h.Ea += 1;
492
492
  return 1;
493
- }, 576387:() => {
493
+ }, 565043:() => {
494
494
  "undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
495
495
  document.removeEventListener(a, window.h.unlock, !0);
496
496
  }), --window.h.Ea, 0 === window.h.Ea && delete window.h);
497
- }, 576691:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 576795:() => {
497
+ }, 565347:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 565451:() => {
498
498
  try {
499
499
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
500
500
  a.close();
@@ -502,7 +502,7 @@ var Oa, Pa, Ta = {574209:(a, b, c, d, e) => {
502
502
  } catch (c) {
503
503
  return 0;
504
504
  }
505
- }, 576966:(a, b, c, d, e, f) => {
505
+ }, 565622:(a, b, c, d, e, f) => {
506
506
  if ("undefined" === typeof window.h) {
507
507
  return -1;
508
508
  }
@@ -548,7 +548,7 @@ var Oa, Pa, Ta = {574209:(a, b, c, d, e) => {
548
548
  a == window.h.I.Ca && g.Y.connect(g.K.destination);
549
549
  g.nb = f;
550
550
  return window.h.lc(g);
551
- }, 579843:a => window.h.ta(a).K.sampleRate, 579916:a => {
551
+ }, 568499:a => window.h.ta(a).K.sampleRate, 568572:a => {
552
552
  a = window.h.ta(a);
553
553
  void 0 !== a.Y && (a.Y.onaudioprocess = function() {
554
554
  }, a.Y.disconnect(), a.Y = void 0);
@@ -556,13 +556,13 @@ var Oa, Pa, Ta = {574209:(a, b, c, d, e) => {
556
556
  a.K.close();
557
557
  a.K = void 0;
558
558
  a.nb = void 0;
559
- }, 580316:a => {
559
+ }, 568972:a => {
560
560
  window.h.yb(a);
561
- }, 580366:a => {
561
+ }, 569022:a => {
562
562
  a = window.h.ta(a);
563
563
  a.K.resume();
564
564
  a.state = window.h.ia.ub;
565
- }, 580505:a => {
565
+ }, 569161:a => {
566
566
  a = window.h.ta(a);
567
567
  a.K.suspend();
568
568
  a.state = window.h.ia.stopped;
@@ -3546,7 +3546,7 @@ moduleRtn = ca;
3546
3546
  /* 2 */
3547
3547
  /***/ ((module) => {
3548
3548
 
3549
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.35.2","description":"Rive\'s webgl2 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)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3549
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@rive-app/webgl2","version":"2.35.4","description":"Rive\'s webgl2 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)","Chris Dalton <chris@rive.app> (https://rive.app)"],"license":"MIT","files":["rive.js","rive.wasm","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
3550
3550
 
3551
3551
  /***/ }),
3552
3552
  /* 3 */
@@ -4361,6 +4361,7 @@ __webpack_require__.r(__webpack_exports__);
4361
4361
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4362
4362
  /* harmony export */ Alignment: () => (/* binding */ Alignment),
4363
4363
  /* harmony export */ DataEnum: () => (/* binding */ DataEnum),
4364
+ /* harmony export */ DataType: () => (/* binding */ DataType),
4364
4365
  /* harmony export */ DrawOptimizationOptions: () => (/* binding */ DrawOptimizationOptions),
4365
4366
  /* harmony export */ EventType: () => (/* binding */ EventType),
4366
4367
  /* harmony export */ Fit: () => (/* binding */ Fit),
@@ -7356,6 +7357,22 @@ var Rive = /** @class */ (function () {
7356
7357
  return Rive;
7357
7358
  }());
7358
7359
 
7360
+ var DataType;
7361
+ (function (DataType) {
7362
+ DataType["none"] = "none";
7363
+ DataType["string"] = "string";
7364
+ DataType["number"] = "number";
7365
+ DataType["boolean"] = "boolean";
7366
+ DataType["color"] = "color";
7367
+ DataType["list"] = "list";
7368
+ DataType["enumType"] = "enumType";
7369
+ DataType["trigger"] = "trigger";
7370
+ DataType["viewModel"] = "viewModel";
7371
+ DataType["integer"] = "integer";
7372
+ DataType["listIndex"] = "listIndex";
7373
+ DataType["image"] = "image";
7374
+ DataType["artboard"] = "artboard";
7375
+ })(DataType || (DataType = {}));
7359
7376
  var ViewModel = /** @class */ (function () {
7360
7377
  function ViewModel(viewModel) {
7361
7378
  this._viewModel = viewModel;