runmat 0.4.10-dev.1 → 0.4.10-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.
@@ -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 closure4166_externref_shim: (a: number, b: number, c: any) => void;
46
- readonly closure4200_externref_shim: (a: number, b: number, c: any, d: any) => void;
45
+ readonly closure4173_externref_shim: (a: number, b: number, c: any) => void;
46
+ readonly closure4207_externref_shim: (a: number, b: number, c: any, d: any) => void;
47
47
  readonly __wbindgen_start: () => void;
48
48
  }
49
49
 
@@ -405,11 +405,11 @@ export function setCompatMode(mode) {
405
405
  }
406
406
 
407
407
  function __wbg_adapter_32(arg0, arg1, arg2) {
408
- wasm.closure4166_externref_shim(arg0, arg1, arg2);
408
+ wasm.closure4173_externref_shim(arg0, arg1, arg2);
409
409
  }
410
410
 
411
411
  function __wbg_adapter_124(arg0, arg1, arg2, arg3) {
412
- wasm.closure4200_externref_shim(arg0, arg1, arg2, arg3);
412
+ wasm.closure4207_externref_shim(arg0, arg1, arg2, arg3);
413
413
  }
414
414
 
415
415
  const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
@@ -693,8 +693,8 @@ function __wbg_get_imports() {
693
693
  const ret = false;
694
694
  return ret;
695
695
  };
