runmat 0.5.4-dev.1 → 0.5.4-dev.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_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web.d.ts +20 -20
- package/dist/pkg-web/runmat_wasm_web.js +85 -86
- package/dist/pkg-web/runmat_wasm_web_bg.wasm +0 -0
- package/dist/pkg-web/runmat_wasm_web_bg.wasm.d.ts +12 -12
- package/dist/runtime/stdlib.snapshot +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,13 @@
|
|
|
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;
|
|
3
11
|
export function renderCurrentFigureScene(handle: number): void;
|
|
4
12
|
export function createPlotSurface(canvas: any): Promise<number>;
|
|
5
13
|
export function destroyPlotSurface(surface_id: number): void;
|
|
@@ -27,14 +35,6 @@ export function renderFigureImageWithTextmark(handle: any, width?: number | null
|
|
|
27
35
|
export function renderFigureImageWithCameraState(handle: any, width: number | null | undefined, height: number | null | undefined, camera_state: any, textmark?: string | null): Promise<Uint8Array>;
|
|
28
36
|
export function plotRendererReady(): boolean;
|
|
29
37
|
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,6 +68,14 @@ 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;
|
|
71
79
|
readonly renderCurrentFigureScene: (a: number) => [number, number];
|
|
72
80
|
readonly createPlotSurface: (a: any) => any;
|
|
73
81
|
readonly resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -95,13 +103,6 @@ export interface InitOutput {
|
|
|
95
103
|
readonly currentFigureHandle: () => number;
|
|
96
104
|
readonly selectFigure: (a: number) => void;
|
|
97
105
|
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;
|
|
105
106
|
readonly __wbg_runmatwasm_free: (a: number, b: number) => void;
|
|
106
107
|
readonly runmatwasm_executeRequest: (a: number, b: any) => any;
|
|
107
108
|
readonly runmatwasm_resetSession: (a: number) => [number, number];
|
|
@@ -127,7 +128,6 @@ export interface InitOutput {
|
|
|
127
128
|
readonly runmatwasm_memoryUsage: (a: number) => [number, number, number];
|
|
128
129
|
readonly runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
|
|
129
130
|
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;
|
|
@@ -136,10 +136,10 @@ export interface InitOutput {
|
|
|
136
136
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
137
137
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
138
138
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
139
|
-
readonly
|
|
140
|
-
readonly
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
139
|
+
readonly closure3336_externref_shim: (a: number, b: number, c: any) => void;
|
|
140
|
+
readonly closure8274_externref_shim: (a: number, b: number, c: any) => void;
|
|
141
|
+
readonly closure8286_externref_shim: (a: number, b: number, c: any) => void;
|
|
142
|
+
readonly closure8314_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
143
143
|
readonly __wbindgen_start: () => void;
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -216,12 +216,89 @@ 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
|
+
}
|
|
219
227
|
|
|
220
228
|
function takeFromExternrefTable0(idx) {
|
|
221
229
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
222
230
|
wasm.__externref_table_dealloc(idx);
|
|
223
231
|
return value;
|
|
224
232
|
}
|
|
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
|
+
|
|
225
302
|
/**
|
|
226
303
|
* @param {number} handle
|
|
227
304
|
*/
|
|
@@ -501,104 +578,26 @@ export function onFigureEvent(callback) {
|
|
|
501
578
|
}
|
|
502
579
|
}
|
|
503
580
|
|
|
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
|
-
|
|
573
581
|
function passArray8ToWasm0(arg, malloc) {
|
|
574
582
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
575
583
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
576
584
|
WASM_VECTOR_LEN = arg.length;
|
|
577
585
|
return ptr;
|
|
578
586
|
}
|
|
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
|
-
|
|
588
587
|
function __wbg_adapter_56(arg0, arg1, arg2) {
|
|
589
|
-
wasm.
|
|
588
|
+
wasm.closure3336_externref_shim(arg0, arg1, arg2);
|
|
590
589
|
}
|
|
591
590
|
|
|
592
591
|
function __wbg_adapter_59(arg0, arg1, arg2) {
|
|
593
|
-
wasm.
|
|
592
|
+
wasm.closure8274_externref_shim(arg0, arg1, arg2);
|
|
594
593
|
}
|
|
595
594
|
|
|
596
595
|
function __wbg_adapter_62(arg0, arg1, arg2) {
|
|
597
|
-
wasm.
|
|
596
|
+
wasm.closure8286_externref_shim(arg0, arg1, arg2);
|
|
598
597
|
}
|
|
599
598
|
|
|
600
599
|
function __wbg_adapter_884(arg0, arg1, arg2, arg3) {
|
|
601
|
-
wasm.
|
|
600
|
+
wasm.closure8314_externref_shim(arg0, arg1, arg2, arg3);
|
|
602
601
|
}
|
|
603
602
|
|
|
604
603
|
const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
|
|
@@ -2535,15 +2534,15 @@ function __wbg_get_imports() {
|
|
|
2535
2534
|
return ret;
|
|
2536
2535
|
};
|
|
2537
2536
|
imports.wbg.__wbindgen_closure_wrapper27895 = function(arg0, arg1, arg2) {
|
|
2538
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2537
|
+
const ret = makeMutClosure(arg0, arg1, 8275, __wbg_adapter_59);
|
|
2539
2538
|
return ret;
|
|
2540
2539
|
};
|
|
2541
2540
|
imports.wbg.__wbindgen_closure_wrapper28271 = function(arg0, arg1, arg2) {
|
|
2542
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2541
|
+
const ret = makeMutClosure(arg0, arg1, 8287, __wbg_adapter_62);
|
|
2543
2542
|
return ret;
|
|
2544
2543
|
};
|
|
2545
|
-
imports.wbg.
|
|
2546
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2544
|
+
imports.wbg.__wbindgen_closure_wrapper8779 = function(arg0, arg1, arg2) {
|
|
2545
|
+
const ret = makeMutClosure(arg0, arg1, 3337, __wbg_adapter_56);
|
|
2547
2546
|
return ret;
|
|
2548
2547
|
};
|
|
2549
2548
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
Binary file
|
|
@@ -1,6 +1,14 @@
|
|
|
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;
|
|
4
12
|
export const renderCurrentFigureScene: (a: number) => [number, number];
|
|
5
13
|
export const createPlotSurface: (a: any) => any;
|
|
6
14
|
export const resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
|
|
@@ -28,13 +36,6 @@ export const newFigureHandle: () => number;
|
|
|
28
36
|
export const currentFigureHandle: () => number;
|
|
29
37
|
export const selectFigure: (a: number) => void;
|
|
30
38
|
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;
|
|
38
39
|
export const __wbg_runmatwasm_free: (a: number, b: number) => void;
|
|
39
40
|
export const runmatwasm_executeRequest: (a: number, b: any) => any;
|
|
40
41
|
export const runmatwasm_resetSession: (a: number) => [number, number];
|
|
@@ -60,7 +61,6 @@ export const runmatwasm_telemetryClientId: (a: number) => [number, number];
|
|
|
60
61
|
export const runmatwasm_memoryUsage: (a: number) => [number, number, number];
|
|
61
62
|
export const runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
|
|
62
63
|
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;
|
|
@@ -69,8 +69,8 @@ export const __wbindgen_export_4: WebAssembly.Table;
|
|
|
69
69
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
70
70
|
export const __wbindgen_export_6: WebAssembly.Table;
|
|
71
71
|
export const __externref_table_dealloc: (a: number) => void;
|
|
72
|
-
export const
|
|
73
|
-
export const
|
|
74
|
-
export const
|
|
75
|
-
export const
|
|
72
|
+
export const closure3336_externref_shim: (a: number, b: number, c: any) => void;
|
|
73
|
+
export const closure8274_externref_shim: (a: number, b: number, c: any) => void;
|
|
74
|
+
export const closure8286_externref_shim: (a: number, b: number, c: any) => void;
|
|
75
|
+
export const closure8314_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
76
76
|
export const __wbindgen_start: () => void;
|
|
Binary file
|