@splinetool/runtime 0.9.63 → 0.9.66
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/README.md +15 -15
- package/build/runtime.cjs +4770 -0
- package/build/runtime.js +848 -283
- package/package.json +14 -5
- package/runtime.d.ts +6 -6
package/package.json
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splinetool/runtime",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.9.66",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./build/runtime.js",
|
|
6
|
+
"module": "./build/runtime.js",
|
|
7
|
+
"types": "./runtime.d.ts",
|
|
8
|
+
"react-native": "./build/runtime.js",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./build/runtime.js",
|
|
12
|
+
"require": "./build/runtime.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
5
15
|
"files": [
|
|
6
16
|
"build",
|
|
7
17
|
"runtime.d.ts"
|
|
8
18
|
],
|
|
9
|
-
"types": "./runtime.d.ts",
|
|
10
19
|
"scripts": {
|
|
11
20
|
"start": "cross-env NODE_ENV=development node --experimental-json-modules ./esbuild.mjs",
|
|
12
21
|
"build": "cross-env NODE_ENV=production node --experimental-json-modules ./esbuild.mjs",
|
|
13
22
|
"lint": "eslint src/ --max-warnings=0 --cache",
|
|
14
23
|
"format": "prettier src/ --write",
|
|
15
24
|
"typecheck": "tsc",
|
|
16
|
-
"analyze": "cross-env GENERATE_SOURCEMAP=true yarn build && source-map-explorer 'build
|
|
25
|
+
"analyze": "cross-env GENERATE_SOURCEMAP=true yarn build && cross-env NODE_OPTIONS=--no-experimental-fetch source-map-explorer 'build/runtime.js' --no-border-checks",
|
|
17
26
|
"example": "vite"
|
|
18
27
|
},
|
|
19
28
|
"devDependencies": {
|
|
@@ -27,7 +36,7 @@
|
|
|
27
36
|
"raw-loader": "^4.0.2",
|
|
28
37
|
"source-map-explorer": "^2.5.2",
|
|
29
38
|
"spe": "0.0.0",
|
|
30
|
-
"three": "^0.
|
|
39
|
+
"three": "^0.141.0",
|
|
31
40
|
"typescript": "^4.1.3",
|
|
32
41
|
"vite": "^2.9.0"
|
|
33
42
|
},
|
package/runtime.d.ts
CHANGED
|
@@ -72,19 +72,19 @@ declare module '@splinetool/runtime' {
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
/**
|
|
75
|
-
* Triggers a Spline event associated to an object with provided uuid.
|
|
75
|
+
* Triggers a Spline event associated to an object with provided name or uuid.
|
|
76
76
|
* Starts from first state to last state.
|
|
77
77
|
* @param {string} eventName String that matches Spline event's name
|
|
78
|
-
* @param {string} uuid
|
|
78
|
+
* @param {string} nameOrUuid The name or uuid of the object
|
|
79
79
|
*/
|
|
80
|
-
emitEvent(eventName: SplineEventName,
|
|
80
|
+
emitEvent(eventName: SplineEventName, nameOrUuid: string): void;
|
|
81
81
|
/**
|
|
82
|
-
* Triggers a Spline event associated to an object with provided uuid in reverse order.
|
|
82
|
+
* Triggers a Spline event associated to an object with provided name or uuid in reverse order.
|
|
83
83
|
* Starts from last state to first state.
|
|
84
84
|
* @param {string} eventName String that matches Spline event's name
|
|
85
|
-
* @param {string} uuid
|
|
85
|
+
* @param {string} nameOrUuid The name or uuid of the object
|
|
86
86
|
*/
|
|
87
|
-
emitEventReverse(eventName: SplineEventName,
|
|
87
|
+
emitEventReverse(eventName: SplineEventName, nameOrUuid: string): void;
|
|
88
88
|
/**
|
|
89
89
|
* Add an event listener for Spline events
|
|
90
90
|
* @param {string} eventName String that matches Spline event's name
|