@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/package.json
CHANGED
package/runtime.d.ts
CHANGED
|
@@ -213,5 +213,16 @@ declare module '@splinetool/runtime' {
|
|
|
213
213
|
* @param value new value for this variable
|
|
214
214
|
*/
|
|
215
215
|
setVariable(name: string, value: number | boolean | string): void;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Returns a record mapping variable names to their respective current values.
|
|
219
|
+
*/
|
|
220
|
+
getVariables(): Record<string, number | boolean | string>;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Get current value for a specific variable from its name
|
|
224
|
+
* @param name name of the variable
|
|
225
|
+
*/
|
|
226
|
+
getVariable(name: string): number | boolean | string;
|
|
216
227
|
}
|
|
217
228
|
}
|