@rive-app/webgl-single 1.1.9 → 1.2.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 +1 -1
- package/rive.d.ts +0 -5
- package/rive.js +2 -9
- package/rive.js.map +1 -1
- package/rive_advanced.mjs.d.ts +26 -4
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -245,12 +245,7 @@ export declare class Rive {
|
|
|
245
245
|
private src;
|
|
246
246
|
private buffer;
|
|
247
247
|
private _layout;
|
|
248
|
-
private _updateLayout;
|
|
249
248
|
private renderer;
|
|
250
|
-
/**
|
|
251
|
-
* Flag to active/deactivate renderer
|
|
252
|
-
*/
|
|
253
|
-
private isRendererActive;
|
|
254
249
|
private loaded;
|
|
255
250
|
/**
|
|
256
251
|
* Tracks if a Rive file is loaded; we need this in addition to loaded as some
|
package/rive.js
CHANGED
|
@@ -167,7 +167,7 @@ if(h.preInit)for("function"==typeof h.preInit&&(h.preInit=[h.preInit]);0<h.preIn
|
|
|
167
167
|
/* 2 */
|
|
168
168
|
/***/ ((module) => {
|
|
169
169
|
|
|
170
|
-
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.
|
|
170
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.2.0","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}}');
|
|
171
171
|
|
|
172
172
|
/***/ }),
|
|
173
173
|
/* 3 */
|
|
@@ -854,7 +854,7 @@ var Animator = /** @class */ (function () {
|
|
|
854
854
|
// Play/pause already instanced items, or create new instances
|
|
855
855
|
var instancedAnimationNames = this.animations.map(function (a) { return a.name; });
|
|
856
856
|
var instancedMachineNames = this.stateMachines.map(function (m) { return m.name; });
|
|
857
|
-
for (var i
|
|
857
|
+
for (var i = 0; i < animatables.length; i++) {
|
|
858
858
|
var aIndex = instancedAnimationNames.indexOf(animatables[i]);
|
|
859
859
|
var mIndex = instancedMachineNames.indexOf(animatables[i]);
|
|
860
860
|
if (aIndex >= 0 || mIndex >= 0) {
|
|
@@ -1223,13 +1223,6 @@ var TaskQueueManager = /** @class */ (function () {
|
|
|
1223
1223
|
var Rive = /** @class */ (function () {
|
|
1224
1224
|
function Rive(params) {
|
|
1225
1225
|
var _a;
|
|
1226
|
-
// Flag to indicate if the layout has changed; used by the renderer to know
|
|
1227
|
-
// when to align
|
|
1228
|
-
this._updateLayout = true;
|
|
1229
|
-
/**
|
|
1230
|
-
* Flag to active/deactivate renderer
|
|
1231
|
-
*/
|
|
1232
|
-
this.isRendererActive = true;
|
|
1233
1226
|
// Tracks if a Rive file is loaded
|
|
1234
1227
|
this.loaded = false;
|
|
1235
1228
|
/**
|