@rive-app/webgl-single 1.0.27 → 1.0.28

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/rive.js +3 -3
  3. package/rive.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Rive's webgl based web api with bundled wasm.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -169,7 +169,7 @@ k.run=sd;if(k.preInit)for("function"==typeof k.preInit&&(k.preInit=[k.preInit]);
169
169
  /* 2 */
170
170
  /***/ ((module) => {
171
171
 
172
- module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.27","description":"Rive\'s webgl based web api with bundled wasm.","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.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
172
+ module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.28","description":"Rive\'s webgl based web api with bundled wasm.","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.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
173
173
 
174
174
  /***/ })
175
175
  /******/ ]);
@@ -1301,6 +1301,8 @@ var Rive = /** @class */ (function () {
1301
1301
  // by the elapsed time.
1302
1302
  this.artboard.advance(elapsedTime);
1303
1303
  var renderer = this.renderer;
1304
+ // Canvas must be wiped to prevent artifacts
1305
+ renderer.clear();
1304
1306
  renderer.save();
1305
1307
  // Update the renderer alignment if necessary
1306
1308
  this.alignRenderer();
@@ -1343,8 +1345,6 @@ var Rive = /** @class */ (function () {
1343
1345
  */
1344
1346
  Rive.prototype.alignRenderer = function () {
1345
1347
  var _a = this, renderer = _a.renderer, runtime = _a.runtime, _layout = _a._layout, artboard = _a.artboard;
1346
- // Canvas must be wiped to prevent artifacts
1347
- renderer.clear();
1348
1348
  // Align things up safe in the knowledge we can restore if changed
1349
1349
  renderer.align(_layout.runtimeFit(runtime), _layout.runtimeAlignment(runtime), {
1350
1350
  minX: _layout.minX,