@splinetool/runtime 0.9.478 → 0.9.480

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 CHANGED
@@ -190,10 +190,15 @@ You can call all these different methods on the Spline `Application` instance.
190
190
  | `findObjectByName` | `(name: string) => SPEObject` | Searches through scene's children and returns the first object with that name. |
191
191
  | `setZoom` | `(zoom: number) => void` | Sets the initial zoom of the scene. |
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
- | `setVariables` | `(variables: Record<string, string \| number \| boolean>) => void` | Updates values for passed variables by name |
194
- | `setVariable` | `(name: string, value: string \| number \| boolean) => void` | Updates value for passed variable by name |
193
+ | `setVariables` | `(variables: Record<string, string \| number \| boolean>) => void` | Updates values for passed variables by name. |
194
+ | `setVariable` | `(name: string, value: string \| number \| boolean) => void` | Updates value for passed variable by name. |
195
195
  | `getVariables` | `() => Record<string, string \| number \| boolean>` | Returns a record mapping variable names to their respective current values. |
196
196
  | `getVariable` | `(name: string, value: string \| number \| boolean) => void` | Get current value for a specific variable from its name |
197
+ | `stop` | `() => void` | Stop/Pause all rendering controls and events. |
198
+ | `play` | `() => void` | Play/Resume rendering, controls and events. |
199
+ | `setBackgroundColor` | `(color:string) => void` | Manually sets the scene/canvas background color with a css color value. |
200
+ | `getAllObjects` | `() => SPEObject[]` | Returns a flat list of all the objects present in the scene. |
201
+ | `getSplineEvents` | `() => Object[]` | Returns an array listing all the Spline events used in the scene. |
197
202
 
198
203
  ### Spline Events
199
204