@splinetool/runtime 1.10.40 → 1.10.41
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 +7 -6
- package/build/runtime.cjs +226 -226
- package/build/runtime.js +226 -226
- package/package.json +1 -1
- package/runtime.d.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splinetool/runtime",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.41",
|
|
4
4
|
"description": "Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2024 Spline, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spline",
|
package/runtime.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
declare module '@splinetool/runtime' {
|
|
2
|
+
export type RGB = { r: number; g: number; b: number };
|
|
2
3
|
export type SplineEvent = {
|
|
3
4
|
target: {
|
|
4
5
|
name: string;
|
|
@@ -74,6 +75,13 @@ declare module '@splinetool/runtime' {
|
|
|
74
75
|
rotation: { x: number; y: number; z: number };
|
|
75
76
|
scale: { x: number; y: number; z: number };
|
|
76
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Sets the color of the object's material if it is a mesh and if it has a color layer.
|
|
80
|
+
* If object is a light, it sets the color of the light.
|
|
81
|
+
* @param color The color in CSS format (e.g., "rgb(255, 0, 0)" or "#ff0000").
|
|
82
|
+
*/
|
|
83
|
+
color: string;
|
|
84
|
+
|
|
77
85
|
/**
|
|
78
86
|
* Gets or sets the object's current state from a given state name or id. Default state value is undefined.
|
|
79
87
|
*/
|