@rive-app/canvas-single 1.0.26 → 1.0.29

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/canvas-single",
3
- "version": "1.0.26",
3
+ "version": "1.0.29",
4
4
  "description": "Rive's high-level canvas based web api all in one js file.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -124,7 +124,7 @@ if(h.preInit)for("function"==typeof h.preInit&&(h.preInit=[h.preInit]);0<h.preIn
124
124
  /* 2 */
125
125
  /***/ ((module) => {
126
126
 
127
- module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"1.0.26","description":"Rive\'s high-level canvas based web api all in one js file.","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}}');
127
+ module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"1.0.29","description":"Rive\'s high-level canvas based web api all in one js file.","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}}');
128
128
 
129
129
  /***/ })
130
130
  /******/ ]);
@@ -1256,6 +1256,8 @@ var Rive = /** @class */ (function () {
1256
1256
  // by the elapsed time.
1257
1257
  this.artboard.advance(elapsedTime);
1258
1258
  var renderer = this.renderer;
1259
+ // Canvas must be wiped to prevent artifacts
1260
+ renderer.clear();
1259
1261
  renderer.save();
1260
1262
  // Update the renderer alignment if necessary
1261
1263
  this.alignRenderer();
@@ -1298,8 +1300,6 @@ var Rive = /** @class */ (function () {
1298
1300
  */
1299
1301
  Rive.prototype.alignRenderer = function () {
1300
1302
  var _a = this, renderer = _a.renderer, runtime = _a.runtime, _layout = _a._layout, artboard = _a.artboard;
1301
- // Canvas must be wiped to prevent artifacts
1302
- renderer.clear();
1303
1303
  // Align things up safe in the knowledge we can restore if changed
1304
1304
  renderer.align(_layout.runtimeFit(runtime), _layout.runtimeAlignment(runtime), {
1305
1305
  minX: _layout.minX,