@splinetool/runtime 1.10.40 → 1.10.42
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/README.md
CHANGED
|
@@ -256,12 +256,13 @@ After retrieving a Spline Object with `app.findObjectById` or `app.findObjectByN
|
|
|
256
256
|
| `state` | `string\|number\|undefined` | Gets / Sets object's current state by name. undefined is used for default / Base State. You can also set from state index (0, 1, 2 etc...) |
|
|
257
257
|
| `intensity` | `number` | Only for light objects. Used to change the light intensity. |
|
|
258
258
|
|
|
259
|
-
| Name | Type | Description
|
|
260
|
-
| ------------ | -------------------------------------- |
|
|
261
|
-
| `show` | `() => void` | Change object visible property to true.
|
|
262
|
-
| `hide` | `() => void` | Change object visible property to false.
|
|
263
|
-
| `emitEvent` | `(eventName: SplineEventName) => void` | Force trigger an event defined in Spline Editor.
|
|
264
|
-
| `transition` | `(params: TransitionParams) => void` | Used to procedurally trigger a Spline transition between states.
|
|
259
|
+
| Name | Type | Description |
|
|
260
|
+
| ------------ | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
261
|
+
| `show` | `() => void` | Change object visible property to true. |
|
|
262
|
+
| `hide` | `() => void` | Change object visible property to false. |
|
|
263
|
+
| `emitEvent` | `(eventName: SplineEventName) => void` | Force trigger an event defined in Spline Editor. |
|
|
264
|
+
| `transition` | `(params: TransitionParams) => void` | Used to procedurally trigger a Spline transition between states. |
|
|
265
|
+
| `setColor` | `(color:string) => void` | Sets color of a mesh material if it has a color layer. If not it can add a color layer to it when force option is true |
|
|
265
266
|
|
|
266
267
|
### Spline Events
|
|
267
268
|
|