@rive-app/webgl-single 1.2.2 → 1.2.3
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 +15 -0
- package/rive.js +25 -4
- package/rive.js.map +1 -1
package/package.json
CHANGED
package/rive.d.ts
CHANGED
|
@@ -394,12 +394,27 @@ export declare class Rive {
|
|
|
394
394
|
on(type: EventType, callback: EventCallback): void;
|
|
395
395
|
/**
|
|
396
396
|
* Unsubscribes from a Rive-generated event
|
|
397
|
+
* @param type the type of event to unsubscribe from
|
|
398
|
+
* @param callback the callback to unsubscribe
|
|
399
|
+
*/
|
|
400
|
+
off(type: EventType, callback: EventCallback): void;
|
|
401
|
+
/**
|
|
402
|
+
* Unsubscribes from a Rive-generated event
|
|
403
|
+
* @deprecated
|
|
397
404
|
* @param callback the callback to unsubscribe from
|
|
398
405
|
*/
|
|
399
406
|
unsubscribe(type: EventType, callback: EventCallback): void;
|
|
407
|
+
/**
|
|
408
|
+
* Unsubscribes all Rive listeners from an event type, or everything if no type is
|
|
409
|
+
* given
|
|
410
|
+
* @param type the type of event to unsubscribe from, or all types if
|
|
411
|
+
* undefined
|
|
412
|
+
*/
|
|
413
|
+
removeAllRiveEventListeners(type?: EventType): void;
|
|
400
414
|
/**
|
|
401
415
|
* Unsubscribes all listeners from an event type, or everything if no type is
|
|
402
416
|
* given
|
|
417
|
+
* @deprecated
|
|
403
418
|
* @param type the type of event to unsubscribe from, or all types if
|
|
404
419
|
* undefined
|
|
405
420
|
*/
|
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.2.
|
|
170
|
+
module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.2.3","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 */
|
|
@@ -1941,22 +1941,43 @@ var Rive = /** @class */ (function () {
|
|
|
1941
1941
|
};
|
|
1942
1942
|
/**
|
|
1943
1943
|
* Unsubscribes from a Rive-generated event
|
|
1944
|
-
* @param
|
|
1944
|
+
* @param type the type of event to unsubscribe from
|
|
1945
|
+
* @param callback the callback to unsubscribe
|
|
1945
1946
|
*/
|
|
1946
|
-
Rive.prototype.
|
|
1947
|
+
Rive.prototype.off = function (type, callback) {
|
|
1947
1948
|
this.eventManager.remove({
|
|
1948
1949
|
type: type,
|
|
1949
1950
|
callback: callback,
|
|
1950
1951
|
});
|
|
1951
1952
|
};
|
|
1953
|
+
/**
|
|
1954
|
+
* Unsubscribes from a Rive-generated event
|
|
1955
|
+
* @deprecated
|
|
1956
|
+
* @param callback the callback to unsubscribe from
|
|
1957
|
+
*/
|
|
1958
|
+
Rive.prototype.unsubscribe = function (type, callback) {
|
|
1959
|
+
console.warn("This function is deprecated: please use `off()` instead.");
|
|
1960
|
+
this.off(type, callback);
|
|
1961
|
+
};
|
|
1962
|
+
/**
|
|
1963
|
+
* Unsubscribes all Rive listeners from an event type, or everything if no type is
|
|
1964
|
+
* given
|
|
1965
|
+
* @param type the type of event to unsubscribe from, or all types if
|
|
1966
|
+
* undefined
|
|
1967
|
+
*/
|
|
1968
|
+
Rive.prototype.removeAllRiveEventListeners = function (type) {
|
|
1969
|
+
this.eventManager.removeAll(type);
|
|
1970
|
+
};
|
|
1952
1971
|
/**
|
|
1953
1972
|
* Unsubscribes all listeners from an event type, or everything if no type is
|
|
1954
1973
|
* given
|
|
1974
|
+
* @deprecated
|
|
1955
1975
|
* @param type the type of event to unsubscribe from, or all types if
|
|
1956
1976
|
* undefined
|
|
1957
1977
|
*/
|
|
1958
1978
|
Rive.prototype.unsubscribeAll = function (type) {
|
|
1959
|
-
|
|
1979
|
+
console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead.");
|
|
1980
|
+
this.removeAllRiveEventListeners(type);
|
|
1960
1981
|
};
|
|
1961
1982
|
/**
|
|
1962
1983
|
* Stops the rendering loop; this is different from pausing in that it doesn't
|