runmat 0.4.10-dev.11 → 0.4.10-dev.13

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.
Binary file
@@ -42,9 +42,9 @@ 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 closure4901_externref_shim: (a: number, b: number, c: any) => void;
46
- readonly closure4907_externref_shim: (a: number, b: number, c: any) => void;
47
- readonly closure4950_externref_shim: (a: number, b: number, c: any, d: any) => void;
45
+ readonly closure4910_externref_shim: (a: number, b: number, c: any) => void;
46
+ readonly closure4916_externref_shim: (a: number, b: number, c: any) => void;
47
+ readonly closure4959_externref_shim: (a: number, b: number, c: any, d: any) => void;
48
48
  readonly __wbindgen_start: () => void;
49
49
  }
50
50
 
@@ -414,15 +414,15 @@ export function setCompatMode(mode) {
414
414
  }
415
415
 
416
416
  function __wbg_adapter_36(arg0, arg1, arg2) {
417
- wasm.closure4901_externref_shim(arg0, arg1, arg2);
417
+ wasm.closure4910_externref_shim(arg0, arg1, arg2);
418
418
  }
419
419
 
420
420
  function __wbg_adapter_39(arg0, arg1, arg2) {
421
- wasm.closure4907_externref_shim(arg0, arg1, arg2);
421
+ wasm.closure4916_externref_shim(arg0, arg1, arg2);
422
422
  }
423
423
 
424
424
  function __wbg_adapter_421(arg0, arg1, arg2, arg3) {
425
- wasm.closure4950_externref_shim(arg0, arg1, arg2, arg3);
425
+ wasm.closure4959_externref_shim(arg0, arg1, arg2, arg3);
426
426
  }
427
427
 
428
428
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -1296,12 +1296,12 @@ function __wbg_get_imports() {
1296
1296
  const ret = false;
1297
1297
  return ret;
1298
1298
  };
