@splinetool/runtime 0.9.463 → 0.9.464
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 +4 -4
- package/build/runtime.cjs +21 -21
- package/build/runtime.js +21 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -181,7 +181,7 @@ spline.setVariable('myName', 'Ringo');
|
|
|
181
181
|
You can call all these different methods on the Spline `Application` instance.
|
|
182
182
|
|
|
183
183
|
| Name | Type | Description |
|
|
184
|
-
| --------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
184
|
+
| --------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
|
|
185
185
|
| `addEventListener` | `(eventName: SplineEventName, cb: (e: SplineEvent) => void) => void` | Add an event listener for Spline events |
|
|
186
186
|
| `removeEventListener` | `(eventName: SplineEventName, cb: (e: SplineEvent) => void) => void` | Remove an event listener for Spline events |
|
|
187
187
|
| `emitEvent` | `(eventName: SplineEventName, nameOrUuid: string) => void` | Triggers a Spline event associated to an object with provided name or uuid in reverse order. Starts from first state to last state. |
|
|
@@ -189,9 +189,9 @@ You can call all these different methods on the Spline `Application` instance.
|
|
|
189
189
|
| `findObjectById` | `(uuid: string) => SPEObject` | Searches through scene's children and returns the object with that uuid. |
|
|
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
|
-
| `setSize` | `(width: number, height:number) => void`
|
|
193
|
-
| `setVariables` | `(variables:Record<string, string
|
|
194
|
-
| `setVariable` | `(name:string, value: string
|
|
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 |
|
|
195
195
|
|
|
196
196
|
### Spline Events
|
|
197
197
|
|