@spglib/moyo-wasm 0.7.9 → 0.8.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.
package/moyo_wasm.js CHANGED
@@ -18,36 +18,35 @@ export function analyze_cell(cell_json, symprec, setting) {
18
18
  }
19
19
  return takeFromExternrefTable0(ret[0]);
20
20
  }
21
-
22
21
  function __wbg_get_imports() {
23
22
  const import0 = {
24
23
  __proto__: null,
25
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
24
+ __wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
26
25
  const ret = Error(getStringFromWasm0(arg0, arg1));
27
26
  return ret;
28
27
  },
29
- __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
28
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
30
29
  const ret = String(arg1);
31
30
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
32
31
  const len1 = WASM_VECTOR_LEN;
33
32
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
34
33
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
35
34
  },
36
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
35
+ __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
37
36
  throw new Error(getStringFromWasm0(arg0, arg1));
38
37
  },
39
- __wbg_new_361308b2356cecd0: function() {
38
+ __wbg_new_2fad8ca02fd00684: function() {
40
39
  const ret = new Object();
41
40
  return ret;
42
41
  },
43
- __wbg_new_3eb36ae241fe6f44: function() {
42
+ __wbg_new_3baa8d9866155c79: function() {
44
43
  const ret = new Array();
45
44
  return ret;
46
45
  },
47
- __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
46
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
48
47
  arg0[arg1] = arg2;
49
48
  },
50
- __wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
49
+ __wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) {
51
50
  arg0[arg1 >>> 0] = arg2;
52
51
  },
53
52
  __wbindgen_cast_0000000000000001: function(arg0) {
@@ -90,8 +89,7 @@ function getDataViewMemory0() {
90
89
  }
91
90
 
92
91
  function getStringFromWasm0(ptr, len) {
93
- ptr = ptr >>> 0;
94
- return decodeText(ptr, len);
92
+ return decodeText(ptr >>> 0, len);
95
93
  }
96
94
 
97
95
  let cachedUint8ArrayMemory0 = null;
@@ -174,8 +172,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
174
172
 
175
173
  let WASM_VECTOR_LEN = 0;
176
174
 
177
- let wasmModule, wasm;
175
+ let wasmModule, wasmInstance, wasm;
178
176
  function __wbg_finalize_init(instance, module) {
177
+ wasmInstance = instance;
179
178
  wasm = instance.exports;
180
179
  wasmModule = module;
181
180
  cachedDataViewMemory0 = null;
package/moyo_wasm_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@spglib/moyo-wasm",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for moyo crystal symmetry analysis",
5
- "version": "0.7.9",
5
+ "version": "0.8.0",
6
6
  "license": "MIT OR Apache-2.0",
7
7
  "repository": {
8
8
  "type": "git",