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.
- package/README.md +2 -2
- package/artifacts/stdlib.snapshot +0 -0
- package/dist/index.d.ts +26 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +108 -2
- package/dist/index.js.map +1 -1
- package/dist/lsp/runmat_lsp.d.ts +2 -2
- package/dist/lsp/runmat_lsp.js +4 -4
- 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 +5 -0
- package/dist/pkg/runmat_wasm_bg.js +208 -11
- package/dist/pkg/runmat_wasm_bg.wasm +0 -0
- package/dist/pkg/runmat_wasm_bg.wasm.d.ts +9 -3
- package/dist/pkg-web/runmat_wasm_web.d.ts +14 -3
- package/dist/pkg-web/runmat_wasm_web.js +187 -11
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +9 -3
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +4 -3
|
@@ -222,6 +222,13 @@ function takeFromExternrefTable0(idx) {
|
|
|
222
222
|
wasm.__externref_table_dealloc(idx);
|
|
223
223
|
return value;
|
|
224
224
|
}
|
|
225
|
+
|
|
226
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
227
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
228
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
229
|
+
WASM_VECTOR_LEN = arg.length;
|
|
230
|
+
return ptr;
|
|
231
|
+
}
|
|
225
232
|
/**
|
|
226
233
|
* @param {any} bindings
|
|
227
234
|
*/
|
|
@@ -376,6 +383,16 @@ export function resetPlotSurfaceCamera(surface_id) {
|
|
|
376
383
|
}
|
|
377
384
|
}
|
|
378
385
|
|
|
386
|
+
/**
|
|
387
|
+
* @param {any} theme
|
|
388
|
+
*/
|
|
389
|
+
export function setPlotThemeConfig(theme) {
|
|
390
|
+
const ret = wasm.setPlotThemeConfig(theme);
|
|
391
|
+
if (ret[1]) {
|
|
392
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
379
396
|
/**
|
|
380
397
|
* @returns {number}
|
|
381
398
|
*/
|
|
@@ -562,16 +579,20 @@ export function initRunMat(options) {
|
|
|
562
579
|
return ret;
|
|
563
580
|
}
|
|
564
581
|
|
|
565
|
-
function
|
|
566
|
-
wasm.
|
|
582
|
+
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
583
|
+
wasm.closure2518_externref_shim(arg0, arg1, arg2);
|
|
567
584
|
}
|
|
568
585
|
|
|
569
|
-
function
|
|
570
|
-
wasm.
|
|
586
|
+
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
587
|
+
wasm.closure6143_externref_shim(arg0, arg1, arg2);
|
|
571
588
|
}
|
|
572
589
|
|
|
573
|
-
function
|
|
574
|
-
wasm.
|
|
590
|
+
function __wbg_adapter_62(arg0, arg1, arg2) {
|
|
591
|
+
wasm.closure6149_externref_shim(arg0, arg1, arg2);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
function __wbg_adapter_609(arg0, arg1, arg2, arg3) {
|
|
595
|
+
wasm.closure6193_externref_shim(arg0, arg1, arg2, arg3);
|
|
575
596
|
}
|
|
576
597
|
|
|
577
598
|
const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
|
|
@@ -580,6 +601,8 @@ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
|
|
|
580
601
|
|
|
581
602
|
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"];
|
|
582
603
|
|
|
604
|
+
const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
|
605
|
+
|
|
583
606
|
const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
|
|
584
607
|
|
|
585
608
|
const RunMatWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -688,6 +711,58 @@ export class RunMatWasm {
|
|
|
688
711
|
clearWorkspace() {
|
|
689
712
|
wasm.runmatwasm_clearWorkspace(this.__wbg_ptr);
|
|
690
713
|
}
|
|
714
|
+
/**
|
|
715
|
+
* @param {string | null} [include_variables]
|
|
716
|
+
* @returns {Promise<Uint8Array | undefined>}
|
|
717
|
+
*/
|
|
718
|
+
exportWorkspaceState(include_variables) {
|
|
719
|
+
var ptr0 = isLikeNone(include_variables) ? 0 : passStringToWasm0(include_variables, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
720
|
+
var len0 = WASM_VECTOR_LEN;
|
|
721
|
+
const ret = wasm.runmatwasm_exportWorkspaceState(this.__wbg_ptr, ptr0, len0);
|
|
722
|
+
return ret;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* @param {Uint8Array} state
|
|
726
|
+
* @returns {boolean}
|
|
727
|
+
*/
|
|
728
|
+
importWorkspaceState(state) {
|
|
729
|
+
const ptr0 = passArray8ToWasm0(state, wasm.__wbindgen_malloc);
|
|
730
|
+
const len0 = WASM_VECTOR_LEN;
|
|
731
|
+
const ret = wasm.runmatwasm_importWorkspaceState(this.__wbg_ptr, ptr0, len0);
|
|
732
|
+
if (ret[2]) {
|
|
733
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
734
|
+
}
|
|
735
|
+
return ret[0] !== 0;
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* @param {number} handle
|
|
739
|
+
* @returns {Uint8Array | undefined}
|
|
740
|
+
*/
|
|
741
|
+
exportFigureScene(handle) {
|
|
742
|
+
const ret = wasm.runmatwasm_exportFigureScene(this.__wbg_ptr, handle);
|
|
743
|
+
if (ret[3]) {
|
|
744
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
745
|
+
}
|
|
746
|
+
let v1;
|
|
747
|
+
if (ret[0] !== 0) {
|
|
748
|
+
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
749
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
750
|
+
}
|
|
751
|
+
return v1;
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* @param {Uint8Array} scene
|
|
755
|
+
* @returns {number | undefined}
|
|
756
|
+
*/
|
|
757
|
+
importFigureScene(scene) {
|
|
758
|
+
const ptr0 = passArray8ToWasm0(scene, wasm.__wbindgen_malloc);
|
|
759
|
+
const len0 = WASM_VECTOR_LEN;
|
|
760
|
+
const ret = wasm.runmatwasm_importFigureScene(this.__wbg_ptr, ptr0, len0);
|
|
761
|
+
if (ret[2]) {
|
|
762
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
763
|
+
}
|
|
764
|
+
return ret[0] === 0x100000001 ? undefined : ret[0];
|
|
765
|
+
}
|
|
691
766
|
/**
|
|
692
767
|
* @returns {boolean}
|
|
693
768
|
*/
|
|
@@ -830,6 +905,10 @@ function __wbg_get_imports() {
|
|
|
830
905
|
imports.wbg.__wbg_configure_3545afac230e1d5e = function(arg0, arg1) {
|
|
831
906
|
arg0.configure(arg1);
|
|
832
907
|
};
|
|
908
|
+
imports.wbg.__wbg_contains_b952b06daf857803 = function(arg0, arg1, arg2) {
|
|
909
|
+
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
910
|
+
return ret;
|
|
911
|
+
};
|
|
833
912
|
imports.wbg.__wbg_copyBufferToBuffer_1339da3175db86a8 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
834
913
|
arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
|
|
835
914
|
};
|
|
@@ -865,6 +944,10 @@ function __wbg_get_imports() {
|
|
|
865
944
|
const ret = arg0.createComputePipeline(arg1);
|
|
866
945
|
return ret;
|
|
867
946
|
};
|
|
947
|
+
imports.wbg.__wbg_createObjectStore_e566459f7161f82f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
948
|
+
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2));
|
|
949
|
+
return ret;
|
|
950
|
+
}, arguments) };
|
|
868
951
|
imports.wbg.__wbg_createPipelineLayout_669f14789cde7273 = function(arg0, arg1) {
|
|
869
952
|
const ret = arg0.createPipelineLayout(arg1);
|
|
870
953
|
return ret;
|
|
@@ -954,6 +1037,10 @@ function __wbg_get_imports() {
|
|
|
954
1037
|
imports.wbg.__wbg_end_9cc33f189e27f3fd = function(arg0) {
|
|
955
1038
|
arg0.end();
|
|
956
1039
|
};
|
|
1040
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
1041
|
+
const ret = Object.entries(arg0);
|
|
1042
|
+
return ret;
|
|
1043
|
+
};
|
|
957
1044
|
imports.wbg.__wbg_error_15b28e2be7953dc9 = function(arg0) {
|
|
958
1045
|
const ret = arg0.error;
|
|
959
1046
|
return ret;
|
|
@@ -972,6 +1059,10 @@ function __wbg_get_imports() {
|
|
|
972
1059
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
973
1060
|
}
|
|
974
1061
|
};
|
|
1062
|
+
imports.wbg.__wbg_error_ff4ddaabdfc5dbb3 = function() { return handleError(function (arg0) {
|
|
1063
|
+
const ret = arg0.error;
|
|
1064
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1065
|
+
}, arguments) };
|
|
975
1066
|
imports.wbg.__wbg_executeBundles_db3c31afbf86979f = function(arg0, arg1) {
|
|
976
1067
|
arg0.executeBundles(arg1);
|
|
977
1068
|
};
|
|
@@ -1056,6 +1147,10 @@ function __wbg_get_imports() {
|
|
|
1056
1147
|
const ret = arg0.getReader();
|
|
1057
1148
|
return ret;
|
|
1058
1149
|
};
|
|
1150
|
+
imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
1151
|
+
const ret = arg0.getTime();
|
|
1152
|
+
return ret;
|
|
1153
|
+
};
|
|
1059
1154
|
imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
1060
1155
|
const ret = arg0.getTimezoneOffset();
|
|
1061
1156
|
return ret;
|
|
@@ -1064,6 +1159,10 @@ function __wbg_get_imports() {
|
|
|
1064
1159
|
const ret = Reflect.get(arg0, arg1);
|
|
1065
1160
|
return ret;
|
|
1066
1161
|
}, arguments) };
|
|
1162
|
+
imports.wbg.__wbg_get_8da03f81f6a1111e = function() { return handleError(function (arg0, arg1) {
|
|
1163
|
+
const ret = arg0.get(arg1);
|
|
1164
|
+
return ret;
|
|
1165
|
+
}, arguments) };
|
|
1067
1166
|
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
1068
1167
|
const ret = arg0[arg1 >>> 0];
|
|
1069
1168
|
return ret;
|
|
@@ -1166,6 +1265,36 @@ function __wbg_get_imports() {
|
|
|
1166
1265
|
const ret = result;
|
|
1167
1266
|
return ret;
|
|
1168
1267
|
};
|
|
1268
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_a3ef009ca00059f9 = function(arg0) {
|
|
1269
|
+
let result;
|
|
1270
|
+
try {
|
|
1271
|
+
result = arg0 instanceof IDBDatabase;
|
|
1272
|
+
} catch (_) {
|
|
1273
|
+
result = false;
|
|
1274
|
+
}
|
|
1275
|
+
const ret = result;
|
|
1276
|
+
return ret;
|
|
1277
|
+
};
|
|
1278
|
+
imports.wbg.__wbg_instanceof_IdbFactory_12eaba3366f4302f = function(arg0) {
|
|
1279
|
+
let result;
|
|
1280
|
+
try {
|
|
1281
|
+
result = arg0 instanceof IDBFactory;
|
|
1282
|
+
} catch (_) {
|
|
1283
|
+
result = false;
|
|
1284
|
+
}
|
|
1285
|
+
const ret = result;
|
|
1286
|
+
return ret;
|
|
1287
|
+
};
|
|
1288
|
+
imports.wbg.__wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893 = function(arg0) {
|
|
1289
|
+
let result;
|
|
1290
|
+
try {
|
|
1291
|
+
result = arg0 instanceof IDBOpenDBRequest;
|
|
1292
|
+
} catch (_) {
|
|
1293
|
+
result = false;
|
|
1294
|
+
}
|
|
1295
|
+
const ret = result;
|
|
1296
|
+
return ret;
|
|
1297
|
+
};
|
|
1169
1298
|
imports.wbg.__wbg_instanceof_Memory_111add5588accff2 = function(arg0) {
|
|
1170
1299
|
let result;
|
|
1171
1300
|
try {
|
|
@@ -1454,7 +1583,7 @@ function __wbg_get_imports() {
|
|
|
1454
1583
|
const a = state0.a;
|
|
1455
1584
|
state0.a = 0;
|
|
1456
1585
|
try {
|
|
1457
|
-
return
|
|
1586
|
+
return __wbg_adapter_609(a, state0.b, arg0, arg1);
|
|
1458
1587
|
} finally {
|
|
1459
1588
|
state0.a = a;
|
|
1460
1589
|
}
|
|
@@ -1533,6 +1662,14 @@ function __wbg_get_imports() {
|
|
|
1533
1662
|
const ret = arg0.now();
|
|
1534
1663
|
return ret;
|
|
1535
1664
|
};
|
|
1665
|
+
imports.wbg.__wbg_objectStoreNames_9bb1ab04a7012aaf = function(arg0) {
|
|
1666
|
+
const ret = arg0.objectStoreNames;
|
|
1667
|
+
return ret;
|
|
1668
|
+
};
|
|
1669
|
+
imports.wbg.__wbg_objectStore_21878d46d25b64b6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1670
|
+
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
|
1671
|
+
return ret;
|
|
1672
|
+
}, arguments) };
|
|
1536
1673
|
imports.wbg.__wbg_ok_3aaf32d069979723 = function(arg0) {
|
|
1537
1674
|
const ret = arg0.ok;
|
|
1538
1675
|
return ret;
|
|
@@ -1544,6 +1681,10 @@ function __wbg_get_imports() {
|
|
|
1544
1681
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1545
1682
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1546
1683
|
}, arguments) };
|
|
1684
|
+
imports.wbg.__wbg_open_e0c0b2993eb596e1 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1685
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
1686
|
+
return ret;
|
|
1687
|
+
}, arguments) };
|
|
1547
1688
|
imports.wbg.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
|
|
1548
1689
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
1549
1690
|
return ret;
|
|
@@ -1567,6 +1708,10 @@ function __wbg_get_imports() {
|
|
|
1567
1708
|
const ret = arg0.push(arg1);
|
|
1568
1709
|
return ret;
|
|
1569
1710
|
};
|
|
1711
|
+
imports.wbg.__wbg_put_066faa31a6a88f5b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1712
|
+
const ret = arg0.put(arg1, arg2);
|
|
1713
|
+
return ret;
|
|
1714
|
+
}, arguments) };
|
|
1570
1715
|
imports.wbg.__wbg_querySelectorAll_40998fd748f057ef = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1571
1716
|
const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
|
|
1572
1717
|
return ret;
|
|
@@ -1616,6 +1761,10 @@ function __wbg_get_imports() {
|
|
|
1616
1761
|
const ret = arg0.response;
|
|
1617
1762
|
return ret;
|
|
1618
1763
|
}, arguments) };
|
|
1764
|
+
imports.wbg.__wbg_result_f29afabdf2c05826 = function() { return handleError(function (arg0) {
|
|
1765
|
+
const ret = arg0.result;
|
|
1766
|
+
return ret;
|
|
1767
|
+
}, arguments) };
|
|
1619
1768
|
imports.wbg.__wbg_runmatwasm_new = function(arg0) {
|
|
1620
1769
|
const ret = RunMatWasm.__wrap(arg0);
|
|
1621
1770
|
return ret;
|
|
@@ -1715,9 +1864,18 @@ function __wbg_get_imports() {
|
|
|
1715
1864
|
imports.wbg.__wbg_setheight_da683a33fa99843c = function(arg0, arg1) {
|
|
1716
1865
|
arg0.height = arg1 >>> 0;
|
|
1717
1866
|
};
|
|
1867
|
+
imports.wbg.__wbg_setonerror_d7e3056cc6e56085 = function(arg0, arg1) {
|
|
1868
|
+
arg0.onerror = arg1;
|
|
1869
|
+
};
|
|
1870
|
+
imports.wbg.__wbg_setonsuccess_afa464ee777a396d = function(arg0, arg1) {
|
|
1871
|
+
arg0.onsuccess = arg1;
|
|
1872
|
+
};
|
|
1718
1873
|
imports.wbg.__wbg_setonuncapturederror_daf12032b2ca712a = function(arg0, arg1) {
|
|
1719
1874
|
arg0.onuncapturederror = arg1;
|
|
1720
1875
|
};
|
|
1876
|
+
imports.wbg.__wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f = function(arg0, arg1) {
|
|
1877
|
+
arg0.onupgradeneeded = arg1;
|
|
1878
|
+
};
|
|
1721
1879
|
imports.wbg.__wbg_setresponseType_4267195f737262d5 = function(arg0, arg1) {
|
|
1722
1880
|
arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
|
|
1723
1881
|
};
|
|
@@ -1779,6 +1937,10 @@ function __wbg_get_imports() {
|
|
|
1779
1937
|
imports.wbg.__wbg_submit_75592557e0c2141c = function(arg0, arg1) {
|
|
1780
1938
|
arg0.submit(arg1);
|
|
1781
1939
|
};
|
|
1940
|
+
imports.wbg.__wbg_target_0a62d9d79a2a1ede = function(arg0) {
|
|
1941
|
+
const ret = arg0.target;
|
|
1942
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1943
|
+
};
|
|
1782
1944
|
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
1783
1945
|
const ret = arg0.then(arg1);
|
|
1784
1946
|
return ret;
|
|
@@ -1791,6 +1953,10 @@ function __wbg_get_imports() {
|
|
|
1791
1953
|
const ret = arg0.toISOString();
|
|
1792
1954
|
return ret;
|
|
1793
1955
|
};
|
|
1956
|
+
imports.wbg.__wbg_transaction_babc423936946a37 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1957
|
+
const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
|
|
1958
|
+
return ret;
|
|
1959
|
+
}, arguments) };
|
|
1794
1960
|
imports.wbg.__wbg_unmap_662f1210575affe8 = function(arg0) {
|
|
1795
1961
|
arg0.unmap();
|
|
1796
1962
|
};
|
|
@@ -1863,12 +2029,16 @@ function __wbg_get_imports() {
|
|
|
1863
2029
|
const ret = false;
|
|
1864
2030
|
return ret;
|
|
1865
2031
|
};
|
|
1866
|
-
imports.wbg.
|
|
1867
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2032
|
+
imports.wbg.__wbindgen_closure_wrapper18351 = function(arg0, arg1, arg2) {
|
|
2033
|
+
const ret = makeMutClosure(arg0, arg1, 6144, __wbg_adapter_59);
|
|
2034
|
+
return ret;
|
|
2035
|
+
};
|
|
2036
|
+
imports.wbg.__wbindgen_closure_wrapper18768 = function(arg0, arg1, arg2) {
|
|
2037
|
+
const ret = makeMutClosure(arg0, arg1, 6150, __wbg_adapter_62);
|
|
1868
2038
|
return ret;
|
|
1869
2039
|
};
|
|
1870
|
-
imports.wbg.
|
|
1871
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2040
|
+
imports.wbg.__wbindgen_closure_wrapper5426 = function(arg0, arg1, arg2) {
|
|
2041
|
+
const ret = makeMutClosure(arg0, arg1, 2519, __wbg_adapter_56);
|
|
1872
2042
|
return ret;
|
|
1873
2043
|
};
|
|
1874
2044
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
@@ -1958,6 +2128,12 @@ function __wbg_get_imports() {
|
|
|
1958
2128
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1959
2129
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1960
2130
|
};
|
|
2131
|
+
imports.wbg.__wbindgen_uint8_array_new = function(arg0, arg1) {
|
|
2132
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
2133
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
2134
|
+
const ret = v0;
|
|
2135
|
+
return ret;
|
|
2136
|
+
};
|
|
1961
2137
|
|
|
1962
2138
|
return imports;
|
|
1963
2139
|
}
|
|
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
|
|
65
|
-
export const
|
|
66
|
-
export const
|
|
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;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runmat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "Blazing fast runtime for math. Run MATLAB code on CPU or GPU.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN ../../LICENSE.md",
|
|
7
|
-
"homepage": "https://runmat.
|
|
7
|
+
"homepage": "https://runmat.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/runmat-org/runmat"
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"build:wasm:web": "wasm-pack build ../../crates/runmat-wasm --target web --out-dir ../../bindings/ts/pkg-web --out-name runmat_wasm_web --release",
|
|
39
39
|
"build:lsp": "wasm-pack build ../../crates/runmat-lsp --target web --out-dir ../../bindings/ts/lsp-web --out-name runmat_lsp --release -- --no-default-features --features wasm",
|
|
40
40
|
"build:types": "tsc -p tsconfig.json",
|
|
41
|
-
"build": "
|
|
41
|
+
"build:snapshot": "mkdir -p artifacts && cargo run -p runmat -- snapshot create -o artifacts/stdlib.snapshot",
|
|
42
|
+
"build": "npm run clean && npm run build:registry && npm run build:wasm && npm run build:wasm:web && npm run build:lsp && npm run build:types && npm run build:snapshot && npm run sync:wasm",
|
|
42
43
|
"ci": "npm run build && npm run lint && npm test && cargo check -p runmat-wasm --target wasm32-unknown-unknown",
|
|
43
44
|
"lint": "tsc --noEmit",
|
|
44
45
|
"test": "vitest run",
|