runmat 0.5.3-dev.0 → 0.5.3
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/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-web/runmat_wasm_web.d.ts +16 -16
- package/dist/pkg-web/runmat_wasm_web.js +81 -80
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +8 -8
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +1 -1
|
Binary file
|
package/dist/lsp/runmat_lsp.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ export interface InitOutput {
|
|
|
42
42
|
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
43
43
|
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
44
44
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
45
|
+
readonly closure5113_externref_shim: (a: number, b: number, c: any) => void;
|
|
46
|
+
readonly closure5156_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
47
47
|
readonly __wbindgen_start: () => void;
|
|
48
48
|
}
|
|
49
49
|
|
package/dist/lsp/runmat_lsp.js
CHANGED
|
@@ -414,11 +414,11 @@ export function setCompatMode(mode) {
|
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
function __wbg_adapter_34(arg0, arg1, arg2) {
|
|
417
|
-
wasm.
|
|
417
|
+
wasm.closure5113_externref_shim(arg0, arg1, arg2);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
function __wbg_adapter_582(arg0, arg1, arg2, arg3) {
|
|
421
|
-
wasm.
|
|
421
|
+
wasm.closure5156_externref_shim(arg0, arg1, arg2, arg3);
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
@@ -1505,8 +1505,8 @@ function __wbg_get_imports() {
|
|
|
1505
1505
|
const ret = false;
|
|
1506
1506
|
return ret;
|
|
1507
1507
|
};
|
|
1508
|
-
imports.wbg.
|
|
1509
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1508
|
+
imports.wbg.__wbindgen_closure_wrapper19212 = function(arg0, arg1, arg2) {
|
|
1509
|
+
const ret = makeMutClosure(arg0, arg1, 5114, __wbg_adapter_34);
|
|
1510
1510
|
return ret;
|
|
1511
1511
|
};
|
|
1512
1512
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -23,6 +23,6 @@ export const __externref_table_alloc: () => number;
|
|
|
23
23
|
export const __wbindgen_export_4: WebAssembly.Table;
|
|
24
24
|
export const __wbindgen_export_5: WebAssembly.Table;
|
|
25
25
|
export const __externref_table_dealloc: (a: number) => void;
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
26
|
+
export const closure5113_externref_shim: (a: number, b: number, c: any) => void;
|
|
27
|
+
export const closure5156_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
28
28
|
export const __wbindgen_start: () => void;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function initRunMat(options: any): Promise<RunMatWasm>;
|
|
4
|
-
export function subscribeStdout(callback: any): number;
|
|
5
|
-
export function unsubscribeStdout(id: number): void;
|
|
6
|
-
export function subscribeRuntimeLog(callback: any): number;
|
|
7
|
-
export function setLogFilter(filter: string): void;
|
|
8
|
-
export function unsubscribeRuntimeLog(id: number): void;
|
|
9
|
-
export function subscribeTraceEvents(callback: any): number;
|
|
10
|
-
export function unsubscribeTraceEvents(id: number): void;
|
|
11
3
|
export function renderCurrentFigureScene(handle: number): void;
|
|
12
4
|
export function createPlotSurface(canvas: any): Promise<number>;
|
|
13
5
|
export function destroyPlotSurface(surface_id: number): void;
|
|
@@ -35,6 +27,14 @@ export function renderFigureImageWithTextmark(handle: any, width?: number | null
|
|
|
35
27
|
export function renderFigureImageWithCameraState(handle: any, width: number | null | undefined, height: number | null | undefined, camera_state: any, textmark?: string | null): Promise<Uint8Array>;
|
|
36
28
|
export function plotRendererReady(): boolean;
|
|
37
29
|
export function onFigureEvent(callback: any): void;
|
|
30
|
+
export function subscribeStdout(callback: any): number;
|
|
31
|
+
export function unsubscribeStdout(id: number): void;
|
|
32
|
+
export function subscribeRuntimeLog(callback: any): number;
|
|
33
|
+
export function setLogFilter(filter: string): void;
|
|
34
|
+
export function unsubscribeRuntimeLog(id: number): void;
|
|
35
|
+
export function subscribeTraceEvents(callback: any): number;
|
|
36
|
+
export function unsubscribeTraceEvents(id: number): void;
|
|
37
|
+
export function initRunMat(options: any): Promise<RunMatWasm>;
|
|
38
38
|
export class RunMatWasm {
|
|
39
39
|
private constructor();
|
|
40
40
|
free(): void;
|
|
@@ -68,14 +68,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
68
68
|
|
|
69
69
|
export interface InitOutput {
|
|
70
70
|
readonly memory: WebAssembly.Memory;
|
|
71
|
-
readonly initRunMat: (a: any) => any;
|
|
72
|
-
readonly subscribeStdout: (a: any) => [number, number, number];
|
|
73
|
-
readonly unsubscribeStdout: (a: number) => void;
|
|
74
|
-
readonly subscribeRuntimeLog: (a: any) => [number, number, number];
|
|
75
|
-
readonly setLogFilter: (a: number, b: number) => [number, number];
|
|
76
|
-
readonly unsubscribeRuntimeLog: (a: number) => void;
|
|
77
|
-
readonly subscribeTraceEvents: (a: any) => [number, number, number];
|
|
78
|
-
readonly unsubscribeTraceEvents: (a: number) => void;
|
|
79
71
|
readonly renderCurrentFigureScene: (a: number) => [number, number];
|
|
80
72
|
readonly createPlotSurface: (a: any) => any;
|
|
81
73
|
readonly resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -103,6 +95,13 @@ export interface InitOutput {
|
|
|
103
95
|
readonly currentFigureHandle: () => number;
|
|
104
96
|
readonly selectFigure: (a: number) => void;
|
|
105
97
|
readonly destroyPlotSurface: (a: number) => void;
|
|
98
|
+
readonly subscribeStdout: (a: any) => [number, number, number];
|
|
99
|
+
readonly unsubscribeStdout: (a: number) => void;
|
|
100
|
+
readonly subscribeRuntimeLog: (a: any) => [number, number, number];
|
|
101
|
+
readonly setLogFilter: (a: number, b: number) => [number, number];
|
|
102
|
+
readonly unsubscribeRuntimeLog: (a: number) => void;
|
|
103
|
+
readonly subscribeTraceEvents: (a: any) => [number, number, number];
|
|
104
|
+
readonly unsubscribeTraceEvents: (a: number) => void;
|
|
106
105
|
readonly __wbg_runmatwasm_free: (a: number, b: number) => void;
|
|
107
106
|
readonly runmatwasm_executeRequest: (a: number, b: any) => any;
|
|
108
107
|
readonly runmatwasm_resetSession: (a: number) => [number, number];
|
|
@@ -128,6 +127,7 @@ export interface InitOutput {
|
|
|
128
127
|
readonly runmatwasm_memoryUsage: (a: number) => [number, number, number];
|
|
129
128
|
readonly runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
|
|
130
129
|
readonly runmatwasm_dispose: (a: number) => void;
|
|
130
|
+
readonly initRunMat: (a: any) => any;
|
|
131
131
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
132
132
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
133
133
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -216,89 +216,12 @@ function debugString(val) {
|
|
|
216
216
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
217
217
|
return className;
|
|
218
218
|
}
|
|
219
|
-
/**
|
|
220
|
-
* @param {any} options
|
|
221
|
-
* @returns {Promise<RunMatWasm>}
|
|
222
|
-
*/
|
|
223
|
-
export function initRunMat(options) {
|
|
224
|
-
const ret = wasm.initRunMat(options);
|
|
225
|
-
return ret;
|
|
226
|
-
}
|
|
227
219
|
|
|
228
220
|
function takeFromExternrefTable0(idx) {
|
|
229
221
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
230
222
|
wasm.__externref_table_dealloc(idx);
|
|
231
223
|
return value;
|
|
232
224
|
}
|
|
233
|
-
/**
|
|
234
|
-
* @param {any} callback
|
|
235
|
-
* @returns {number}
|
|
236
|
-
*/
|
|
237
|
-
export function subscribeStdout(callback) {
|
|
238
|
-
const ret = wasm.subscribeStdout(callback);
|
|
239
|
-
if (ret[2]) {
|
|
240
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
241
|
-
}
|
|
242
|
-
return ret[0] >>> 0;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @param {number} id
|
|
247
|
-
*/
|
|
248
|
-
export function unsubscribeStdout(id) {
|
|
249
|
-
wasm.unsubscribeStdout(id);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* @param {any} callback
|
|
254
|
-
* @returns {number}
|
|
255
|
-
*/
|
|
256
|
-
export function subscribeRuntimeLog(callback) {
|
|
257
|
-
const ret = wasm.subscribeRuntimeLog(callback);
|
|
258
|
-
if (ret[2]) {
|
|
259
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
260
|
-
}
|
|
261
|
-
return ret[0] >>> 0;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* @param {string} filter
|
|
266
|
-
*/
|
|
267
|
-
export function setLogFilter(filter) {
|
|
268
|
-
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
269
|
-
const len0 = WASM_VECTOR_LEN;
|
|
270
|
-
const ret = wasm.setLogFilter(ptr0, len0);
|
|
271
|
-
if (ret[1]) {
|
|
272
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* @param {number} id
|
|
278
|
-
*/
|
|
279
|
-
export function unsubscribeRuntimeLog(id) {
|
|
280
|
-
wasm.unsubscribeRuntimeLog(id);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* @param {any} callback
|
|
285
|
-
* @returns {number}
|
|
286
|
-
*/
|
|
287
|
-
export function subscribeTraceEvents(callback) {
|
|
288
|
-
const ret = wasm.subscribeTraceEvents(callback);
|
|
289
|
-
if (ret[2]) {
|
|
290
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
291
|
-
}
|
|
292
|
-
return ret[0] >>> 0;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* @param {number} id
|
|
297
|
-
*/
|
|
298
|
-
export function unsubscribeTraceEvents(id) {
|
|
299
|
-
wasm.unsubscribeTraceEvents(id);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
225
|
/**
|
|
303
226
|
* @param {number} handle
|
|
304
227
|
*/
|
|
@@ -578,12 +501,90 @@ export function onFigureEvent(callback) {
|
|
|
578
501
|
}
|
|
579
502
|
}
|
|
580
503
|
|
|
504
|
+
/**
|
|
505
|
+
* @param {any} callback
|
|
506
|
+
* @returns {number}
|
|
507
|
+
*/
|
|
508
|
+
export function subscribeStdout(callback) {
|
|
509
|
+
const ret = wasm.subscribeStdout(callback);
|
|
510
|
+
if (ret[2]) {
|
|
511
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
512
|
+
}
|
|
513
|
+
return ret[0] >>> 0;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* @param {number} id
|
|
518
|
+
*/
|
|
519
|
+
export function unsubscribeStdout(id) {
|
|
520
|
+
wasm.unsubscribeStdout(id);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* @param {any} callback
|
|
525
|
+
* @returns {number}
|
|
526
|
+
*/
|
|
527
|
+
export function subscribeRuntimeLog(callback) {
|
|
528
|
+
const ret = wasm.subscribeRuntimeLog(callback);
|
|
529
|
+
if (ret[2]) {
|
|
530
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
531
|
+
}
|
|
532
|
+
return ret[0] >>> 0;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* @param {string} filter
|
|
537
|
+
*/
|
|
538
|
+
export function setLogFilter(filter) {
|
|
539
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
540
|
+
const len0 = WASM_VECTOR_LEN;
|
|
541
|
+
const ret = wasm.setLogFilter(ptr0, len0);
|
|
542
|
+
if (ret[1]) {
|
|
543
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* @param {number} id
|
|
549
|
+
*/
|
|
550
|
+
export function unsubscribeRuntimeLog(id) {
|
|
551
|
+
wasm.unsubscribeRuntimeLog(id);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* @param {any} callback
|
|
556
|
+
* @returns {number}
|
|
557
|
+
*/
|
|
558
|
+
export function subscribeTraceEvents(callback) {
|
|
559
|
+
const ret = wasm.subscribeTraceEvents(callback);
|
|
560
|
+
if (ret[2]) {
|
|
561
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
562
|
+
}
|
|
563
|
+
return ret[0] >>> 0;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* @param {number} id
|
|
568
|
+
*/
|
|
569
|
+
export function unsubscribeTraceEvents(id) {
|
|
570
|
+
wasm.unsubscribeTraceEvents(id);
|
|
571
|
+
}
|
|
572
|
+
|
|
581
573
|
function passArray8ToWasm0(arg, malloc) {
|
|
582
574
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
583
575
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
584
576
|
WASM_VECTOR_LEN = arg.length;
|
|
585
577
|
return ptr;
|
|
586
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* @param {any} options
|
|
581
|
+
* @returns {Promise<RunMatWasm>}
|
|
582
|
+
*/
|
|
583
|
+
export function initRunMat(options) {
|
|
584
|
+
const ret = wasm.initRunMat(options);
|
|
585
|
+
return ret;
|
|
586
|
+
}
|
|
587
|
+
|
|
587
588
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
588
589
|
wasm.closure3318_externref_shim(arg0, arg1, arg2);
|
|
589
590
|
}
|
|
@@ -2533,15 +2534,15 @@ function __wbg_get_imports() {
|
|
|
2533
2534
|
const ret = false;
|
|
2534
2535
|
return ret;
|
|
2535
2536
|
};
|
|
2536
|
-
imports.wbg.
|
|
2537
|
+
imports.wbg.__wbindgen_closure_wrapper27792 = function(arg0, arg1, arg2) {
|
|
2537
2538
|
const ret = makeMutClosure(arg0, arg1, 8274, __wbg_adapter_59);
|
|
2538
2539
|
return ret;
|
|
2539
2540
|
};
|
|
2540
|
-
imports.wbg.
|
|
2541
|
+
imports.wbg.__wbindgen_closure_wrapper28168 = function(arg0, arg1, arg2) {
|
|
2541
2542
|
const ret = makeMutClosure(arg0, arg1, 8286, __wbg_adapter_62);
|
|
2542
2543
|
return ret;
|
|
2543
2544
|
};
|
|
2544
|
-
imports.wbg.
|
|
2545
|
+
imports.wbg.__wbindgen_closure_wrapper8719 = function(arg0, arg1, arg2) {
|
|
2545
2546
|
const ret = makeMutClosure(arg0, arg1, 3319, __wbg_adapter_56);
|
|
2546
2547
|
return ret;
|
|
2547
2548
|
};
|
|
Binary file
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
-
export const initRunMat: (a: any) => any;
|
|
5
|
-
export const subscribeStdout: (a: any) => [number, number, number];
|
|
6
|
-
export const unsubscribeStdout: (a: number) => void;
|
|
7
|
-
export const subscribeRuntimeLog: (a: any) => [number, number, number];
|
|
8
|
-
export const setLogFilter: (a: number, b: number) => [number, number];
|
|
9
|
-
export const unsubscribeRuntimeLog: (a: number) => void;
|
|
10
|
-
export const subscribeTraceEvents: (a: any) => [number, number, number];
|
|
11
|
-
export const unsubscribeTraceEvents: (a: number) => void;
|
|
12
4
|
export const renderCurrentFigureScene: (a: number) => [number, number];
|
|
13
5
|
export const createPlotSurface: (a: any) => any;
|
|
14
6
|
export const resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -36,6 +28,13 @@ export const newFigureHandle: () => number;
|
|
|
36
28
|
export const currentFigureHandle: () => number;
|
|
37
29
|
export const selectFigure: (a: number) => void;
|
|
38
30
|
export const destroyPlotSurface: (a: number) => void;
|
|
31
|
+
export const subscribeStdout: (a: any) => [number, number, number];
|
|
32
|
+
export const unsubscribeStdout: (a: number) => void;
|
|
33
|
+
export const subscribeRuntimeLog: (a: any) => [number, number, number];
|
|
34
|
+
export const setLogFilter: (a: number, b: number) => [number, number];
|
|
35
|
+
export const unsubscribeRuntimeLog: (a: number) => void;
|
|
36
|
+
export const subscribeTraceEvents: (a: any) => [number, number, number];
|
|
37
|
+
export const unsubscribeTraceEvents: (a: number) => void;
|
|
39
38
|
export const __wbg_runmatwasm_free: (a: number, b: number) => void;
|
|
40
39
|
export const runmatwasm_executeRequest: (a: number, b: any) => any;
|
|
41
40
|
export const runmatwasm_resetSession: (a: number) => [number, number];
|
|
@@ -61,6 +60,7 @@ export const runmatwasm_telemetryClientId: (a: number) => [number, number];
|
|
|
61
60
|
export const runmatwasm_memoryUsage: (a: number) => [number, number, number];
|
|
62
61
|
export const runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
|
|
63
62
|
export const runmatwasm_dispose: (a: number) => void;
|
|
63
|
+
export const initRunMat: (a: any) => any;
|
|
64
64
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
65
65
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
66
66
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
Binary file
|