runmat 0.5.0 → 0.5.1-dev.0

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 closure4903_externref_shim: (a: number, b: number, c: any) => void;
46
- readonly closure4909_externref_shim: (a: number, b: number, c: any) => void;
47
- readonly closure4952_externref_shim: (a: number, b: number, c: any, d: any) => void;
45
+ readonly closure4905_externref_shim: (a: number, b: number, c: any) => void;
46
+ readonly closure4911_externref_shim: (a: number, b: number, c: any) => void;
47
+ readonly closure4954_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.closure4903_externref_shim(arg0, arg1, arg2);
417
+ wasm.closure4905_externref_shim(arg0, arg1, arg2);
418
418
  }
419
419
 
420
420
  function __wbg_adapter_39(arg0, arg1, arg2) {
421
- wasm.closure4909_externref_shim(arg0, arg1, arg2);
421
+ wasm.closure4911_externref_shim(arg0, arg1, arg2);
422
422
  }
423
423
 
424
424
  function __wbg_adapter_421(arg0, arg1, arg2, arg3) {
425
- wasm.closure4952_externref_shim(arg0, arg1, arg2, arg3);
425
+ wasm.closure4954_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_wrapper17295 = function(arg0, arg1, arg2) {
1300
- const ret = makeMutClosure(arg0, arg1, 4904, __wbg_adapter_36);
1299
+ imports.wbg.__wbindgen_closure_wrapper17283 = function(arg0, arg1, arg2) {
1300
+ const ret = makeMutClosure(arg0, arg1, 4906, __wbg_adapter_36);
1301
1301
  return ret;
1302
1302
  };
1303
- imports.wbg.__wbindgen_closure_wrapper17768 = function(arg0, arg1, arg2) {
1304
- const ret = makeMutClosure(arg0, arg1, 4910, __wbg_adapter_39);
1303
+ imports.wbg.__wbindgen_closure_wrapper17756 = function(arg0, arg1, arg2) {
1304
+ const ret = makeMutClosure(arg0, arg1, 4912, __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 closure4903_externref_shim: (a: number, b: number, c: any) => void;
27
- export const closure4909_externref_shim: (a: number, b: number, c: any) => void;
28
- export const closure4952_externref_shim: (a: number, b: number, c: any, d: any) => void;
26
+ export const closure4905_externref_shim: (a: number, b: number, c: any) => void;
27
+ export const closure4911_externref_shim: (a: number, b: number, c: any) => void;
28
+ export const closure4954_externref_shim: (a: number, b: number, c: any, d: any) => void;
29
29
  export const __wbindgen_start: () => void;
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function initRunMat(options: any): Promise<RunMatWasm>;
3
4
  export function subscribeStdout(callback: any): number;
4
5
  export function unsubscribeStdout(id: number): void;
5
6
  export function subscribeRuntimeLog(callback: any): number;
@@ -34,7 +35,6 @@ export function renderFigureImageWithTextmark(handle: any, width?: number | null
34
35
  export function renderFigureImageWithCameraState(handle: any, width: number | null | undefined, height: number | null | undefined, camera_state: any, textmark?: string | null): Promise<Uint8Array>;
35
36
  export function plotRendererReady(): boolean;
36
37
  export function onFigureEvent(callback: any): 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,7 @@ 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;
71
72
  readonly subscribeStdout: (a: any) => [number, number, number];
72
73
  readonly unsubscribeStdout: (a: number) => void;
73
74
  readonly subscribeRuntimeLog: (a: any) => [number, number, number];
@@ -127,7 +128,6 @@ export interface InitOutput {
127
128
  readonly currentFigureHandle: () => number;
128
129
  readonly selectFigure: (a: number) => void;
129
130
  readonly destroyPlotSurface: (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 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;
139
+ readonly closure3154_externref_shim: (a: number, b: number, c: any) => void;
140
+ readonly closure7997_externref_shim: (a: number, b: number, c: any) => void;
141
+ readonly closure8003_externref_shim: (a: number, b: number, c: any) => void;
142
+ readonly closure8034_externref_shim: (a: number, b: number, c: any, d: any) => void;
143
143
  readonly __wbindgen_start: () => void;
144
144
  }
145
145
 
@@ -216,6 +216,14 @@ 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);
@@ -576,29 +584,20 @@ export function onFigureEvent(callback) {
576
584
  }
577
585
  }
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.closure3176_externref_shim(arg0, arg1, arg2);
588
+ wasm.closure3154_externref_shim(arg0, arg1, arg2);
590
589
  }
591
590
 
592
591
  function __wbg_adapter_59(arg0, arg1, arg2) {
593
- wasm.closure8019_externref_shim(arg0, arg1, arg2);
592
+ wasm.closure7997_externref_shim(arg0, arg1, arg2);
594
593
  }
595
594
 
596
595
  function __wbg_adapter_62(arg0, arg1, arg2) {
597
- wasm.closure8025_externref_shim(arg0, arg1, arg2);
596
+ wasm.closure8003_externref_shim(arg0, arg1, arg2);
598
597
  }
599
598
 
600
599
  function __wbg_adapter_616(arg0, arg1, arg2, arg3) {
601
- wasm.closure8056_externref_shim(arg0, arg1, arg2, arg3);
600
+ wasm.closure8034_externref_shim(arg0, arg1, arg2, arg3);
602
601
  }
603
602
 
604
603
  const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
@@ -2093,16 +2092,16 @@ function __wbg_get_imports() {
2093
2092
  const ret = false;
2094
2093
  return ret;
2095
2094
  };
2096
- imports.wbg.__wbindgen_closure_wrapper25911 = function(arg0, arg1, arg2) {
2097
- const ret = makeMutClosure(arg0, arg1, 8020, __wbg_adapter_59);
2095
+ imports.wbg.__wbindgen_closure_wrapper25888 = function(arg0, arg1, arg2) {
2096
+ const ret = makeMutClosure(arg0, arg1, 7998, __wbg_adapter_59);
2098
2097
  return ret;
2099
2098
  };
2100
- imports.wbg.__wbindgen_closure_wrapper26326 = function(arg0, arg1, arg2) {
2101
- const ret = makeMutClosure(arg0, arg1, 8026, __wbg_adapter_62);
2099
+ imports.wbg.__wbindgen_closure_wrapper26303 = function(arg0, arg1, arg2) {
2100
+ const ret = makeMutClosure(arg0, arg1, 8004, __wbg_adapter_62);
2102
2101
  return ret;
2103
2102
  };
2104
- imports.wbg.__wbindgen_closure_wrapper8289 = function(arg0, arg1, arg2) {
2105
- const ret = makeMutClosure(arg0, arg1, 3177, __wbg_adapter_56);
2103
+ imports.wbg.__wbindgen_closure_wrapper8271 = function(arg0, arg1, arg2) {
2104
+ const ret = makeMutClosure(arg0, arg1, 3155, __wbg_adapter_56);
2106
2105
  return ret;
2107
2106
  };
2108
2107
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
+ export const initRunMat: (a: any) => any;
4
5
  export const subscribeStdout: (a: any) => [number, number, number];
5
6
  export const unsubscribeStdout: (a: number) => void;
6
7
  export const subscribeRuntimeLog: (a: any) => [number, number, number];
@@ -60,7 +61,6 @@ export const newFigureHandle: () => number;
60
61
  export const currentFigureHandle: () => number;
61
62
  export const selectFigure: (a: number) => void;
62
63
  export const destroyPlotSurface: (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 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;
72
+ export const closure3154_externref_shim: (a: number, b: number, c: any) => void;
73
+ export const closure7997_externref_shim: (a: number, b: number, c: any) => void;
74
+ export const closure8003_externref_shim: (a: number, b: number, c: any) => void;
75
+ export const closure8034_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.5.0",
3
+ "version": "0.5.1-dev.0",
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",