@splinetool/runtime 1.7.1 → 1.7.3
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 +1 -1
- package/build/runtime.cjs +50 -50
- package/build/runtime.js +50 -50
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -190,7 +190,7 @@ You can call all these different methods on the Spline `Application` instance.
|
|
|
190
190
|
| `emitEventReverse` | `(eventName: SplineEventName, nameOrUuid: string) => void` | Triggers a Spline event associated to an object with provided name or uuid in reverse order. Starts from last state to first state. |
|
|
191
191
|
| `findObjectById` | `(uuid: string) => SPEObject` | Searches through scene's children and returns the object with that uuid. |
|
|
192
192
|
| `findObjectByName` | `(name: string) => SPEObject` | Searches through scene's children and returns the first object with that name. |
|
|
193
|
-
| `setZoom` | `(zoom: number) => void` | Sets the
|
|
193
|
+
| `setZoom` | `(zoom: number) => void` | Sets the camera zoom, expects a number value > 0 where 1 is base zoom. |
|
|
194
194
|
| `setSize` | `(width: number, height: number) => void` | Sets the size of the application and canvas. When called, Spline will stop automatic size updates. |
|
|
195
195
|
| `setVariables` | `(variables: Record<string, string \| number \| boolean>) => void` | Updates values for passed variables by name. |
|
|
196
196
|
| `setVariable` | `(name: string, value: string \| number \| boolean) => void` | Updates value for passed variable by name. |
|