@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splinetool/runtime",
3
- "version": "0.9.475",
3
+ "version": "0.9.476",
4
4
  "type": "module",
5
5
  "main": "./build/runtime.js",
6
6
  "module": "./build/runtime.js",
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
  }