runmat 0.2.17 → 0.2.19
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/artifacts/stdlib.snapshot +0 -0
- package/dist/index.d.ts +58 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +119 -2
- package/dist/index.js.map +1 -1
- package/dist/lsp/runmat_lsp.d.ts +2 -2
- package/dist/lsp/runmat_lsp.js +14 -6
- package/dist/lsp/runmat_lsp_bg.wasm +0 -0
- package/dist/lsp/runmat_lsp_bg.wasm.d.ts +2 -2
- package/dist/pkg/runmat_wasm.d.ts +7 -0
- package/dist/pkg/runmat_wasm_bg.js +242 -11
- package/dist/pkg/runmat_wasm_bg.wasm +0 -0
- package/dist/pkg/runmat_wasm_bg.wasm.d.ts +11 -3
- package/dist/pkg-web/runmat_wasm_web.d.ts +18 -3
- package/dist/pkg-web/runmat_wasm_web.js +220 -11
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +11 -3
- package/dist/replay/scene-resolver.d.ts +12 -0
- package/dist/replay/scene-resolver.d.ts.map +1 -0
- package/dist/replay/scene-resolver.js +168 -0
- package/dist/replay/scene-resolver.js.map +1 -0
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +1 -1
|
@@ -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,39 @@ export function resetPlotSurfaceCamera(surface_id) {
|
|
|
384
391
|
}
|
|
385
392
|
}
|
|
386
393
|
|
|
394
|
+
/**
|
|
395
|
+
* @param {number} surface_id
|
|
396
|
+
* @returns {any}
|
|
397
|
+
*/
|
|
398
|
+
export function getPlotSurfaceCameraState(surface_id) {
|
|
399
|
+
const ret = wasm.getPlotSurfaceCameraState(surface_id);
|
|
400
|
+
if (ret[2]) {
|
|
401
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
402
|
+
}
|
|
403
|
+
return takeFromExternrefTable0(ret[0]);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @param {number} surface_id
|
|
408
|
+
* @param {any} state
|
|
409
|
+
*/
|
|
410
|
+
export function setPlotSurfaceCameraState(surface_id, state) {
|
|
411
|
+
const ret = wasm.setPlotSurfaceCameraState(surface_id, state);
|
|
412
|
+
if (ret[1]) {
|
|
413
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* @param {any} theme
|
|
419
|
+
*/
|
|
420
|
+
export function setPlotThemeConfig(theme) {
|
|
421
|
+
const ret = wasm.setPlotThemeConfig(theme);
|
|
422
|
+
if (ret[1]) {
|
|
423
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
387
427
|
/**
|
|
388
428
|
* @returns {number}
|
|
389
429
|
*/
|
|
@@ -570,16 +610,20 @@ export function initRunMat(options) {
|
|
|
570
610
|
return ret;
|
|
571
611
|
}
|
|
572
612
|
|
|
573
|
-
function
|
|
574
|
-
wasm.
|
|
613
|
+
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
614
|
+
wasm.closure2548_externref_shim(arg0, arg1, arg2);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
618
|
+
wasm.closure6414_externref_shim(arg0, arg1, arg2);
|
|
575
619
|
}
|
|
576
620
|
|
|
577
|
-
function
|
|
578
|
-
wasm.
|
|
621
|
+
function __wbg_adapter_62(arg0, arg1, arg2) {
|
|
622
|
+
wasm.closure6420_externref_shim(arg0, arg1, arg2);
|
|
579
623
|
}
|
|
580
624
|
|
|
581
|
-
function
|
|
582
|
-
wasm.
|
|
625
|
+
function __wbg_adapter_613(arg0, arg1, arg2, arg3) {
|
|
626
|
+
wasm.closure6464_externref_shim(arg0, arg1, arg2, arg3);
|
|
583
627
|
}
|
|
584
628
|
|
|
585
629
|
const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
|
|
@@ -588,6 +632,8 @@ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
|
588
632
|
|
|
589
633
|
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
634
|
|
|
635
|
+
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
636
|
+
|
|
591
637
|
const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
|
|
592
638
|
|
|
593
639
|
const RunMatWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -696,6 +742,58 @@ export class RunMatWasm {
|
|
|
696
742
|
clearWorkspace() {
|
|
697
743
|
wasm.runmatwasm_clearWorkspace(this.__wbg_ptr);
|
|
698
744
|
}
|
|
745
|
+
/**
|
|
746
|
+
* @param {string | null} [include_variables]
|
|
747
|
+
* @returns {Promise<Uint8Array | undefined>}
|
|
748
|
+
*/
|
|
749
|
+
exportWorkspaceState(include_variables) {
|
|
750
|
+
var ptr0 = isLikeNone(include_variables) ? 0 : passStringToWasm0(include_variables, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
751
|
+
var len0 = WASM_VECTOR_LEN;
|
|
752
|
+
const ret = wasm.runmatwasm_exportWorkspaceState(this.__wbg_ptr, ptr0, len0);
|
|
753
|
+
return ret;
|
|
754
|
+
}
|
|
755
|
+
/**
|
|
756
|
+
* @param {Uint8Array} state
|
|
757
|
+
* @returns {boolean}
|
|
758
|
+
*/
|
|
759
|
+
importWorkspaceState(state) {
|
|
760
|
+
const ptr0 = passArray8ToWasm0(state, wasm.__wbindgen_malloc);
|
|
761
|
+
const len0 = WASM_VECTOR_LEN;
|
|
762
|
+
const ret = wasm.runmatwasm_importWorkspaceState(this.__wbg_ptr, ptr0, len0);
|
|
763
|
+
if (ret[2]) {
|
|
764
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
765
|
+
}
|
|
766
|
+
return ret[0] !== 0;
|
|
767
|
+
}
|
|
768
|
+
/**
|
|
769
|
+
* @param {number} handle
|
|
770
|
+
* @returns {Uint8Array | undefined}
|
|
771
|
+
*/
|
|
772
|
+
exportFigureScene(handle) {
|
|
773
|
+
const ret = wasm.runmatwasm_exportFigureScene(this.__wbg_ptr, handle);
|
|
774
|
+
if (ret[3]) {
|
|
775
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
776
|
+
}
|
|
777
|
+
let v1;
|
|
778
|
+
if (ret[0] !== 0) {
|
|
779
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
780
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
781
|
+
}
|
|
782
|
+
return v1;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* @param {Uint8Array} scene
|
|
786
|
+
* @returns {number | undefined}
|
|
787
|
+
*/
|
|
788
|
+
importFigureScene(scene) {
|
|
789
|
+
const ptr0 = passArray8ToWasm0(scene, wasm.__wbindgen_malloc);
|
|
790
|
+
const len0 = WASM_VECTOR_LEN;
|
|
791
|
+
const ret = wasm.runmatwasm_importFigureScene(this.__wbg_ptr, ptr0, len0);
|
|
792
|
+
if (ret[2]) {
|
|
793
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
794
|
+
}
|
|
795
|
+
return ret[0] === 0x100000001 ? undefined : ret[0];
|
|
796
|
+
}
|
|
699
797
|
/**
|
|
700
798
|
* @returns {boolean}
|
|
701
799
|
*/
|
|
@@ -820,6 +918,11 @@ export function __wbg_configure_3545afac230e1d5e(arg0, arg1) {
|
|
|
820
918
|
arg0.configure(arg1);
|
|
821
919
|
};
|
|
822
920
|
|
|
921
|
+
export function __wbg_contains_b952b06daf857803(arg0, arg1, arg2) {
|
|
922
|
+
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
923
|
+
return ret;
|
|
924
|
+
};
|
|
925
|
+
|
|
823
926
|
export function __wbg_copyBufferToBuffer_1339da3175db86a8(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
824
927
|
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
825
928
|
};
|
|
@@ -865,6 +968,11 @@ export function __wbg_createComputePipeline_4bf93ff2c10c2333(arg0, arg1) {
|
|
|
865
968
|
return ret;
|
|
866
969
|
};
|
|
867
970
|
|
|
971
|
+
export function __wbg_createObjectStore_e566459f7161f82f() { return handleError(function (arg0, arg1, arg2) {
|
|
972
|
+
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2));
|
|
973
|
+
return ret;
|
|
974
|
+
}, arguments) };
|
|
975
|
+
|
|
868
976
|
export function __wbg_createPipelineLayout_669f14789cde7273(arg0, arg1) {
|
|
869
977
|
const ret = arg0.createPipelineLayout(arg1);
|
|
870
978
|
return ret;
|
|
@@ -980,6 +1088,11 @@ export function __wbg_end_9cc33f189e27f3fd(arg0) {
|
|
|
980
1088
|
arg0.end();
|
|
981
1089
|
};
|
|
982
1090
|
|
|
1091
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
1092
|
+
const ret = Object.entries(arg0);
|
|
1093
|
+
return ret;
|
|
1094
|
+
};
|
|
1095
|
+
|
|
983
1096
|
export function __wbg_error_15b28e2be7953dc9(arg0) {
|
|
984
1097
|
const ret = arg0.error;
|
|
985
1098
|
return ret;
|
|
@@ -1001,6 +1114,11 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
1001
1114
|
}
|
|
1002
1115
|
};
|
|
1003
1116
|
|
|
1117
|
+
export function __wbg_error_ff4ddaabdfc5dbb3() { return handleError(function (arg0) {
|
|
1118
|
+
const ret = arg0.error;
|
|
1119
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1120
|
+
}, arguments) };
|
|
1121
|
+
|
|
1004
1122
|
export function __wbg_executeBundles_db3c31afbf86979f(arg0, arg1) {
|
|
1005
1123
|
arg0.executeBundles(arg1);
|
|
1006
1124
|
};
|
|
@@ -1106,6 +1224,11 @@ export function __wbg_getReader_be0d36e5873a525b(arg0) {
|
|
|
1106
1224
|
return ret;
|
|
1107
1225
|
};
|
|
1108
1226
|
|
|
1227
|
+
export function __wbg_getTime_46267b1c24877e30(arg0) {
|
|
1228
|
+
const ret = arg0.getTime();
|
|
1229
|
+
return ret;
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1109
1232
|
export function __wbg_getTimezoneOffset_6b5752021c499c47(arg0) {
|
|
1110
1233
|
const ret = arg0.getTimezoneOffset();
|
|
1111
1234
|
return ret;
|
|
@@ -1116,6 +1239,11 @@ export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0
|
|
|
1116
1239
|
return ret;
|
|
1117
1240
|
}, arguments) };
|
|
1118
1241
|
|
|
1242
|
+
export function __wbg_get_8da03f81f6a1111e() { return handleError(function (arg0, arg1) {
|
|
1243
|
+
const ret = arg0.get(arg1);
|
|
1244
|
+
return ret;
|
|
1245
|
+
}, arguments) };
|
|
1246
|
+
|
|
1119
1247
|
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
1120
1248
|
const ret = arg0[arg1 >>> 0];
|
|
1121
1249
|
return ret;
|
|
@@ -1233,6 +1361,50 @@ export function __wbg_instanceof_HtmlCanvasElement_2ea67072a7624ac5(arg0) {
|
|
|
1233
1361
|
return ret;
|
|
1234
1362
|
};
|
|
1235
1363
|
|
|
1364
|
+
export function __wbg_instanceof_IdbDatabase_a3ef009ca00059f9(arg0) {
|
|
1365
|
+
let result;
|
|
1366
|
+
try {
|
|
1367
|
+
result = arg0 instanceof IDBDatabase;
|
|
1368
|
+
} catch (_) {
|
|
1369
|
+
result = false;
|
|
1370
|
+
}
|
|
1371
|
+
const ret = result;
|
|
1372
|
+
return ret;
|
|
1373
|
+
};
|
|
1374
|
+
|
|
1375
|
+
export function __wbg_instanceof_IdbFactory_12eaba3366f4302f(arg0) {
|
|
1376
|
+
let result;
|
|
1377
|
+
try {
|
|
1378
|
+
result = arg0 instanceof IDBFactory;
|
|
1379
|
+
} catch (_) {
|
|
1380
|
+
result = false;
|
|
1381
|
+
}
|
|
1382
|
+
const ret = result;
|
|
1383
|
+
return ret;
|
|
1384
|
+
};
|
|
1385
|
+
|
|
1386
|
+
export function __wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893(arg0) {
|
|
1387
|
+
let result;
|
|
1388
|
+
try {
|
|
1389
|
+
result = arg0 instanceof IDBOpenDBRequest;
|
|
1390
|
+
} catch (_) {
|
|
1391
|
+
result = false;
|
|
1392
|
+
}
|
|
1393
|
+
const ret = result;
|
|
1394
|
+
return ret;
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
1398
|
+
let result;
|
|
1399
|
+
try {
|
|
1400
|
+
result = arg0 instanceof Map;
|
|
1401
|
+
} catch (_) {
|
|
1402
|
+
result = false;
|
|
1403
|
+
}
|
|
1404
|
+
const ret = result;
|
|
1405
|
+
return ret;
|
|
1406
|
+
};
|
|
1407
|
+
|
|
1236
1408
|
export function __wbg_instanceof_Memory_111add5588accff2(arg0) {
|
|
1237
1409
|
let result;
|
|
1238
1410
|
try {
|
|
@@ -1575,7 +1747,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1575
1747
|
const a = state0.a;
|
|
1576
1748
|
state0.a = 0;
|
|
1577
1749
|
try {
|
|
1578
|
-
return
|
|
1750
|
+
return __wbg_adapter_613(a, state0.b, arg0, arg1);
|
|
1579
1751
|
} finally {
|
|
1580
1752
|
state0.a = a;
|
|
1581
1753
|
}
|
|
@@ -1672,6 +1844,16 @@ export function __wbg_now_d18023d54d4e5500(arg0) {
|
|
|
1672
1844
|
return ret;
|
|
1673
1845
|
};
|
|
1674
1846
|
|
|
1847
|
+
export function __wbg_objectStoreNames_9bb1ab04a7012aaf(arg0) {
|
|
1848
|
+
const ret = arg0.objectStoreNames;
|
|
1849
|
+
return ret;
|
|
1850
|
+
};
|
|
1851
|
+
|
|
1852
|
+
export function __wbg_objectStore_21878d46d25b64b6() { return handleError(function (arg0, arg1, arg2) {
|
|
1853
|
+
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
|
1854
|
+
return ret;
|
|
1855
|
+
}, arguments) };
|
|
1856
|
+
|
|
1675
1857
|
export function __wbg_ok_3aaf32d069979723(arg0) {
|
|
1676
1858
|
const ret = arg0.ok;
|
|
1677
1859
|
return ret;
|
|
@@ -1686,6 +1868,11 @@ export function __wbg_open_6c3f5ef5a0204c5d() { return handleError(function (arg
|
|
|
1686
1868
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1687
1869
|
}, arguments) };
|
|
1688
1870
|
|
|
1871
|
+
export function __wbg_open_e0c0b2993eb596e1() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1872
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
1873
|
+
return ret;
|
|
1874
|
+
}, arguments) };
|
|
1875
|
+
|
|
1689
1876
|
export function __wbg_parse_def2e24ef1252aff() { return handleError(function (arg0, arg1) {
|
|
1690
1877
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1691
1878
|
return ret;
|
|
@@ -1715,6 +1902,11 @@ export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
|
|
|
1715
1902
|
return ret;
|
|
1716
1903
|
};
|
|
1717
1904
|
|
|
1905
|
+
export function __wbg_put_066faa31a6a88f5b() { return handleError(function (arg0, arg1, arg2) {
|
|
1906
|
+
const ret = arg0.put(arg1, arg2);
|
|
1907
|
+
return ret;
|
|
1908
|
+
}, arguments) };
|
|
1909
|
+
|
|
1718
1910
|
export function __wbg_querySelectorAll_40998fd748f057ef() { return handleError(function (arg0, arg1, arg2) {
|
|
1719
1911
|
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1720
1912
|
return ret;
|
|
@@ -1777,6 +1969,11 @@ export function __wbg_response_49e10f8ee7f418db() { return handleError(function
|
|
|
1777
1969
|
return ret;
|
|
1778
1970
|
}, arguments) };
|
|
1779
1971
|
|
|
1972
|
+
export function __wbg_result_f29afabdf2c05826() { return handleError(function (arg0) {
|
|
1973
|
+
const ret = arg0.result;
|
|
1974
|
+
return ret;
|
|
1975
|
+
}, arguments) };
|
|
1976
|
+
|
|
1780
1977
|
export function __wbg_runmatwasm_new(arg0) {
|
|
1781
1978
|
const ret = RunMatWasm.__wrap(arg0);
|
|
1782
1979
|
return ret;
|
|
@@ -1908,10 +2105,22 @@ export function __wbg_setheight_da683a33fa99843c(arg0, arg1) {
|
|
|
1908
2105
|
arg0.height = arg1 >>> 0;
|
|
1909
2106
|
};
|
|
1910
2107
|
|
|
2108
|
+
export function __wbg_setonerror_d7e3056cc6e56085(arg0, arg1) {
|
|
2109
|
+
arg0.onerror = arg1;
|
|
2110
|
+
};
|
|
2111
|
+
|
|
2112
|
+
export function __wbg_setonsuccess_afa464ee777a396d(arg0, arg1) {
|
|
2113
|
+
arg0.onsuccess = arg1;
|
|
2114
|
+
};
|
|
2115
|
+
|
|
1911
2116
|
export function __wbg_setonuncapturederror_daf12032b2ca712a(arg0, arg1) {
|
|
1912
2117
|
arg0.onuncapturederror = arg1;
|
|
1913
2118
|
};
|
|
1914
2119
|
|
|
2120
|
+
export function __wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f(arg0, arg1) {
|
|
2121
|
+
arg0.onupgradeneeded = arg1;
|
|
2122
|
+
};
|
|
2123
|
+
|
|
1915
2124
|
export function __wbg_setresponseType_4267195f737262d5(arg0, arg1) {
|
|
1916
2125
|
arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
1917
2126
|
};
|
|
@@ -1988,6 +2197,11 @@ export function __wbg_submit_75592557e0c2141c(arg0, arg1) {
|
|
|
1988
2197
|
arg0.submit(arg1);
|
|
1989
2198
|
};
|
|
1990
2199
|
|
|
2200
|
+
export function __wbg_target_0a62d9d79a2a1ede(arg0) {
|
|
2201
|
+
const ret = arg0.target;
|
|
2202
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2203
|
+
};
|
|
2204
|
+
|
|
1991
2205
|
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
1992
2206
|
const ret = arg0.then(arg1);
|
|
1993
2207
|
return ret;
|
|
@@ -2003,6 +2217,11 @@ export function __wbg_toISOString_b015155a5a6fe219(arg0) {
|
|
|
2003
2217
|
return ret;
|
|
2004
2218
|
};
|
|
2005
2219
|
|
|
2220
|
+
export function __wbg_transaction_babc423936946a37() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2221
|
+
const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
|
|
2222
|
+
return ret;
|
|
2223
|
+
}, arguments) };
|
|
2224
|
+
|
|
2006
2225
|
export function __wbg_unmap_662f1210575affe8(arg0) {
|
|
2007
2226
|
arg0.unmap();
|
|
2008
2227
|
};
|
|
@@ -2092,13 +2311,18 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
2092
2311
|
return ret;
|
|
2093
2312
|
};
|
|
2094
2313
|
|
|
2095
|
-
export function
|
|
2096
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2314
|
+
export function __wbindgen_closure_wrapper19097(arg0, arg1, arg2) {
|
|
2315
|
+
const ret = makeMutClosure(arg0, arg1, 6415, __wbg_adapter_59);
|
|
2097
2316
|
return ret;
|
|
2098
2317
|
};
|
|
2099
2318
|
|
|
2100
|
-
export function
|
|
2101
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2319
|
+
export function __wbindgen_closure_wrapper19514(arg0, arg1, arg2) {
|
|
2320
|
+
const ret = makeMutClosure(arg0, arg1, 6421, __wbg_adapter_62);
|
|
2321
|
+
return ret;
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
export function __wbindgen_closure_wrapper5356(arg0, arg1, arg2) {
|
|
2325
|
+
const ret = makeMutClosure(arg0, arg1, 2549, __wbg_adapter_56);
|
|
2102
2326
|
return ret;
|
|
2103
2327
|
};
|
|
2104
2328
|
|
|
@@ -2207,3 +2431,10 @@ export function __wbindgen_throw(arg0, arg1) {
|
|
|
2207
2431
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2208
2432
|
};
|
|
2209
2433
|
|
|
2434
|
+
export function __wbindgen_uint8_array_new(arg0, arg1) {
|
|
2435
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2436
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2437
|
+
const ret = v0;
|
|
2438
|
+
return ret;
|
|
2439
|
+
};
|
|
2440
|
+
|
|
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,9 @@ 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 getPlotSurfaceCameraState: (a: number) => [number, number, number];
|
|
40
|
+
export const setPlotSurfaceCameraState: (a: number, b: any) => [number, number];
|
|
41
|
+
export const setPlotThemeConfig: (a: any) => [number, number];
|
|
35
42
|
export const configureSubplot: (a: number, b: number, c: number) => [number, number];
|
|
36
43
|
export const setHoldMode: (a: any) => [number, number, number];
|
|
37
44
|
export const clearFigure: (a: any) => [number, number, number];
|
|
@@ -61,7 +68,8 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
61
68
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
62
69
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
63
70
|
export const __externref_table_dealloc: (a: number) => void;
|
|
64
|
-
export const
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
71
|
+
export const closure2548_externref_shim: (a: number, b: number, c: any) => void;
|
|
72
|
+
export const closure6414_externref_shim: (a: number, b: number, c: any) => void;
|
|
73
|
+
export const closure6420_externref_shim: (a: number, b: number, c: any) => void;
|
|
74
|
+
export const closure6464_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
67
75
|
export const __wbindgen_start: () => void;
|
|
@@ -16,6 +16,9 @@ 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 getPlotSurfaceCameraState(surface_id: number): any;
|
|
20
|
+
export function setPlotSurfaceCameraState(surface_id: number, state: any): void;
|
|
21
|
+
export function setPlotThemeConfig(theme: any): void;
|
|
19
22
|
export function newFigureHandle(): number;
|
|
20
23
|
export function selectFigure(handle: number): void;
|
|
21
24
|
export function currentFigureHandle(): number;
|
|
@@ -52,6 +55,10 @@ export class RunMatWasm {
|
|
|
52
55
|
materializeVariable(selector: any, options: any): Promise<any>;
|
|
53
56
|
stats(): any;
|
|
54
57
|
clearWorkspace(): void;
|
|
58
|
+
exportWorkspaceState(include_variables?: string | null): Promise<Uint8Array | undefined>;
|
|
59
|
+
importWorkspaceState(state: Uint8Array): boolean;
|
|
60
|
+
exportFigureScene(handle: number): Uint8Array | undefined;
|
|
61
|
+
importFigureScene(scene: Uint8Array): number | undefined;
|
|
55
62
|
telemetryConsent(): boolean;
|
|
56
63
|
gpuStatus(): any;
|
|
57
64
|
telemetryClientId(): string | undefined;
|
|
@@ -75,6 +82,10 @@ export interface InitOutput {
|
|
|
75
82
|
readonly runmatwasm_materializeVariable: (a: number, b: any, c: any) => any;
|
|
76
83
|
readonly runmatwasm_stats: (a: number) => [number, number, number];
|
|
77
84
|
readonly runmatwasm_clearWorkspace: (a: number) => void;
|
|
85
|
+
readonly runmatwasm_exportWorkspaceState: (a: number, b: number, c: number) => any;
|
|
86
|
+
readonly runmatwasm_importWorkspaceState: (a: number, b: number, c: number) => [number, number, number];
|
|
87
|
+
readonly runmatwasm_exportFigureScene: (a: number, b: number) => [number, number, number, number];
|
|
88
|
+
readonly runmatwasm_importFigureScene: (a: number, b: number, c: number) => [number, number, number];
|
|
78
89
|
readonly runmatwasm_telemetryConsent: (a: number) => number;
|
|
79
90
|
readonly runmatwasm_gpuStatus: (a: number) => [number, number, number];
|
|
80
91
|
readonly runmatwasm_telemetryClientId: (a: number) => [number, number];
|
|
@@ -94,6 +105,9 @@ export interface InitOutput {
|
|
|
94
105
|
readonly handlePlotSurfaceEvent: (a: number, b: any) => [number, number];
|
|
95
106
|
readonly fitPlotSurfaceExtents: (a: number) => [number, number];
|
|
96
107
|
readonly resetPlotSurfaceCamera: (a: number) => [number, number];
|
|
108
|
+
readonly getPlotSurfaceCameraState: (a: number) => [number, number, number];
|
|
109
|
+
readonly setPlotSurfaceCameraState: (a: number, b: any) => [number, number];
|
|
110
|
+
readonly setPlotThemeConfig: (a: any) => [number, number];
|
|
97
111
|
readonly configureSubplot: (a: number, b: number, c: number) => [number, number];
|
|
98
112
|
readonly setHoldMode: (a: any) => [number, number, number];
|
|
99
113
|
readonly clearFigure: (a: any) => [number, number, number];
|
|
@@ -123,9 +137,10 @@ export interface InitOutput {
|
|
|
123
137
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
124
138
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
125
139
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
140
|
+
readonly closure2548_externref_shim: (a: number, b: number, c: any) => void;
|
|
141
|
+
readonly closure6414_externref_shim: (a: number, b: number, c: any) => void;
|
|
142
|
+
readonly closure6420_externref_shim: (a: number, b: number, c: any) => void;
|
|
143
|
+
readonly closure6464_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
129
144
|
readonly __wbindgen_start: () => void;
|
|
130
145
|
}
|
|
131
146
|
|