@rive-app/webgl2-advanced 2.23.0 → 2.23.2

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.23.0",
3
+ "version": "2.23.2",
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
@@ -366,6 +366,29 @@ export declare class Artboard {
366
366
  */
367
367
  get volume(): number;
368
368
  set volume(val: number);
369
+
370
+ /**
371
+ * Getter and setter for the artboard width
372
+ */
373
+ get artboardWidth(): number | undefined;
374
+ set artboardWidth(val: number);
375
+
376
+ /**
377
+ * Getter and setter for the artboard height
378
+ */
379
+ get artboardHeight(): number | undefined;
380
+ set artboardHeight(val: number);
381
+
382
+ /**
383
+ * Getter and setter used in rendering and canvas/artboard resizing
384
+ */
385
+ get devicePixelRatioUsed(): number;
386
+ set devicePixelRatioUsed(val: number);
387
+
388
+ /**
389
+ * Reset the artboard size to its original values
390
+ */
391
+ resetArtboardSize(): void;
369
392
  /**
370
393
  * Deletes the underlying instance created via the WASM. It's important to clean up this
371
394
  * instance when no longer in use
@@ -402,7 +402,7 @@ function Oa(a, b) {
402
402
  return Na(c, a, b);
403
403
  }));
404
404
  }
405
- var Pa, Qa, Ua = {485221:(a, b, c, d, e) => {
405
+ var Pa, Qa, Ua = {488133:(a, b, c, d, e) => {
406
406
  if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
407
407
  return 0;
408
408
  }
@@ -465,9 +465,9 @@ var Pa, Qa, Ua = {485221:(a, b, c, d, e) => {
465
465
  }
466
466
  window.h.Da += 1;
467
467
  return 1;
468
- }, 487399:() => {
468
+ }, 490311:() => {
469
469
  "undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
470
- }, 487563:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 487667:() => {
470
+ }, 490475:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 490579:() => {
471
471
  try {
472
472
  var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
473
473
  a.close();
@@ -475,7 +475,7 @@ var Pa, Qa, Ua = {485221:(a, b, c, d, e) => {
475
475
  } catch (c) {
476
476
  return 0;
477
477
  }
478
- }, 487838:(a, b, c, d, e, f) => {
478
+ }, 490750:(a, b, c, d, e, f) => {
479
479
  if ("undefined" === typeof window.h) {
480
480
  return -1;
481
481
  }
@@ -521,7 +521,7 @@ var Pa, Qa, Ua = {485221:(a, b, c, d, e) => {
521
521
  a == window.h.I.Ba && g.Y.connect(g.J.destination);
522
522
  g.jb = f;
523
523
  return window.h.lc(g);
524
- }, 490715:a => window.h.va(a).J.sampleRate, 490788:a => {
524
+ }, 493627:a => window.h.va(a).J.sampleRate, 493700:a => {
525
525
  a = window.h.va(a);
526
526
  void 0 !== a.Y && (a.Y.onaudioprocess = function() {
527
527
  }, a.Y.disconnect(), a.Y = void 0);
@@ -529,13 +529,13 @@ var Pa, Qa, Ua = {485221:(a, b, c, d, e) => {
529
529
  a.J.close();
530
530
  a.J = void 0;
531
531
  a.jb = void 0;
532
- }, 491188:a => {
532
+ }, 494100:a => {
533
533
  window.h.wb(a);
534
- }, 491238:a => {
534
+ }, 494150:a => {
535
535
  a = window.h.va(a);
536
536
  a.J.resume();
537
537
  a.state = window.h.ha.rb;
538
- }, 491377:a => {
538
+ }, 494289:a => {
539
539
  a = window.h.va(a);
540
540
  a.J.suspend();
541
541
  a.state = window.h.ha.stopped;
@@ -3446,8 +3446,8 @@ n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = z.dynCall_viijii
3446
3446
  n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = z.dynCall_iiiiij)(a, b, c, d, e, f, g);
3447
3447
  n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = z.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
3448
3448
  n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = z.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
3449
- n.___start_em_js = 482596;
3450
- n.___stop_em_js = 485221;
3449
+ n.___start_em_js = 485508;
3450
+ n.___stop_em_js = 488133;
3451
3451
  var Xd;
3452
3452
  Ha = function Yd() {
3453
3453
  Xd || Zd();