@rive-app/canvas-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/canvas-single",
3
- "version": "1.0.81",
3
+ "version": "1.0.82",
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
@@ -134,7 +134,7 @@ if(m.preInit)for("function"==typeof m.preInit&&(m.preInit=[m.preInit]);0<m.preIn
134
134
  /* 2 */
135
135
  /***/ ((module) => {
136
136
 
137
- module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"1.0.81","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}}');
137
+ module.exports = JSON.parse('{"name":"@rive-app/canvas-single","version":"1.0.82","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}}');
138
138
 
139
139
  /***/ }),
140
140
  /* 3 */
@@ -201,21 +201,21 @@ const registerTouchInteractions = ({
201
201
 
202
202
  switch (event.type) {
203
203
  // Pointer moving/hovering on the canvas
204
- case 'mousemove': {
204
+ case "mousemove": {
205
205
  for (const stateMachine of stateMachines) {
206
206
  stateMachine.pointerMove(transformedX, transformedY);
207
207
  }
208
208
  break;
209
209
  }
210
210
  // Pointer click initiated but not released yet on the canvas
211
- case 'mousedown': {
211
+ case "mousedown": {
212
212
  for (const stateMachine of stateMachines) {
213
213
  stateMachine.pointerDown(transformedX, transformedY);
214
214
  }
215
215
  break;
216
216
  }
217
217
  // Pointer click released on the canvas
218
- case 'mouseup': {
218
+ case "mouseup": {
219
219
  for (const stateMachine of stateMachines) {
220
220
  stateMachine.pointerUp(transformedX, transformedY);
221
221
  }
@@ -225,13 +225,13 @@ const registerTouchInteractions = ({
225
225
  }
226
226
  };
227
227
  const callback = mouseCallback.bind(undefined);
228
- canvas.addEventListener('mousemove', callback);
229
- canvas.addEventListener('mousedown', callback);
230
- canvas.addEventListener('mouseup', callback);
228
+ canvas.addEventListener("mousemove", callback);
229
+ canvas.addEventListener("mousedown", callback);
230
+ canvas.addEventListener("mouseup", callback);
231
231
  return () => {
232
- canvas.removeEventListener('mousemove', callback);
233
- canvas.removeEventListener('mousedown', callback);
234
- canvas.removeEventListener('mouseup', callback);
232
+ canvas.removeEventListener("mousemove", callback);
233
+ canvas.removeEventListener("mousedown", callback);
234
+ canvas.removeEventListener("mouseup", callback);
235
235
  };
236
236
  };
237
237