696
- imports.wbg.__wbindgen_closure_wrapper14727 = function(arg0, arg1, arg2) {
697
- const ret = makeMutClosure(arg0, arg1, 4167, __wbg_adapter_32);
696
+ imports.wbg.__wbindgen_closure_wrapper14720 = function(arg0, arg1, arg2) {
697
+ const ret = makeMutClosure(arg0, arg1, 4174, __wbg_adapter_32);
698
698
  return ret;
699
699
  };
700
700
  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 closure4166_externref_shim: (a: number, b: number, c: any) => void;
27
- export const closure4200_externref_shim: (a: number, b: number, c: any, d: any) => void;
26
+ export const closure4173_externref_shim: (a: number, b: number, c: any) => void;
27
+ export const closure4207_externref_shim: (a: number, b: number, c: any, d: any) => void;
28
28
  export const __wbindgen_start: () => void;
@@ -2,6 +2,13 @@
2
2
  /* eslint-disable */
3
3
  export function registerFsProvider(bindings: any): void;
4
4
  export function initRunMat(options: any): Promise<RunMatWasm>;
5
+ export function subscribeStdout(callback: any): number;
6
+ export function unsubscribeStdout(id: number): void;
7
+ export function subscribeRuntimeLog(callback: any): number;
8
+ export function setLogFilter(filter: string): void;
9
+ export function unsubscribeRuntimeLog(id: number): void;
10
+ export function subscribeTraceEvents(callback: any): number;
11
+ export function unsubscribeTraceEvents(id: number): void;
5
12
  export function registerPlotCanvas(canvas: any): Promise<void>;
6
13
  export function registerFigureCanvas(handle: number, canvas: any): Promise<void>;
7
14
  export function deregisterPlotCanvas(): void;
@@ -33,13 +40,6 @@ export function renderFigureImageWithTextmark(handle: any, width?: number | null
33
40
  export function renderFigureImageWithCameraState(handle: any, width: number | null | undefined, height: number | null | undefined, camera_state: any, textmark?: string | null): Promise<Uint8Array>;
34
41
  export function plotRendererReady(): boolean;
35
42
  export function onFigureEvent(callback: any): void;
36
- export function subscribeStdout(callback: any): number;
37
- export function unsubscribeStdout(id: number): void;
38
- export function subscribeRuntimeLog(callback: any): number;
39
- export function setLogFilter(filter: string): void;
40
- export function unsubscribeRuntimeLog(id: number): void;
41
- export function subscribeTraceEvents(callback: any): number;
42
- export function unsubscribeTraceEvents(id: number): void;
43
43
  export class RunMatWasm {
44
44
  private constructor();
45
45
  free(): void;
@@ -76,6 +76,13 @@ export interface InitOutput {
76
76
  readonly memory: WebAssembly.Memory;
77
77
  readonly registerFsProvider: (a: any) => [number, number];
78
78
  readonly initRunMat: (a: any) => any;
79
+ readonly subscribeStdout: (a: any) => [number, number, number];
80
+ readonly unsubscribeStdout: (a: number) => void;
81
+ readonly subscribeRuntimeLog: (a: any) => [number, number, number];
82
+ readonly setLogFilter: (a: number, b: number) => [number, number];
83
+ readonly unsubscribeRuntimeLog: (a: number) => void;
84
+ readonly subscribeTraceEvents: (a: any) => [number, number, number];
85
+ readonly unsubscribeTraceEvents: (a: number) => void;
79
86
  readonly registerPlotCanvas: (a: any) => any;
80
87
  readonly registerFigureCanvas: (a: number, b: any) => any;
81
88
  readonly deregisterFigureCanvas: (a: number) => void;
@@ -133,13 +140,6 @@ export interface InitOutput {
133
140
  readonly runmatwasm_memoryUsage: (a: number) => [number, number, number];
134
141
  readonly runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
135
142
  readonly runmatwasm_dispose: (a: number) => void;
136
- readonly subscribeStdout: (a: any) => [number, number, number];
137
- readonly unsubscribeStdout: (a: number) => void;
138
- readonly subscribeRuntimeLog: (a: any) => [number, number, number];
139
- readonly setLogFilter: (a: number, b: number) => [number, number];
140
- readonly unsubscribeRuntimeLog: (a: number) => void;
141
- readonly subscribeTraceEvents: (a: any) => [number, number, number];
142
- readonly unsubscribeTraceEvents: (a: number) => void;
143
143
  readonly __wbindgen_malloc: (a: number, b: number) => number;
144
144
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
145
145
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -148,10 +148,10 @@ export interface InitOutput {
148
148
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
149
149
  readonly __wbindgen_export_6: WebAssembly.Table;
150
150
  readonly __externref_table_dealloc: (a: number) => void;
151
- readonly closure2695_externref_shim: (a: number, b: number, c: any) => void;
152
- readonly closure7660_externref_shim: (a: number, b: number, c: any) => void;
153
- readonly closure7667_externref_shim: (a: number, b: number, c: any) => void;
154
- readonly closure7698_externref_shim: (a: number, b: number, c: any, d: any) => void;
151
+ readonly closure2694_externref_shim: (a: number, b: number, c: any) => void;
152
+ readonly closure7674_externref_shim: (a: number, b: number, c: any) => void;
153
+ readonly closure7681_externref_shim: (a: number, b: number, c: any) => void;
154
+ readonly closure7712_externref_shim: (a: number, b: number, c: any, d: any) => void;
155
155
  readonly __wbindgen_start: () => void;
156
156
  }
157
157
 
@@ -241,6 +241,75 @@ export function initRunMat(options) {
241
241
  return ret;
242
242
  }
243
243
 
244
+ /**
245
+ * @param {any} callback
246
+ * @returns {number}
247
+ */
248
+ export function subscribeStdout(callback) {
249
+ const ret = wasm.subscribeStdout(callback);
250
+ if (ret[2]) {
251
+ throw takeFromExternrefTable0(ret[1]);
252
+ }
253
+ return ret[0] >>> 0;
254
+ }
255
+
256
+ /**
257
+ * @param {number} id
258
+ */
259
+ export function unsubscribeStdout(id) {
260
+ wasm.unsubscribeStdout(id);
261
+ }
262
+
263
+ /**
264
+ * @param {any} callback
265
+ * @returns {number}
266
+ */
267
+ export function subscribeRuntimeLog(callback) {
268
+ const ret = wasm.subscribeRuntimeLog(callback);
269
+ if (ret[2]) {
270
+ throw takeFromExternrefTable0(ret[1]);
271
+ }
272
+ return ret[0] >>> 0;
273
+ }
274
+
275
+ /**
276
+ * @param {string} filter
277
+ */
278
+ export function setLogFilter(filter) {
279
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
280
+ const len0 = WASM_VECTOR_LEN;
281
+ const ret = wasm.setLogFilter(ptr0, len0);
282
+ if (ret[1]) {
283
+ throw takeFromExternrefTable0(ret[0]);
284
+ }
285
+ }
286
+
287
+ /**
288
+ * @param {number} id
289
+ */
290
+ export function unsubscribeRuntimeLog(id) {
291
+ wasm.unsubscribeRuntimeLog(id);
292
+ }
293
+
294
+ /**
295
+ * @param {any} callback
296
+ * @returns {number}
297
+ */
298
+ export function subscribeTraceEvents(callback) {
299
+ const ret = wasm.subscribeTraceEvents(callback);
300
+ if (ret[2]) {
301
+ throw takeFromExternrefTable0(ret[1]);
302
+ }
303
+ return ret[0] >>> 0;
304
+ }
305
+
306
+ /**
307
+ * @param {number} id
308
+ */
309
+ export function unsubscribeTraceEvents(id) {
310
+ wasm.unsubscribeTraceEvents(id);
311
+ }
312
+
244
313
  /**
245
314
  * @param {any} canvas
246
315
  * @returns {Promise<void>}
@@ -564,89 +633,20 @@ function passArray8ToWasm0(arg, malloc) {
564
633
  WASM_VECTOR_LEN = arg.length;
565
634
  return ptr;
566
635
  }
567
- /**
568
- * @param {any} callback
569
- * @returns {number}
570
- */
571
- export function subscribeStdout(callback) {
572
- const ret = wasm.subscribeStdout(callback);
573
- if (ret[2]) {
574
- throw takeFromExternrefTable0(ret[1]);
575
- }
576
- return ret[0] >>> 0;
577
- }
578
-
579
- /**
580
- * @param {number} id
581
- */
582
- export function unsubscribeStdout(id) {
583
- wasm.unsubscribeStdout(id);
584
- }
585
-
586
- /**
587
- * @param {any} callback
588
- * @returns {number}
589
- */
590
- export function subscribeRuntimeLog(callback) {
591
- const ret = wasm.subscribeRuntimeLog(callback);
592
- if (ret[2]) {
593
- throw takeFromExternrefTable0(ret[1]);
594
- }
595
- return ret[0] >>> 0;
596
- }
597
-
598
- /**
599
- * @param {string} filter
600
- */
601
- export function setLogFilter(filter) {
602
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
603
- const len0 = WASM_VECTOR_LEN;
604
- const ret = wasm.setLogFilter(ptr0, len0);
605
- if (ret[1]) {
606
- throw takeFromExternrefTable0(ret[0]);
607
- }
608
- }
609
-
610
- /**
611
- * @param {number} id
612
- */
613
- export function unsubscribeRuntimeLog(id) {
614
- wasm.unsubscribeRuntimeLog(id);
615
- }
616
-
617
- /**
618
- * @param {any} callback
619
- * @returns {number}
620
- */
621
- export function subscribeTraceEvents(callback) {
622
- const ret = wasm.subscribeTraceEvents(callback);
623
- if (ret[2]) {
624
- throw takeFromExternrefTable0(ret[1]);
625
- }
626
- return ret[0] >>> 0;
627
- }
628
-
629
- /**
630
- * @param {number} id
631
- */
632
- export function unsubscribeTraceEvents(id) {
633
- wasm.unsubscribeTraceEvents(id);
634
- }
635
-
636
636
  function __wbg_adapter_56(arg0, arg1, arg2) {
637
- wasm.closure2695_externref_shim(arg0, arg1, arg2);
637
+ wasm.closure2694_externref_shim(arg0, arg1, arg2);
638
638
  }
639
639
 
640
640
  function __wbg_adapter_59(arg0, arg1, arg2) {
641
- wasm.closure7660_externref_shim(arg0, arg1, arg2);
641
+ wasm.closure7674_externref_shim(arg0, arg1, arg2);
642
642
  }
643
643
 
644
644
  function __wbg_adapter_62(arg0, arg1, arg2) {
645
- wasm.closure7667_externref_shim(arg0, arg1, arg2);
645
+ wasm.closure7681_externref_shim(arg0, arg1, arg2);
646
646
  }
647
647
 
648
648
  function __wbg_adapter_622(arg0, arg1, arg2, arg3) {
649
- wasm.closure7698_externref_shim(arg0, arg1, arg2, arg3);
649
+ wasm.closure7712_externref_shim(arg0, arg1, arg2, arg3);
650
650
  }
651
651
 
652
652
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -2142,16 +2142,16 @@ function __wbg_get_imports() {
2142
2142
  const ret = false;
2143
2143
  return ret;
2144
2144
  };
2145
- imports.wbg.__wbindgen_closure_wrapper23665 = function(arg0, arg1, arg2) {
2146
- const ret = makeMutClosure(arg0, arg1, 7661, __wbg_adapter_59);
2145
+ imports.wbg.__wbindgen_closure_wrapper23819 = function(arg0, arg1, arg2) {
2146
+ const ret = makeMutClosure(arg0, arg1, 7675, __wbg_adapter_59);
2147
2147
  return ret;
2148
2148
  };
2149
- imports.wbg.__wbindgen_closure_wrapper24080 = function(arg0, arg1, arg2) {
2150
- const ret = makeMutClosure(arg0, arg1, 7668, __wbg_adapter_62);
2149
+ imports.wbg.__wbindgen_closure_wrapper24234 = function(arg0, arg1, arg2) {
2150
+ const ret = makeMutClosure(arg0, arg1, 7682, __wbg_adapter_62);
2151
2151
  return ret;
2152
2152
  };
2153
- imports.wbg.__wbindgen_closure_wrapper6670 = function(arg0, arg1, arg2) {
2154
- const ret = makeMutClosure(arg0, arg1, 2696, __wbg_adapter_56);
2153
+ imports.wbg.__wbindgen_closure_wrapper6669 = function(arg0, arg1, arg2) {
2154
+ const ret = makeMutClosure(arg0, arg1, 2695, __wbg_adapter_56);
2155
2155
  return ret;
2156
2156
  };
2157
2157
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -3,6 +3,13 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const registerFsProvider: (a: any) => [number, number];
5
5
  export const initRunMat: (a: any) => any;
6
+ export const subscribeStdout: (a: any) => [number, number, number];
7
+ export const unsubscribeStdout: (a: number) => void;
8
+ export const subscribeRuntimeLog: (a: any) => [number, number, number];
9
+ export const setLogFilter: (a: number, b: number) => [number, number];
10
+ export const unsubscribeRuntimeLog: (a: number) => void;
11
+ export const subscribeTraceEvents: (a: any) => [number, number, number];
12
+ export const unsubscribeTraceEvents: (a: number) => void;
6
13
  export const registerPlotCanvas: (a: any) => any;
7
14
  export const registerFigureCanvas: (a: number, b: any) => any;
8
15
  export const deregisterFigureCanvas: (a: number) => void;
@@ -60,13 +67,6 @@ export const runmatwasm_telemetryClientId: (a: number) => [number, number];
60
67
  export const runmatwasm_memoryUsage: (a: number) => [number, number, number];
61
68
  export const runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
62
69
  export const runmatwasm_dispose: (a: number) => void;
63
- export const subscribeStdout: (a: any) => [number, number, number];
64
- export const unsubscribeStdout: (a: number) => void;
65
- export const subscribeRuntimeLog: (a: any) => [number, number, number];
66
- export const setLogFilter: (a: number, b: number) => [number, number];
67
- export const unsubscribeRuntimeLog: (a: number) => void;
68
- export const subscribeTraceEvents: (a: any) => [number, number, number];
69
- export const unsubscribeTraceEvents: (a: number) => void;
70
70
  export const __wbindgen_malloc: (a: number, b: number) => number;
71
71
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
72
72
  export const __wbindgen_exn_store: (a: number) => void;
@@ -75,8 +75,8 @@ export const __wbindgen_export_4: WebAssembly.Table;
75
75
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
76
76
  export const __wbindgen_export_6: WebAssembly.Table;
77
77
  export const __externref_table_dealloc: (a: number) => void;
78
- export const closure2695_externref_shim: (a: number, b: number, c: any) => void;
79
- export const closure7660_externref_shim: (a: number, b: number, c: any) => void;
80
- export const closure7667_externref_shim: (a: number, b: number, c: any) => void;
81
- export const closure7698_externref_shim: (a: number, b: number, c: any, d: any) => void;
78
+ export const closure2694_externref_shim: (a: number, b: number, c: any) => void;
79
+ export const closure7674_externref_shim: (a: number, b: number, c: any) => void;
80
+ export const closure7681_externref_shim: (a: number, b: number, c: any) => void;
81
+ export const closure7712_externref_shim: (a: number, b: number, c: any, d: any) => void;
82
82
  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.1",
3
+ "version": "0.4.10-dev.3",
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",