@splinetool/runtime 0.9.95 → 0.9.98

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": "@splinetool/runtime",
3
- "version": "0.9.95",
3
+ "version": "0.9.98",
4
4
  "type": "module",
5
5
  "main": "./build/runtime.js",
6
6
  "module": "./build/runtime.js",
package/runtime.d.ts CHANGED
@@ -48,7 +48,15 @@ declare module '@splinetool/runtime' {
48
48
  canvas: HTMLCanvasElement,
49
49
  { autoRender }?: { autoRender: boolean }
50
50
  );
51
+ /**
52
+ * Loads an exported Spline scene
53
+ * @param path the url pointing toward a .splinecode file
54
+ */
51
55
  load(path: string): Promise<void>;
56
+ /**
57
+ * Initializes the application starting from a binary encoded .splinecode file
58
+ * @param array the binary ArrayBuffer of the .splinecode
59
+ */
52
60
  start(array: ArrayBuffer): void;
53
61
  /**
54
62
  * Searches through scene's children and returns the object with that uuid