@rive-app/webgl-advanced 2.35.3 → 2.36.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.35.3",
3
+ "version": "2.36.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
@@ -994,6 +994,7 @@ export declare class ViewModelInstance {
994
994
  delete(): void;
995
995
  unref(): void;
996
996
  getProperties(): ViewModelProperty[];
997
+ getViewModelName(): string;
997
998
  }
998
999
 
999
1000
  export declare class ViewModel {
@@ -1024,15 +1025,19 @@ export declare class SMITrigger {}
1024
1025
  ///////////
1025
1026
 
1026
1027
  export enum DataType {
1027
- none,
1028
- string,
1029
- number,
1030
- boolean,
1031
- color,
1032
- list,
1033
- enumType,
1034
- trigger,
1035
- viewModel,
1028
+ none = 'none',
1029
+ string = 'string',
1030
+ number = 'number',
1031
+ boolean = 'boolean',
1032
+ color = 'color',
1033
+ list = 'list',
1034
+ enumType = 'enumType',
1035
+ trigger = 'trigger',
1036
+ viewModel = 'viewModel',
1037
+ integer = 'integer',
1038
+ listIndex = 'listIndex',
1039
+ image = 'image',
1040
+ artboard = 'artboard',
1036
1041
  }
1037
1042
 
1038
1043
  export enum Fit {
Binary file
@@ -372,7 +372,7 @@ function Ra(a, b) {
372
372
  return Qa(c, a, b);
373
373
  }));
374
374
  }
375
- var Sa, Ta, Xa = {727842:(a, b, c, d, e) => {
375
+ var Sa, Ta, Xa = {728434:(a, b, c, d, e) => {
376
376
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
377
377
  return 0;
378
378
  }
@@ -435,11 +435,11 @@ var Sa, Ta, Xa = {727842:(a, b, c, d, e) => {
435
435
  }
436
436
  window.h.Ca += 1;
437
437
  return 1;
438
- }, 730020:() => {
438
+ }, 730612:() => {
439
439
  "undefined" !== typeof window.h && (window.h.Ra.map(function(a) {
440
440
  document.removeEventListener(a, window.h.unlock, !0);
441
441
  }), --window.h.Ca, 0 === window.h.Ca && delete window.h);
442
- }, 730324:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 730428:() => {
442
+ }, 730916:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 731020:() => {
443
443
  try {
444
444
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
445
445
  a.close();
@@ -447,7 +447,7 @@ var Sa, Ta, Xa = {727842:(a, b, c, d, e) => {
447
447
  } catch (c) {
448
448
  return 0;
449
449
  }
450
- }, 730599:(a, b, c, d, e, f) => {
450
+ }, 731191:(a, b, c, d, e, f) => {
451
451
  if ("undefined" === typeof window.h) {
452
452
  return -1;
453
453
  }
@@ -493,7 +493,7 @@ var Sa, Ta, Xa = {727842:(a, b, c, d, e) => {
493
493
  a == window.h.H.Aa && g.W.connect(g.J.destination);
494
494
  g.kb = f;
495
495
  return window.h.fc(g);
496
- }, 733476:a => window.h.ra(a).J.sampleRate, 733549:a => {
496
+ }, 734068:a => window.h.ra(a).J.sampleRate, 734141:a => {
497
497
  a = window.h.ra(a);
498
498
  void 0 !== a.W && (a.W.onaudioprocess = function() {
499
499
  }, a.W.disconnect(), a.W = void 0);
@@ -501,13 +501,13 @@ var Sa, Ta, Xa = {727842:(a, b, c, d, e) => {
501
501
  a.J.close();
502
502
  a.J = void 0;
503
503
  a.kb = void 0;
504
- }, 733949:a => {
504
+ }, 734541:a => {
505
505
  window.h.ub(a);
506
- }, 733999:a => {
506
+ }, 734591:a => {
507
507
  a = window.h.ra(a);
508
508
  a.J.resume();
509
509
  a.state = window.h.ga.qb;
510
- }, 734138:a => {
510
+ }, 734730:a => {
511
511
  a = window.h.ra(a);
512
512
  a.J.suspend();
513
513
  a.state = window.h.ga.stopped;