@rive-app/webgl2-advanced 2.32.1 → 2.33.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/webgl2-advanced",
3
- "version": "2.32.1",
3
+ "version": "2.33.0",
4
4
  "description": "Rive's webgl2 low-level canvas based web api.",
5
5
  "main": "webgl2_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -576,6 +576,8 @@ export declare class Artboard {
576
576
  * @param instance - Renderer context to draw with
577
577
  */
578
578
  bindViewModelInstance(instance: ViewModelInstance): void;
579
+
580
+ didChange(): boolean;
579
581
  }
580
582
 
581
583
  export declare class BindableArtboard {
@@ -406,7 +406,7 @@ function Na(a, b) {
406
406
  return Ma(c, a, b);
407
407
  }));
408
408
  }
409
- var Oa, Pa, Ta = {542927:(a, b, c, d, e) => {
409
+ var Oa, Pa, Ta = {547041:(a, b, c, d, e) => {
410
410
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
411
411
  return 0;
412
412
  }
@@ -469,11 +469,11 @@ var Oa, Pa, Ta = {542927:(a, b, c, d, e) => {
469
469
  }
470
470
  window.h.Ea += 1;
471
471
  return 1;
472
- }, 545105:() => {
472
+ }, 549219:() => {
473
473
  "undefined" !== typeof window.h && (window.h.Xa.map(function(a) {
474
474
  document.removeEventListener(a, window.h.unlock, !0);
475
475
  }), --window.h.Ea, 0 === window.h.Ea && delete window.h);
476
- }, 545409:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 545513:() => {
476
+ }, 549523:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 549627:() => {
477
477
  try {
478
478
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
479
479
  a.close();
@@ -481,7 +481,7 @@ var Oa, Pa, Ta = {542927:(a, b, c, d, e) => {
481
481
  } catch (c) {
482
482
  return 0;
483
483
  }
484
- }, 545684:(a, b, c, d, e, f) => {
484
+ }, 549798:(a, b, c, d, e, f) => {
485
485
  if ("undefined" === typeof window.h) {
486
486
  return -1;
487
487
  }
@@ -527,7 +527,7 @@ var Oa, Pa, Ta = {542927:(a, b, c, d, e) => {
527
527
  a == window.h.I.Ca && g.Y.connect(g.K.destination);
528
528
  g.nb = f;
529
529
  return window.h.lc(g);
530
- }, 548561:a => window.h.ta(a).K.sampleRate, 548634:a => {
530
+ }, 552675:a => window.h.ta(a).K.sampleRate, 552748:a => {
531
531
  a = window.h.ta(a);
532
532
  void 0 !== a.Y && (a.Y.onaudioprocess = function() {
533
533
  }, a.Y.disconnect(), a.Y = void 0);
@@ -535,13 +535,13 @@ var Oa, Pa, Ta = {542927:(a, b, c, d, e) => {
535
535
  a.K.close();
536
536
  a.K = void 0;
537
537
  a.nb = void 0;
538
- }, 549034:a => {
538
+ }, 553148:a => {
539
539
  window.h.yb(a);
540
- }, 549084:a => {
540
+ }, 553198:a => {
541
541
  a = window.h.ta(a);
542
542
  a.K.resume();
543
543
  a.state = window.h.ia.ub;
544
- }, 549223:a => {
544
+ }, 553337:a => {
545
545
  a = window.h.ta(a);
546
546
  a.K.suspend();
547
547
  a.state = window.h.ia.stopped;
@@ -3367,7 +3367,9 @@ f, g, k, m) => {
3367
3367
  W.vertexAttribIPointer(a, b, c, d, e);
3368
3368
  }, glVertexAttribPointer:(a, b, c, d, e, f) => {
3369
3369
  W.vertexAttribPointer(a, b, c, !!d, e, f);
3370
- }, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), provokingVertexWEBGL:function(a, b) {
3370
+ }, glViewport:(a, b, c, d) => W.viewport(a, b, c, d), isWindowsBrowser:function() {
3371
+ return -1 < navigator.platform.indexOf("Win");
3372
+ }, provokingVertexWEBGL:function(a, b) {
3371
3373
  (a = w[a].C.pb) && a.provokingVertexWEBGL(b);
3372
3374
  }, strftime_l:(a, b, c, d) => Yd(a, b, c, d), upload_image:function(a, b) {
3373
3375
  var c = l.images;