@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/build/process.js +16 -0
- package/build/runtime.cjs +280 -276
- package/build/runtime.js +280 -276
- package/package.json +1 -1
- package/runtime.d.ts +8 -0
package/package.json
CHANGED
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
|