@rive-app/webgl-single 1.0.81 → 1.0.82

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/webgl-single",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
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
@@ -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.0.81","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}}');
170
+ module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.82","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 */
@@ -234,21 +234,21 @@ const registerTouchInteractions = ({
234
234
 
235
235
  switch (event.type) {
236
236
  // Pointer moving/hovering on the canvas
237
- case 'mousemove': {
237
+ case "mousemove": {
238
238
  for (const stateMachine of stateMachines) {
239
239
  stateMachine.pointerMove(transformedX, transformedY);
240
240
  }
241
241
  break;
242
242
  }
243
243
  // Pointer click initiated but not released yet on the canvas
244
- case 'mousedown': {
244
+ case "mousedown": {
245
245
  for (const stateMachine of stateMachines) {
246
246
  stateMachine.pointerDown(transformedX, transformedY);
247
247
  }
248
248
  break;
249
249
  }
250
250
  // Pointer click released on the canvas
251
- case 'mouseup': {
251
+ case "mouseup": {
252
252
  for (const stateMachine of stateMachines) {
253
253
  stateMachine.pointerUp(transformedX, transformedY);
254
254
  }
@@ -258,13 +258,13 @@ const registerTouchInteractions = ({
258
258
  }
259
259
  };
260
260
  const callback = mouseCallback.bind(undefined);
261
- canvas.addEventListener('mousemove', callback);
262
- canvas.addEventListener('mousedown', callback);
263
- canvas.addEventListener('mouseup', callback);
261
+ canvas.addEventListener("mousemove", callback);
262
+ canvas.addEventListener("mousedown", callback);
263
+ canvas.addEventListener("mouseup", callback);
264
264
  return () => {
265
- canvas.removeEventListener('mousemove', callback);
266
- canvas.removeEventListener('mousedown', callback);
267
- canvas.removeEventListener('mouseup', callback);
265
+ canvas.removeEventListener("mousemove", callback);
266
+ canvas.removeEventListener("mousedown", callback);
267
+ canvas.removeEventListener("mouseup", callback);
268
268
  };
269
269
  };
270
270