@rive-app/canvas 1.0.53 → 1.0.54

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",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Rive's canvas based web api.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -136,7 +136,7 @@ k.run=zc;if(k.preInit)for("function"==typeof k.preInit&&(k.preInit=[k.preInit]);
136
136
  /* 2 */
137
137
  /***/ ((module) => {
138
138
 
139
- module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"1.0.53","description":"Rive\'s canvas based web api.","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.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
139
+ module.exports = JSON.parse('{"name":"@rive-app/canvas","version":"1.0.54","description":"Rive\'s canvas based web api.","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.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
140
140
 
141
141
  /***/ })
142
142
  /******/ ]);
package/rive.wasm CHANGED
Binary file
@@ -184,6 +184,12 @@ interface RiveOptions {
184
184
  advance(sec: number): any;
185
185
  stateChangedCount(): number;
186
186
  stateChangedNameByIndex(i: number): string;
187
+
188
+ // Call with coordinates in Artboard space
189
+ pointerDown(x: number, y: number): void;
190
+ pointerMove(x: number, y: number): void;
191
+ pointerUp(x: number, y: number): void;
192
+
187
193
  // Deletes the backing Wasm state machine instance
188
194
  delete(): void;
189
195
  }