runmat 0.4.10-dev.4 → 0.4.10-dev.6

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.
@@ -216,22 +216,6 @@ 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
- function takeFromExternrefTable0(idx) {
221
- const value = wasm.__wbindgen_export_4.get(idx);
222
- wasm.__externref_table_dealloc(idx);
223
- return value;
224
- }
225
- /**
226
- * @param {any} bindings
227
- */
228
- export function registerFsProvider(bindings) {
229
- const ret = wasm.registerFsProvider(bindings);
230
- if (ret[1]) {
231
- throw takeFromExternrefTable0(ret[0]);
232
- }
233
- }
234
-
235
219
  /**
236
220
  * @param {any} options
237
221
  * @returns {Promise<RunMatWasm>}
@@ -241,117 +225,11 @@ export function initRunMat(options) {
241
225
  return ret;
242
226
  }
243
227
 
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
-
313
- /**
314
- * @param {any} canvas
315
- * @returns {Promise<void>}
316
- */
317
- export function registerPlotCanvas(canvas) {
318
- const ret = wasm.registerPlotCanvas(canvas);
319
- return ret;
320
- }
321
-
322
- /**
323
- * @param {number} handle
324
- * @param {any} canvas
325
- * @returns {Promise<void>}
326
- */
327
- export function registerFigureCanvas(handle, canvas) {
328
- const ret = wasm.registerFigureCanvas(handle, canvas);
329
- return ret;
330
- }
331
-
332
- export function deregisterPlotCanvas() {
333
- wasm.deregisterPlotCanvas();
334
- }
335
-
336
- /**
337
- * @param {number} handle
338
- */
339
- export function deregisterFigureCanvas(handle) {
340
- wasm.deregisterFigureCanvas(handle);
341
- }
342
-
343
- /**
344
- * @param {number} handle
345
- * @param {number} width
346
- * @param {number} height
347
- */
348
- export function resizeFigureCanvas(handle, width, height) {
349
- const ret = wasm.resizeFigureCanvas(handle, width, height);
350
- if (ret[1]) {
351
- throw takeFromExternrefTable0(ret[0]);
352
- }
228
+ function takeFromExternrefTable0(idx) {
229
+ const value = wasm.__wbindgen_export_4.get(idx);
230
+ wasm.__externref_table_dealloc(idx);
231
+ return value;
353
232
  }
354
-
355
233
  /**
356
234
  * @param {number} handle
357
235
  */
@@ -633,20 +511,89 @@ function passArray8ToWasm0(arg, malloc) {
633
511
  WASM_VECTOR_LEN = arg.length;
634
512
  return ptr;
635
513
  }
514
+ /**
515
+ * @param {any} callback
516
+ * @returns {number}
517
+ */
518
+ export function subscribeStdout(callback) {
519
+ const ret = wasm.subscribeStdout(callback);
520
+ if (ret[2]) {
521
+ throw takeFromExternrefTable0(ret[1]);
522
+ }
523
+ return ret[0] >>> 0;
524
+ }
525
+
526
+ /**
527
+ * @param {number} id
528
+ */
529
+ export function unsubscribeStdout(id) {
530
+ wasm.unsubscribeStdout(id);
531
+ }
532
+
533
+ /**
534
+ * @param {any} callback
535
+ * @returns {number}
536
+ */
537
+ export function subscribeRuntimeLog(callback) {
538
+ const ret = wasm.subscribeRuntimeLog(callback);
539
+ if (ret[2]) {
540
+ throw takeFromExternrefTable0(ret[1]);
541
+ }
542
+ return ret[0] >>> 0;
543
+ }
544
+
545
+ /**
546
+ * @param {string} filter
547
+ */
548
+ export function setLogFilter(filter) {
549
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
550
+ const len0 = WASM_VECTOR_LEN;
551
+ const ret = wasm.setLogFilter(ptr0, len0);
552
+ if (ret[1]) {
553
+ throw takeFromExternrefTable0(ret[0]);
554
+ }
555
+ }
556
+
557
+ /**
558
+ * @param {number} id
559
+ */
560
+ export function unsubscribeRuntimeLog(id) {
561
+ wasm.unsubscribeRuntimeLog(id);
562
+ }
563
+
564
+ /**
565
+ * @param {any} callback
566
+ * @returns {number}
567
+ */
568
+ export function subscribeTraceEvents(callback) {
569
+ const ret = wasm.subscribeTraceEvents(callback);
570
+ if (ret[2]) {
571
+ throw takeFromExternrefTable0(ret[1]);
572
+ }
573
+ return ret[0] >>> 0;
574
+ }
575
+
576
+ /**
577
+ * @param {number} id
578
+ */
579
+ export function unsubscribeTraceEvents(id) {
580
+ wasm.unsubscribeTraceEvents(id);
581
+ }
582
+
636
583
  function __wbg_adapter_56(arg0, arg1, arg2) {
637
- wasm.closure2694_externref_shim(arg0, arg1, arg2);
584
+ wasm.closure2953_externref_shim(arg0, arg1, arg2);
638
585
  }
639
586
 
640
587
  function __wbg_adapter_59(arg0, arg1, arg2) {
641
- wasm.closure7674_externref_shim(arg0, arg1, arg2);
588
+ wasm.closure7746_externref_shim(arg0, arg1, arg2);
642
589
  }
643
590
 
644
591
  function __wbg_adapter_62(arg0, arg1, arg2) {
645
- wasm.closure7681_externref_shim(arg0, arg1, arg2);
592
+ wasm.closure7752_externref_shim(arg0, arg1, arg2);
646
593
  }
647
594
 
648
- function __wbg_adapter_622(arg0, arg1, arg2, arg3) {
649
- wasm.closure7712_externref_shim(arg0, arg1, arg2, arg3);
595
+ function __wbg_adapter_615(arg0, arg1, arg2, arg3) {
596
+ wasm.closure7783_externref_shim(arg0, arg1, arg2, arg3);
650
597
  }
651
598
 
652
599
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -685,13 +632,11 @@ export class RunMatWasm {
685
632
  wasm.__wbg_runmatwasm_free(ptr, 0);
686
633
  }
687
634
  /**
688
- * @param {string} source
635
+ * @param {any} request_value
689
636
  * @returns {Promise<any>}
690
637
  */
691
- execute(source) {
692
- const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
693
- const len0 = WASM_VECTOR_LEN;
694
- const ret = wasm.runmatwasm_execute(this.__wbg_ptr, ptr0, len0);
638
+ executeRequest(request_value) {
639
+ const ret = wasm.runmatwasm_executeRequest(this.__wbg_ptr, request_value);
695
640
  return ret;
696
641
  }
697
642
  resetSession() {
@@ -703,9 +648,6 @@ export class RunMatWasm {
703
648
  cancelExecution() {
704
649
  wasm.runmatwasm_cancelExecution(this.__wbg_ptr);
705
650
  }
706
- cancelPendingRequests() {
707
- wasm.runmatwasm_cancelPendingRequests(this.__wbg_ptr);
708
- }
709
651
  /**
710
652
  * @param {string} mode
711
653
  */
@@ -1286,6 +1228,10 @@ function __wbg_get_imports() {
1286
1228
  const ret = arg0.has(getStringFromWasm0(arg1, arg2));
1287
1229
  return ret;
1288
1230
  };
1231
+ imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
1232
+ const ret = Reflect.has(arg0, arg1);
1233
+ return ret;
1234
+ }, arguments) };
1289
1235
  imports.wbg.__wbg_height_592a89ec0fb63726 = function(arg0) {
1290
1236
  const ret = arg0.height;
1291
1237
  return ret;
@@ -1696,7 +1642,7 @@ function __wbg_get_imports() {
1696
1642
  const a = state0.a;
1697
1643
  state0.a = 0;
1698
1644
  try {
1699
- return __wbg_adapter_622(a, state0.b, arg0, arg1);
1645
+ return __wbg_adapter_615(a, state0.b, arg0, arg1);
1700
1646
  } finally {
1701
1647
  state0.a = a;
1702
1648
  }
@@ -2142,16 +2088,16 @@ function __wbg_get_imports() {
2142
2088
  const ret = false;
2143
2089
  return ret;
2144
2090
  };
2145
- imports.wbg.__wbindgen_closure_wrapper23832 = function(arg0, arg1, arg2) {
2146
- const ret = makeMutClosure(arg0, arg1, 7675, __wbg_adapter_59);
2091
+ imports.wbg.__wbindgen_closure_wrapper24696 = function(arg0, arg1, arg2) {
2092
+ const ret = makeMutClosure(arg0, arg1, 7747, __wbg_adapter_59);
2147
2093
  return ret;
2148
2094
  };
2149
- imports.wbg.__wbindgen_closure_wrapper24247 = function(arg0, arg1, arg2) {
2150
- const ret = makeMutClosure(arg0, arg1, 7682, __wbg_adapter_62);
2095
+ imports.wbg.__wbindgen_closure_wrapper25111 = function(arg0, arg1, arg2) {
2096
+ const ret = makeMutClosure(arg0, arg1, 7753, __wbg_adapter_62);
2151
2097
  return ret;
2152
2098
  };
2153
- imports.wbg.__wbindgen_closure_wrapper6669 = function(arg0, arg1, arg2) {
2154
- const ret = makeMutClosure(arg0, arg1, 2695, __wbg_adapter_56);
2099
+ imports.wbg.__wbindgen_closure_wrapper7380 = function(arg0, arg1, arg2) {
2100
+ const ret = makeMutClosure(arg0, arg1, 2954, __wbg_adapter_56);
2155
2101
  return ret;
2156
2102
  };
2157
2103
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -1,19 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const registerFsProvider: (a: any) => [number, number];
5
4
  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;
13
- export const registerPlotCanvas: (a: any) => any;
14
- export const registerFigureCanvas: (a: number, b: any) => any;
15
- export const deregisterFigureCanvas: (a: number) => void;
16
- export const resizeFigureCanvas: (a: number, b: number, c: number) => [number, number];
17
5
  export const renderCurrentFigureScene: (a: number) => [number, number];
18
6
  export const createPlotSurface: (a: any) => any;
19
7
  export const resizePlotSurface: (a: number, b: number, c: number, d: number) => [number, number];
@@ -36,16 +24,14 @@ export const renderFigureImageWithTextmark: (a: any, b: number, c: number, d: nu
36
24
  export const renderFigureImageWithCameraState: (a: any, b: number, c: number, d: any, e: number, f: number) => any;
37
25
  export const plotRendererReady: () => number;
38
26
  export const onFigureEvent: (a: any) => [number, number];
39
- export const deregisterPlotCanvas: () => void;
40
27
  export const newFigureHandle: () => number;
41
28
  export const currentFigureHandle: () => number;
42
29
  export const selectFigure: (a: number) => void;
43
30
  export const destroyPlotSurface: (a: number) => void;
44
31
  export const __wbg_runmatwasm_free: (a: number, b: number) => void;
45
- export const runmatwasm_execute: (a: number, b: number, c: number) => any;
32
+ export const runmatwasm_executeRequest: (a: number, b: any) => any;
46
33
  export const runmatwasm_resetSession: (a: number) => [number, number];
47
34
  export const runmatwasm_cancelExecution: (a: number) => void;
48
- export const runmatwasm_cancelPendingRequests: (a: number) => void;
49
35
  export const runmatwasm_setLanguageCompat: (a: number, b: number, c: number) => void;
50
36
  export const runmatwasm_setInputHandler: (a: number, b: any) => [number, number];
51
37
  export const runmatwasm_setFusionPlanEnabled: (a: number, b: number) => void;
@@ -67,6 +53,13 @@ export const runmatwasm_telemetryClientId: (a: number) => [number, number];
67
53
  export const runmatwasm_memoryUsage: (a: number) => [number, number, number];
68
54
  export const runmatwasm_setFsProvider: (a: number, b: any) => [number, number];
69
55
  export const runmatwasm_dispose: (a: number) => void;
56
+ export const subscribeStdout: (a: any) => [number, number, number];
57
+ export const unsubscribeStdout: (a: number) => void;
58
+ export const subscribeRuntimeLog: (a: any) => [number, number, number];
59
+ export const setLogFilter: (a: number, b: number) => [number, number];
60
+ export const unsubscribeRuntimeLog: (a: number) => void;
61
+ export const subscribeTraceEvents: (a: any) => [number, number, number];
62
+ export const unsubscribeTraceEvents: (a: number) => void;
70
63
  export const __wbindgen_malloc: (a: number, b: number) => number;
71
64
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
72
65
  export const __wbindgen_exn_store: (a: number) => void;
@@ -75,8 +68,8 @@ export const __wbindgen_export_4: WebAssembly.Table;
75
68
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
76
69
  export const __wbindgen_export_6: WebAssembly.Table;
77
70
  export const __externref_table_dealloc: (a: number) => 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;
71
+ export const closure2953_externref_shim: (a: number, b: number, c: any) => void;
72
+ export const closure7746_externref_shim: (a: number, b: number, c: any) => void;
73
+ export const closure7752_externref_shim: (a: number, b: number, c: any) => void;
74
+ export const closure7783_externref_shim: (a: number, b: number, c: any, d: any) => void;
82
75
  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.4",
3
+ "version": "0.4.10-dev.6",
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",