@splinetool/runtime 0.9.475 → 0.9.476
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 +2 -0
- package/build/runtime.cjs +33 -33
- package/build/runtime.js +33 -33
- package/package.json +1 -1
- package/runtime.d.ts +11 -0
package/README.md
CHANGED
|
@@ -192,6 +192,8 @@ You can call all these different methods on the Spline `Application` instance.
|
|
|
192
192
|
| `setSize` | `(width: number, height: number) => void` | Sets the size of the application and canvas. When called, Spline will stop automatic size updates. |
|
|
193
193
|
| `setVariables` | `(variables: Record<string, string \| number \| boolean>) => void` | Updates values for passed variables by name |
|
|
194
194
|
| `setVariable` | `(name: string, value: string \| number \| boolean) => void` | Updates value for passed variable by name |
|
|
195
|
+
| `getVariables` | `() => Record<string, string \| number \| boolean>` | Returns a record mapping variable names to their respective current values. |
|
|
196
|
+
| `getVariable` | `(name: string, value: string \| number \| boolean) => void` | Get current value for a specific variable from its name |
|
|
195
197
|
|
|
196
198
|
### Spline Events
|
|
197
199
|
|