runmat 0.2.16 → 0.2.18

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.
@@ -230,6 +230,13 @@ function takeFromExternrefTable0(idx) {
230
230
  wasm.__externref_table_dealloc(idx);
231
231
  return value;
232
232
  }
233
+
234
+ function passArray8ToWasm0(arg, malloc) {
235
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
236
+ getUint8ArrayMemory0().set(arg, ptr / 1);
237
+ WASM_VECTOR_LEN = arg.length;
238
+ return ptr;
239
+ }
233
240
  /**
234
241
  * @param {any} bindings
235
242
  */
@@ -384,6 +391,16 @@ export function resetPlotSurfaceCamera(surface_id) {
384
391
  }
385
392
  }
386
393
 
394
+ /**
395
+ * @param {any} theme
396
+ */
397
+ export function setPlotThemeConfig(theme) {
398
+ const ret = wasm.setPlotThemeConfig(theme);
399
+ if (ret[1]) {
400
+ throw takeFromExternrefTable0(ret[0]);
401
+ }
402
+ }
403
+
387
404
  /**
388
405
  * @returns {number}
389
406
  */
@@ -570,16 +587,20 @@ export function initRunMat(options) {
570
587
  return ret;
571
588
  }
572
589
 
573
- function __wbg_adapter_54(arg0, arg1, arg2) {
574
- wasm.closure5831_externref_shim(arg0, arg1, arg2);
590
+ function __wbg_adapter_56(arg0, arg1, arg2) {
591
+ wasm.closure2518_externref_shim(arg0, arg1, arg2);
592
+ }
593
+
594
+ function __wbg_adapter_59(arg0, arg1, arg2) {
595
+ wasm.closure6143_externref_shim(arg0, arg1, arg2);
575
596
  }
576
597
 
577
- function __wbg_adapter_57(arg0, arg1, arg2) {
578
- wasm.closure5837_externref_shim(arg0, arg1, arg2);
598
+ function __wbg_adapter_62(arg0, arg1, arg2) {
599
+ wasm.closure6149_externref_shim(arg0, arg1, arg2);
579
600
  }
580
601
 
581
- function __wbg_adapter_561(arg0, arg1, arg2, arg3) {
582
- wasm.closure5881_externref_shim(arg0, arg1, arg2, arg3);
602
+ function __wbg_adapter_609(arg0, arg1, arg2, arg3) {
603
+ wasm.closure6193_externref_shim(arg0, arg1, arg2, arg3);
583
604
  }
584
605
 
585
606
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -588,6 +609,8 @@ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
588
609
 
589
610
  const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
590
611
 
612
+ const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
613
+
591
614
  const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
592
615
 
593
616
  const RunMatWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -696,6 +719,58 @@ export class RunMatWasm {
696
719
  clearWorkspace() {
697
720
  wasm.runmatwasm_clearWorkspace(this.__wbg_ptr);
698
721
  }
722
+ /**
723
+ * @param {string | null} [include_variables]
724
+ * @returns {Promise<Uint8Array | undefined>}
725
+ */
726
+ exportWorkspaceState(include_variables) {
727
+ var ptr0 = isLikeNone(include_variables) ? 0 : passStringToWasm0(include_variables, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
728
+ var len0 = WASM_VECTOR_LEN;
729
+ const ret = wasm.runmatwasm_exportWorkspaceState(this.__wbg_ptr, ptr0, len0);
730
+ return ret;
731
+ }
732
+ /**
733
+ * @param {Uint8Array} state
734
+ * @returns {boolean}
735
+ */
736
+ importWorkspaceState(state) {
737
+ const ptr0 = passArray8ToWasm0(state, wasm.__wbindgen_malloc);
738
+ const len0 = WASM_VECTOR_LEN;
739
+ const ret = wasm.runmatwasm_importWorkspaceState(this.__wbg_ptr, ptr0, len0);
740
+ if (ret[2]) {
741
+ throw takeFromExternrefTable0(ret[1]);
742
+ }
743
+ return ret[0] !== 0;
744
+ }
745
+ /**
746
+ * @param {number} handle
747
+ * @returns {Uint8Array | undefined}
748
+ */
749
+ exportFigureScene(handle) {
750
+ const ret = wasm.runmatwasm_exportFigureScene(this.__wbg_ptr, handle);
751
+ if (ret[3]) {
752
+ throw takeFromExternrefTable0(ret[2]);
753
+ }
754
+ let v1;
755
+ if (ret[0] !== 0) {
756
+ v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
757
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
758
+ }
759
+ return v1;
760
+ }
761
+ /**
762
+ * @param {Uint8Array} scene
763
+ * @returns {number | undefined}
764
+ */
765
+ importFigureScene(scene) {
766
+ const ptr0 = passArray8ToWasm0(scene, wasm.__wbindgen_malloc);
767
+ const len0 = WASM_VECTOR_LEN;
768
+ const ret = wasm.runmatwasm_importFigureScene(this.__wbg_ptr, ptr0, len0);
769
+ if (ret[2]) {
770
+ throw takeFromExternrefTable0(ret[1]);
771
+ }
772
+ return ret[0] === 0x100000001 ? undefined : ret[0];
773
+ }
699
774
  /**
700
775
  * @returns {boolean}
701
776
  */
@@ -820,6 +895,11 @@ export function __wbg_configure_3545afac230e1d5e(arg0, arg1) {
820
895
  arg0.configure(arg1);
821
896
  };
822
897
 
898
+ export function __wbg_contains_b952b06daf857803(arg0, arg1, arg2) {
899
+ const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
900
+ return ret;
901
+ };
902
+
823
903
  export function __wbg_copyBufferToBuffer_1339da3175db86a8(arg0, arg1, arg2, arg3, arg4, arg5) {
824
904
  arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
825
905
  };
@@ -865,6 +945,11 @@ export function __wbg_createComputePipeline_4bf93ff2c10c2333(arg0, arg1) {
865
945
  return ret;
866
946
  };
867
947
 
948
+ export function __wbg_createObjectStore_e566459f7161f82f() { return handleError(function (arg0, arg1, arg2) {
949
+ const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2));
950
+ return ret;
951
+ }, arguments) };
952
+
868
953
  export function __wbg_createPipelineLayout_669f14789cde7273(arg0, arg1) {
869
954
  const ret = arg0.createPipelineLayout(arg1);
870
955
  return ret;
@@ -980,6 +1065,11 @@ export function __wbg_end_9cc33f189e27f3fd(arg0) {
980
1065
  arg0.end();
981
1066
  };
982
1067
 
1068
+ export function __wbg_entries_3265d4158b33e5dc(arg0) {
1069
+ const ret = Object.entries(arg0);
1070
+ return ret;
1071
+ };
1072
+
983
1073
  export function __wbg_error_15b28e2be7953dc9(arg0) {
984
1074
  const ret = arg0.error;
985
1075
  return ret;
@@ -1001,6 +1091,11 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
1001
1091
  }
1002
1092
  };
1003
1093
 
1094
+ export function __wbg_error_ff4ddaabdfc5dbb3() { return handleError(function (arg0) {
1095
+ const ret = arg0.error;
1096
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1097
+ }, arguments) };
1098
+
1004
1099
  export function __wbg_executeBundles_db3c31afbf86979f(arg0, arg1) {
1005
1100
  arg0.executeBundles(arg1);
1006
1101
  };
@@ -1106,6 +1201,11 @@ export function __wbg_getReader_be0d36e5873a525b(arg0) {
1106
1201
  return ret;
1107
1202
  };
1108
1203
 
1204
+ export function __wbg_getTime_46267b1c24877e30(arg0) {
1205
+ const ret = arg0.getTime();
1206
+ return ret;
1207
+ };
1208
+
1109
1209
  export function __wbg_getTimezoneOffset_6b5752021c499c47(arg0) {
1110
1210
  const ret = arg0.getTimezoneOffset();
1111
1211
  return ret;
@@ -1116,6 +1216,11 @@ export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0
1116
1216
  return ret;
1117
1217
  }, arguments) };
1118
1218
 
1219
+ export function __wbg_get_8da03f81f6a1111e() { return handleError(function (arg0, arg1) {
1220
+ const ret = arg0.get(arg1);
1221
+ return ret;
1222
+ }, arguments) };
1223
+
1119
1224
  export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
1120
1225
  const ret = arg0[arg1 >>> 0];
1121
1226
  return ret;
@@ -1233,6 +1338,39 @@ export function __wbg_instanceof_HtmlCanvasElement_2ea67072a7624ac5(arg0) {
1233
1338
  return ret;
1234
1339
  };
1235
1340
 
1341
+ export function __wbg_instanceof_IdbDatabase_a3ef009ca00059f9(arg0) {
1342
+ let result;
1343
+ try {
1344
+ result = arg0 instanceof IDBDatabase;
1345
+ } catch (_) {
1346
+ result = false;
1347
+ }
1348
+ const ret = result;
1349
+ return ret;
1350
+ };
1351
+
1352
+ export function __wbg_instanceof_IdbFactory_12eaba3366f4302f(arg0) {
1353
+ let result;
1354
+ try {
1355
+ result = arg0 instanceof IDBFactory;
1356
+ } catch (_) {
1357
+ result = false;
1358
+ }
1359
+ const ret = result;
1360
+ return ret;
1361
+ };
1362
+
1363
+ export function __wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893(arg0) {
1364
+ let result;
1365
+ try {
1366
+ result = arg0 instanceof IDBOpenDBRequest;
1367
+ } catch (_) {
1368
+ result = false;
1369
+ }
1370
+ const ret = result;
1371
+ return ret;
1372
+ };
1373
+
1236
1374
  export function __wbg_instanceof_Memory_111add5588accff2(arg0) {
1237
1375
  let result;
1238
1376
  try {
@@ -1575,7 +1713,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1575
1713
  const a = state0.a;
1576
1714
  state0.a = 0;
1577
1715
  try {
1578
- return __wbg_adapter_561(a, state0.b, arg0, arg1);
1716
+ return __wbg_adapter_609(a, state0.b, arg0, arg1);
1579
1717
  } finally {
1580
1718
  state0.a = a;
1581
1719
  }
@@ -1672,6 +1810,16 @@ export function __wbg_now_d18023d54d4e5500(arg0) {
1672
1810
  return ret;
1673
1811
  };
1674
1812
 
1813
+ export function __wbg_objectStoreNames_9bb1ab04a7012aaf(arg0) {
1814
+ const ret = arg0.objectStoreNames;
1815
+ return ret;
1816
+ };
1817
+
1818
+ export function __wbg_objectStore_21878d46d25b64b6() { return handleError(function (arg0, arg1, arg2) {
1819
+ const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
1820
+ return ret;
1821
+ }, arguments) };
1822
+
1675
1823
  export function __wbg_ok_3aaf32d069979723(arg0) {
1676
1824
  const ret = arg0.ok;
1677
1825
  return ret;
@@ -1686,6 +1834,11 @@ export function __wbg_open_6c3f5ef5a0204c5d() { return handleError(function (arg
1686
1834
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1687
1835
  }, arguments) };
1688
1836
 
1837
+ export function __wbg_open_e0c0b2993eb596e1() { return handleError(function (arg0, arg1, arg2, arg3) {
1838
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
1839
+ return ret;
1840
+ }, arguments) };
1841
+
1689
1842
  export function __wbg_parse_def2e24ef1252aff() { return handleError(function (arg0, arg1) {
1690
1843
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1691
1844
  return ret;
@@ -1715,6 +1868,11 @@ export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
1715
1868
  return ret;
1716
1869
  };
1717
1870
 
1871
+ export function __wbg_put_066faa31a6a88f5b() { return handleError(function (arg0, arg1, arg2) {
1872
+ const ret = arg0.put(arg1, arg2);
1873
+ return ret;
1874
+ }, arguments) };
1875
+
1718
1876
  export function __wbg_querySelectorAll_40998fd748f057ef() { return handleError(function (arg0, arg1, arg2) {
1719
1877
  const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
1720
1878
  return ret;
@@ -1777,6 +1935,11 @@ export function __wbg_response_49e10f8ee7f418db() { return handleError(function
1777
1935
  return ret;
1778
1936
  }, arguments) };
1779
1937
 
1938
+ export function __wbg_result_f29afabdf2c05826() { return handleError(function (arg0) {
1939
+ const ret = arg0.result;
1940
+ return ret;
1941
+ }, arguments) };
1942
+
1780
1943
  export function __wbg_runmatwasm_new(arg0) {
1781
1944
  const ret = RunMatWasm.__wrap(arg0);
1782
1945
  return ret;
@@ -1908,10 +2071,22 @@ export function __wbg_setheight_da683a33fa99843c(arg0, arg1) {
1908
2071
  arg0.height = arg1 >>> 0;
1909
2072
  };
1910
2073
 
2074
+ export function __wbg_setonerror_d7e3056cc6e56085(arg0, arg1) {
2075
+ arg0.onerror = arg1;
2076
+ };
2077
+
2078
+ export function __wbg_setonsuccess_afa464ee777a396d(arg0, arg1) {
2079
+ arg0.onsuccess = arg1;
2080
+ };
2081
+
1911
2082
  export function __wbg_setonuncapturederror_daf12032b2ca712a(arg0, arg1) {
1912
2083
  arg0.onuncapturederror = arg1;
1913
2084
  };
1914
2085
 
2086
+ export function __wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f(arg0, arg1) {
2087
+ arg0.onupgradeneeded = arg1;
2088
+ };
2089
+
1915
2090
  export function __wbg_setresponseType_4267195f737262d5(arg0, arg1) {
1916
2091
  arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
1917
2092
  };
@@ -1988,6 +2163,11 @@ export function __wbg_submit_75592557e0c2141c(arg0, arg1) {
1988
2163
  arg0.submit(arg1);
1989
2164
  };
1990
2165
 
2166
+ export function __wbg_target_0a62d9d79a2a1ede(arg0) {
2167
+ const ret = arg0.target;
2168
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2169
+ };
2170
+
1991
2171
  export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
1992
2172
  const ret = arg0.then(arg1);
1993
2173
  return ret;
@@ -2003,6 +2183,11 @@ export function __wbg_toISOString_b015155a5a6fe219(arg0) {
2003
2183
  return ret;
2004
2184
  };
2005
2185
 
2186
+ export function __wbg_transaction_babc423936946a37() { return handleError(function (arg0, arg1, arg2, arg3) {
2187
+ const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
2188
+ return ret;
2189
+ }, arguments) };
2190
+
2006
2191
  export function __wbg_unmap_662f1210575affe8(arg0) {
2007
2192
  arg0.unmap();
2008
2193
  };
@@ -2092,13 +2277,18 @@ export function __wbindgen_cb_drop(arg0) {
2092
2277
  return ret;
2093
2278
  };
2094
2279
 
2095
- export function __wbindgen_closure_wrapper17683(arg0, arg1, arg2) {
2096
- const ret = makeMutClosure(arg0, arg1, 5832, __wbg_adapter_54);
2280
+ export function __wbindgen_closure_wrapper18351(arg0, arg1, arg2) {
2281
+ const ret = makeMutClosure(arg0, arg1, 6144, __wbg_adapter_59);
2282
+ return ret;
2283
+ };
2284
+
2285
+ export function __wbindgen_closure_wrapper18768(arg0, arg1, arg2) {
2286
+ const ret = makeMutClosure(arg0, arg1, 6150, __wbg_adapter_62);
2097
2287
  return ret;
2098
2288
  };
2099
2289
 
2100
- export function __wbindgen_closure_wrapper18099(arg0, arg1, arg2) {
2101
- const ret = makeMutClosure(arg0, arg1, 5838, __wbg_adapter_57);
2290
+ export function __wbindgen_closure_wrapper5426(arg0, arg1, arg2) {
2291
+ const ret = makeMutClosure(arg0, arg1, 2519, __wbg_adapter_56);
2102
2292
  return ret;
2103
2293
  };
2104
2294
 
@@ -2207,3 +2397,10 @@ export function __wbindgen_throw(arg0, arg1) {
2207
2397
  throw new Error(getStringFromWasm0(arg0, arg1));
2208
2398
  };
2209
2399
 
2400
+ export function __wbindgen_uint8_array_new(arg0, arg1) {
2401
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
2402
+ wasm.__wbindgen_free(arg0, arg1 * 1, 1);
2403
+ const ret = v0;
2404
+ return ret;
2405
+ };
2406
+
Binary file
@@ -13,6 +13,10 @@ export const runmatwasm_fusionPlanForSource: (a: number, b: number, c: number) =
13
13
  export const runmatwasm_materializeVariable: (a: number, b: any, c: any) => any;
14
14
  export const runmatwasm_stats: (a: number) => [number, number, number];
15
15
  export const runmatwasm_clearWorkspace: (a: number) => void;
16
+ export const runmatwasm_exportWorkspaceState: (a: number, b: number, c: number) => any;
17
+ export const runmatwasm_importWorkspaceState: (a: number, b: number, c: number) => [number, number, number];
18
+ export const runmatwasm_exportFigureScene: (a: number, b: number) => [number, number, number, number];
19
+ export const runmatwasm_importFigureScene: (a: number, b: number, c: number) => [number, number, number];
16
20
  export const runmatwasm_telemetryConsent: (a: number) => number;
17
21
  export const runmatwasm_gpuStatus: (a: number) => [number, number, number];
18
22
  export const runmatwasm_telemetryClientId: (a: number) => [number, number];
@@ -32,6 +36,7 @@ export const presentFigureOnSurface: (a: number, b: number) => [number, number];
32
36
  export const handlePlotSurfaceEvent: (a: number, b: any) => [number, number];
33
37
  export const fitPlotSurfaceExtents: (a: number) => [number, number];
34
38
  export const resetPlotSurfaceCamera: (a: number) => [number, number];
39
+ export const setPlotThemeConfig: (a: any) => [number, number];
35
40
  export const configureSubplot: (a: number, b: number, c: number) => [number, number];
36
41
  export const setHoldMode: (a: any) => [number, number, number];
37
42
  export const clearFigure: (a: any) => [number, number, number];
@@ -61,7 +66,8 @@ export const __wbindgen_export_4: WebAssembly.Table;
61
66
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
62
67
  export const __wbindgen_export_6: WebAssembly.Table;
63
68
  export const __externref_table_dealloc: (a: number) => void;
64
- export const closure5831_externref_shim: (a: number, b: number, c: any) => void;
65
- export const closure5837_externref_shim: (a: number, b: number, c: any) => void;
66
- export const closure5881_externref_shim: (a: number, b: number, c: any, d: any) => void;
69
+ export const closure2518_externref_shim: (a: number, b: number, c: any) => void;
70
+ export const closure6143_externref_shim: (a: number, b: number, c: any) => void;
71
+ export const closure6149_externref_shim: (a: number, b: number, c: any) => void;
72
+ export const closure6193_externref_shim: (a: number, b: number, c: any, d: any) => void;
67
73
  export const __wbindgen_start: () => void;
@@ -16,6 +16,7 @@ export function presentFigureOnSurface(surface_id: number, handle: number): void
16
16
  export function handlePlotSurfaceEvent(surface_id: number, event: any): void;
17
17
  export function fitPlotSurfaceExtents(surface_id: number): void;
18
18
  export function resetPlotSurfaceCamera(surface_id: number): void;
19
+ export function setPlotThemeConfig(theme: any): void;
19
20
  export function newFigureHandle(): number;
20
21
  export function selectFigure(handle: number): void;
21
22
  export function currentFigureHandle(): number;
@@ -52,6 +53,10 @@ export class RunMatWasm {
52
53
  materializeVariable(selector: any, options: any): Promise<any>;
53
54
  stats(): any;
54
55
  clearWorkspace(): void;
56
+ exportWorkspaceState(include_variables?: string | null): Promise<Uint8Array | undefined>;
57
+ importWorkspaceState(state: Uint8Array): boolean;
58
+ exportFigureScene(handle: number): Uint8Array | undefined;
59
+ importFigureScene(scene: Uint8Array): number | undefined;
55
60
  telemetryConsent(): boolean;
56
61
  gpuStatus(): any;
57
62
  telemetryClientId(): string | undefined;
@@ -75,6 +80,10 @@ export interface InitOutput {
75
80
  readonly runmatwasm_materializeVariable: (a: number, b: any, c: any) => any;
76
81
  readonly runmatwasm_stats: (a: number) => [number, number, number];
77
82
  readonly runmatwasm_clearWorkspace: (a: number) => void;
83
+ readonly runmatwasm_exportWorkspaceState: (a: number, b: number, c: number) => any;
84
+ readonly runmatwasm_importWorkspaceState: (a: number, b: number, c: number) => [number, number, number];
85
+ readonly runmatwasm_exportFigureScene: (a: number, b: number) => [number, number, number, number];
86
+ readonly runmatwasm_importFigureScene: (a: number, b: number, c: number) => [number, number, number];
78
87
  readonly runmatwasm_telemetryConsent: (a: number) => number;
79
88
  readonly runmatwasm_gpuStatus: (a: number) => [number, number, number];
80
89
  readonly runmatwasm_telemetryClientId: (a: number) => [number, number];
@@ -94,6 +103,7 @@ export interface InitOutput {
94
103
  readonly handlePlotSurfaceEvent: (a: number, b: any) => [number, number];
95
104
  readonly fitPlotSurfaceExtents: (a: number) => [number, number];
96
105
  readonly resetPlotSurfaceCamera: (a: number) => [number, number];
106
+ readonly setPlotThemeConfig: (a: any) => [number, number];
97
107
  readonly configureSubplot: (a: number, b: number, c: number) => [number, number];
98
108
  readonly setHoldMode: (a: any) => [number, number, number];
99
109
  readonly clearFigure: (a: any) => [number, number, number];
@@ -123,9 +133,10 @@ export interface InitOutput {
123
133
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
124
134
  readonly __wbindgen_export_6: WebAssembly.Table;
125
135
  readonly __externref_table_dealloc: (a: number) => void;
126
- readonly closure5831_externref_shim: (a: number, b: number, c: any) => void;
127
- readonly closure5837_externref_shim: (a: number, b: number, c: any) => void;
128
- readonly closure5881_externref_shim: (a: number, b: number, c: any, d: any) => void;
136
+ readonly closure2518_externref_shim: (a: number, b: number, c: any) => void;
137
+ readonly closure6143_externref_shim: (a: number, b: number, c: any) => void;
138
+ readonly closure6149_externref_shim: (a: number, b: number, c: any) => void;
139
+ readonly closure6193_externref_shim: (a: number, b: number, c: any, d: any) => void;
129
140
  readonly __wbindgen_start: () => void;
130
141
  }
131
142