1299
- imports.wbg.__wbindgen_closure_wrapper17284 = function(arg0, arg1, arg2) {
1300
- const ret = makeMutClosure(arg0, arg1, 4902, __wbg_adapter_36);
1299
+ imports.wbg.__wbindgen_closure_wrapper17299 = function(arg0, arg1, arg2) {
1300
+ const ret = makeMutClosure(arg0, arg1, 4911, __wbg_adapter_36);
1301
1301
  return ret;
1302
1302
  };
1303
- imports.wbg.__wbindgen_closure_wrapper17757 = function(arg0, arg1, arg2) {
1304
- const ret = makeMutClosure(arg0, arg1, 4908, __wbg_adapter_39);
1303
+ imports.wbg.__wbindgen_closure_wrapper17772 = function(arg0, arg1, arg2) {
1304
+ const ret = makeMutClosure(arg0, arg1, 4917, __wbg_adapter_39);
1305
1305
  return ret;
1306
1306
  };
1307
1307
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -23,7 +23,7 @@ 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 closure4901_externref_shim: (a: number, b: number, c: any) => void;
27
- export const closure4907_externref_shim: (a: number, b: number, c: any) => void;
28
- export const closure4950_externref_shim: (a: number, b: number, c: any, d: any) => void;
26
+ export const closure4910_externref_shim: (a: number, b: number, c: any) => void;
27
+ export const closure4916_externref_shim: (a: number, b: number, c: any) => void;
28
+ export const closure4959_externref_shim: (a: number, b: number, c: any, d: any) => void;
29
29
  export const __wbindgen_start: () => void;
@@ -1,5 +1,12 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function subscribeStdout(callback: any): number;
4
+ export function unsubscribeStdout(id: number): void;
5
+ export function subscribeRuntimeLog(callback: any): number;
6
+ export function setLogFilter(filter: string): void;
7
+ export function unsubscribeRuntimeLog(id: number): void;
8
+ export function subscribeTraceEvents(callback: any): number;
9
+ export function unsubscribeTraceEvents(id: number): void;
3
10
  export function renderCurrentFigureScene(handle: number): void;
4
11
  export function createPlotSurface(canvas: any): Promise<number>;
5
12
  export function destroyPlotSurface(surface_id: number): void;
@@ -28,13 +35,6 @@ export function renderFigureImageWithCameraState(handle: any, width: number | nu
28
35
  export function plotRendererReady(): boolean;
29
36
  export function onFigureEvent(callback: any): void;
30
37
  export function initRunMat(options: any): Promise<RunMatWasm>;
31
- export function subscribeStdout(callback: any): number;
32
- export function unsubscribeStdout(id: number): void;
33
- export function subscribeRuntimeLog(callback: any): number;
34
- export function setLogFilter(filter: string): void;
35
- export function unsubscribeRuntimeLog(id: number): void;
36
- export function subscribeTraceEvents(callback: any): number;
37
- export function unsubscribeTraceEvents(id: number): void;
38
38
  export class RunMatWasm {
39
39
  private constructor();
40
40
  free(): void;
@@ -68,6 +68,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
68
68
 
69
69
  export interface InitOutput {
70
70
  readonly memory: WebAssembly.Memory;
71
+ readonly subscribeStdout: (a: any) => [number, number, number];
72
+ readonly unsubscribeStdout: (a: number) => void;
73
+ readonly subscribeRuntimeLog: (a: any) => [number, number, number];
74
+ readonly setLogFilter: (a: number, b: number) => [number, number];
75
+ readonly unsubscribeRuntimeLog: (a: number) => void;
76
+ readonly subscribeTraceEvents: (a: any) => [number, number, number];
77
+ readonly unsubscribeTraceEvents: (a: number) => void;
71
78
  readonly renderCurrentFigureScene: (a: number) => [number, number];
72
79
  readonly createPlotSurface: (a: any) => any;
73
80
  readonly resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
@@ -95,14 +102,6 @@ export interface InitOutput {
95
102
  readonly currentFigureHandle: () => number;
96
103
  readonly selectFigure: (a: number) => void;
97
104
  readonly destroyPlotSurface: (a: number) => void;
98
- readonly initRunMat: (a: any) => any;
99
- readonly subscribeStdout: (a: any) => [number, number, number];
100
- readonly unsubscribeStdout: (a: number) => void;
101
- readonly subscribeRuntimeLog: (a: any) => [number, number, number];
102
- readonly setLogFilter: (a: number, b: number) => [number, number];
103
- readonly unsubscribeRuntimeLog: (a: number) => void;
104
- readonly subscribeTraceEvents: (a: any) => [number, number, number];
105
- 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;
@@ -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 closure3161_externref_shim: (a: number, b: number, c: any) => void;
140
- readonly closure7987_externref_shim: (a: number, b: number, c: any) => void;
141
- readonly closure7993_externref_shim: (a: number, b: number, c: any) => void;
142
- readonly closure8024_externref_shim: (a: number, b: number, c: any, d: any) => void;
139
+ readonly closure3176_externref_shim: (a: number, b: number, c: any) => void;
140
+ readonly closure8019_externref_shim: (a: number, b: number, c: any) => void;
141
+ readonly closure8025_externref_shim: (a: number, b: number, c: any) => void;
142
+ readonly closure8056_externref_shim: (a: number, b: number, c: any, d: any) => void;
143
143
  readonly __wbindgen_start: () => void;
144
144
  }
145
145
 
@@ -222,6 +222,75 @@ function takeFromExternrefTable0(idx) {
222
222
  wasm.__externref_table_dealloc(idx);
223
223
  return value;
224
224
  }
225
+ /**
226
+ * @param {any} callback
227
+ * @returns {number}
228
+ */
229
+ export function subscribeStdout(callback) {
230
+ const ret = wasm.subscribeStdout(callback);
231
+ if (ret[2]) {
232
+ throw takeFromExternrefTable0(ret[1]);
233
+ }
234
+ return ret[0] >>> 0;
235
+ }
236
+
237
+ /**
238
+ * @param {number} id
239
+ */
240
+ export function unsubscribeStdout(id) {
241
+ wasm.unsubscribeStdout(id);
242
+ }
243
+
244
+ /**
245
+ * @param {any} callback
246
+ * @returns {number}
247
+ */
248
+ export function subscribeRuntimeLog(callback) {
249
+ const ret = wasm.subscribeRuntimeLog(callback);
250
+ if (ret[2]) {
251
+ throw takeFromExternrefTable0(ret[1]);
252
+ }
253
+ return ret[0] >>> 0;
254
+ }
255
+
256
+ /**
257
+ * @param {string} filter
258
+ */
259
+ export function setLogFilter(filter) {
260
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
261
+ const len0 = WASM_VECTOR_LEN;
262
+ const ret = wasm.setLogFilter(ptr0, len0);
263
+ if (ret[1]) {
264
+ throw takeFromExternrefTable0(ret[0]);
265
+ }
266
+ }
267
+
268
+ /**
269
+ * @param {number} id
270
+ */
271
+ export function unsubscribeRuntimeLog(id) {
272
+ wasm.unsubscribeRuntimeLog(id);
273
+ }
274
+
275
+ /**
276
+ * @param {any} callback
277
+ * @returns {number}
278
+ */
279
+ export function subscribeTraceEvents(callback) {
280
+ const ret = wasm.subscribeTraceEvents(callback);
281
+ if (ret[2]) {
282
+ throw takeFromExternrefTable0(ret[1]);
283
+ }
284
+ return ret[0] >>> 0;
285
+ }
286
+
287
+ /**
288
+ * @param {number} id
289
+ */
290
+ export function unsubscribeTraceEvents(id) {
291
+ wasm.unsubscribeTraceEvents(id);
292
+ }
293
+
225
294
  /**
226
295
  * @param {number} handle
227
296
  */
@@ -501,6 +570,12 @@ export function onFigureEvent(callback) {
501
570
  }
502
571
  }
503
572
 
573
+ function passArray8ToWasm0(arg, malloc) {
574
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
575
+ getUint8ArrayMemory0().set(arg, ptr / 1);
576
+ WASM_VECTOR_LEN = arg.length;
577
+ return ptr;
578
+ }
504
579
  /**
505
580
  * @param {any} options
506
581
  * @returns {Promise<RunMatWasm>}
@@ -510,95 +585,20 @@ export function initRunMat(options) {
510
585
  return ret;
511
586
  }
512
587
 
513
- /**
514
- * @param {any} callback
515
- * @returns {number}
516
- */
517
- export function subscribeStdout(callback) {
518
- const ret = wasm.subscribeStdout(callback);
519
- if (ret[2]) {
520
- throw takeFromExternrefTable0(ret[1]);
521
- }
522
- return ret[0] >>> 0;
523
- }
524
-
525
- /**
526
- * @param {number} id
527
- */
528
- export function unsubscribeStdout(id) {
529
- wasm.unsubscribeStdout(id);
530
- }
531
-
532
- /**
533
- * @param {any} callback
534
- * @returns {number}
535
- */
536
- export function subscribeRuntimeLog(callback) {
537
- const ret = wasm.subscribeRuntimeLog(callback);
538
- if (ret[2]) {
539
- throw takeFromExternrefTable0(ret[1]);
540
- }
541
- return ret[0] >>> 0;
542
- }
543
-
544
- /**
545
- * @param {string} filter
546
- */
547
- export function setLogFilter(filter) {
548
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
549
- const len0 = WASM_VECTOR_LEN;
550
- const ret = wasm.setLogFilter(ptr0, len0);
551
- if (ret[1]) {
552
- throw takeFromExternrefTable0(ret[0]);
553
- }
554
- }
555
-
556
- /**
557
- * @param {number} id
558
- */
559
- export function unsubscribeRuntimeLog(id) {
560
- wasm.unsubscribeRuntimeLog(id);
561
- }
562
-
563
- /**
564
- * @param {any} callback
565
- * @returns {number}
566
- */
567
- export function subscribeTraceEvents(callback) {
568
- const ret = wasm.subscribeTraceEvents(callback);
569
- if (ret[2]) {
570
- throw takeFromExternrefTable0(ret[1]);
571
- }
572
- return ret[0] >>> 0;
573
- }
574
-
575
- /**
576
- * @param {number} id
577
- */
578
- export function unsubscribeTraceEvents(id) {
579
- wasm.unsubscribeTraceEvents(id);
580
- }
581
-
582
- function passArray8ToWasm0(arg, malloc) {
583
- const ptr = malloc(arg.length * 1, 1) >>> 0;
584
- getUint8ArrayMemory0().set(arg, ptr / 1);
585
- WASM_VECTOR_LEN = arg.length;
586
- return ptr;
587
- }
588
588
  function __wbg_adapter_56(arg0, arg1, arg2) {
589
- wasm.closure3161_externref_shim(arg0, arg1, arg2);
589
+ wasm.closure3176_externref_shim(arg0, arg1, arg2);
590
590
  }
591
591
 
592
592
  function __wbg_adapter_59(arg0, arg1, arg2) {
593
- wasm.closure7987_externref_shim(arg0, arg1, arg2);
593
+ wasm.closure8019_externref_shim(arg0, arg1, arg2);
594
594
  }
595
595
 
596
596
  function __wbg_adapter_62(arg0, arg1, arg2) {
597
- wasm.closure7993_externref_shim(arg0, arg1, arg2);
597
+ wasm.closure8025_externref_shim(arg0, arg1, arg2);
598
598
  }
599
599
 
600
600
  function __wbg_adapter_616(arg0, arg1, arg2, arg3) {
601
- wasm.closure8024_externref_shim(arg0, arg1, arg2, arg3);
601
+ wasm.closure8056_externref_shim(arg0, arg1, arg2, arg3);
602
602
  }
603
603
 
604
604
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -2093,16 +2093,16 @@ function __wbg_get_imports() {
2093
2093
  const ret = false;
2094
2094
  return ret;
2095
2095
  };
2096
- imports.wbg.__wbindgen_closure_wrapper25775 = function(arg0, arg1, arg2) {
2097
- const ret = makeMutClosure(arg0, arg1, 7988, __wbg_adapter_59);
2096
+ imports.wbg.__wbindgen_closure_wrapper25877 = function(arg0, arg1, arg2) {
2097
+ const ret = makeMutClosure(arg0, arg1, 8020, __wbg_adapter_59);
2098
2098
  return ret;
2099
2099
  };
2100
- imports.wbg.__wbindgen_closure_wrapper26190 = function(arg0, arg1, arg2) {
2101
- const ret = makeMutClosure(arg0, arg1, 7994, __wbg_adapter_62);
2100
+ imports.wbg.__wbindgen_closure_wrapper26292 = function(arg0, arg1, arg2) {
2101
+ const ret = makeMutClosure(arg0, arg1, 8026, __wbg_adapter_62);
2102
2102
  return ret;
2103
2103
  };
2104
- imports.wbg.__wbindgen_closure_wrapper8207 = function(arg0, arg1, arg2) {
2105
- const ret = makeMutClosure(arg0, arg1, 3162, __wbg_adapter_56);
2104
+ imports.wbg.__wbindgen_closure_wrapper8288 = function(arg0, arg1, arg2) {
2105
+ const ret = makeMutClosure(arg0, arg1, 3177, __wbg_adapter_56);
2106
2106
  return ret;
2107
2107
  };
2108
2108
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -1,6 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const subscribeStdout: (a: any) => [number, number, number];
5
+ export const unsubscribeStdout: (a: number) => void;
6
+ export const subscribeRuntimeLog: (a: any) => [number, number, number];
7
+ export const setLogFilter: (a: number, b: number) => [number, number];
8
+ export const unsubscribeRuntimeLog: (a: number) => void;
9
+ export const subscribeTraceEvents: (a: any) => [number, number, number];
10
+ export const unsubscribeTraceEvents: (a: number) => void;
4
11
  export const renderCurrentFigureScene: (a: number) => [number, number];
5
12
  export const createPlotSurface: (a: any) => any;
6
13
  export const resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
@@ -28,14 +35,6 @@ export const newFigureHandle: () => number;
28
35
  export const currentFigureHandle: () => number;
29
36
  export const selectFigure: (a: number) => void;
30
37
  export const destroyPlotSurface: (a: number) => void;
31
- export const initRunMat: (a: any) => any;
32
- export const subscribeStdout: (a: any) => [number, number, number];
33
- export const unsubscribeStdout: (a: number) => void;
34
- export const subscribeRuntimeLog: (a: any) => [number, number, number];
35
- export const setLogFilter: (a: number, b: number) => [number, number];
36
- export const unsubscribeRuntimeLog: (a: number) => void;
37
- export const subscribeTraceEvents: (a: any) => [number, number, number];
38
- 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;
@@ -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 closure3161_externref_shim: (a: number, b: number, c: any) => void;
73
- export const closure7987_externref_shim: (a: number, b: number, c: any) => void;
74
- export const closure7993_externref_shim: (a: number, b: number, c: any) => void;
75
- export const closure8024_externref_shim: (a: number, b: number, c: any, d: any) => void;
72
+ export const closure3176_externref_shim: (a: number, b: number, c: any) => void;
73
+ export const closure8019_externref_shim: (a: number, b: number, c: any) => void;
74
+ export const closure8025_externref_shim: (a: number, b: number, c: any) => void;
75
+ export const closure8056_externref_shim: (a: number, b: number, c: any, d: any) => void;
76
76
  export const __wbindgen_start: () => void;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runmat",
3
- "version": "0.4.10-dev.11",
3
+ "version": "0.4.10-dev.13",
4
4
  "description": "Blazing fast runtime for math. Run MATLAB code on CPU or GPU.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",