xtalforge-wasm 0.0.2 → 1.0.0-rc.1

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Jose Ivan Gonzalez <jigonzalez930209@gmail.com>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for xtalforge.",
8
- "version": "0.0.2",
8
+ "version": "1.0.0-rc.1",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",
@@ -1,6 +1,42 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
 
4
+ /**
5
+ * A stateful session an assistant drives in the browser.
6
+ */
7
+ export class AgentSession {
8
+ free(): void;
9
+ [Symbol.dispose](): void;
10
+ /**
11
+ * Name of the active document.
12
+ */
13
+ active_name(): string | undefined;
14
+ /**
15
+ * Names of the open documents as JSON.
16
+ */
17
+ documents_json(): string;
18
+ /**
19
+ * Creates an empty session.
20
+ */
21
+ constructor();
22
+ /**
23
+ * Runs one verb with a JSON object and returns the answer as JSON.
24
+ *
25
+ * # Errors
26
+ *
27
+ * Returns a JavaScript object with `code` and `message` properties.
28
+ */
29
+ run(verb: string, arguments_json: string): string;
30
+ /**
31
+ * One document as structure JSON.
32
+ *
33
+ * # Errors
34
+ *
35
+ * Returns a JavaScript object with `code` and `message` properties.
36
+ */
37
+ structure_json(name?: string | null): string;
38
+ }
39
+
4
40
  /**
5
41
  * An undoable structure document in the browser.
6
42
  */
@@ -73,6 +109,25 @@ export class WasmDocument {
73
109
  readonly history: Array<any>;
74
110
  }
75
111
 
112
+ /**
113
+ * Runtime capability report as JSON.
114
+ */
115
+ export function agent_capabilities(): string;
116
+
117
+ /**
118
+ * Runs a JSON script against a fresh session and returns the answers.
119
+ *
120
+ * # Errors
121
+ *
122
+ * Returns a JavaScript object with `code` and `message` properties.
123
+ */
124
+ export function agent_run(script_json: string): string;
125
+
126
+ /**
127
+ * The verb catalogue as JSON.
128
+ */
129
+ export function agent_verbs(): string;
130
+
76
131
  /**
77
132
  * Angle `i-j-k` in degrees, using minimum images.
78
133
  *
@@ -131,6 +186,16 @@ export function build_c20_info(): any;
131
186
  */
132
187
  export function build_c60_info(): any;
133
188
 
189
+ /**
190
+ * Builds a disordered carbon from a recipe.
191
+ *
192
+ * # Errors
193
+ *
194
+ * Returns a JavaScript `Error` for an unsupported net, a bad repeat or a
195
+ * surface that cannot be meshed.
196
+ */
197
+ export function build_carbon_recipe_info(net: string, repeat_x: number, repeat_y: number, repeat_z: number, density: number, radius_ratio: number, coverage: number, seed: number, hydrogen: number, fluorine: number, oxygen: number): any;
198
+
134
199
  /**
135
200
  * Builds a graphene sheet and returns its summary.
136
201
  *
@@ -275,7 +340,7 @@ export function ff_optimize_info(text: string, minimizer: string, max_steps: num
275
340
  *
276
341
  * Returns a JavaScript `Error` for invalid text or a failed step.
277
342
  */
278
- export function ff_prepare_info(text: string, minimize: boolean, charges: boolean, ewald: boolean, vibrations: boolean): any;
343
+ export function ff_prepare_info(text: string, minimize: boolean, charges: boolean, ewald: boolean, vibrations: boolean, merge_duplicates?: boolean | null, order_disorder?: boolean | null, remove_solvent?: boolean | null, check_charge_balance?: boolean | null, hydrogens?: boolean | null, check_close_contacts?: boolean | null): any;
279
344
 
280
345
  /**
281
346
  * Returns harmonic thermochemistry.
@@ -503,13 +568,37 @@ export function powder_automatic_info(text: string, pattern_text: string): any;
503
568
  export function powder_cells_info(number: number): any;
504
569
 
505
570
  /**
506
- * Refines positions with a whole-pattern least-squares step.
571
+ * Finds peaks and indexes the metric families of a measured XY pattern.
572
+ *
573
+ * Returns `{ peaks: [{ two_theta, intensity, fwhm }], candidates: [{ system,
574
+ * a, b, c, alpha, beta, gamma, m20, f_n, coverage, completeness }] }`.
575
+ *
576
+ * # Errors
577
+ *
578
+ * Returns a JavaScript `Error` for invalid text or a failed search.
579
+ */
580
+ export function powder_index_info(pattern_text: string, wavelength: number, max_index: number, tolerance: number): any;
581
+
582
+ /**
583
+ * Fits a Pawley model: free intensities, cell, zero shift and width model.
584
+ *
585
+ * # Errors
586
+ *
587
+ * Returns a JavaScript `Error` for invalid text or a failed fit.
588
+ */
589
+ export function powder_pawley_info(text: string, pattern_text: string, profile: string): any;
590
+
591
+ /**
592
+ * Refines a phase with the McCusker stages.
593
+ *
594
+ * The March-Dollase axis is the `c` axis. Returns `rwp`, `converged`,
595
+ * `iterations`, `stages`, `parameters` and `parameter_esds`.
507
596
  *
508
597
  * # Errors
509
598
  *
510
599
  * Returns a JavaScript `Error` for invalid text or a failed fit.
511
600
  */
512
- export function powder_refine_info(text: string, pattern_text: string, refine_positions: boolean): any;
601
+ export function powder_refine_info(text: string, pattern_text: string, refine_positions: boolean, refine_adps: boolean, refine_occupancies: boolean, refine_zero: boolean, refine_cell: boolean, refine_width: boolean, refine_texture: boolean, doublet: boolean): any;
513
602
 
514
603
  /**
515
604
  * Builds the standardized primitive cell.
package/xtalforge_wasm.js CHANGED
@@ -5,5 +5,5 @@ import { __wbg_set_wasm } from "./xtalforge_wasm_bg.js";
5
5
  __wbg_set_wasm(wasm);
6
6
  wasm.__wbindgen_start();
7
7
  export {
8
- WasmDocument, angle, asymmetrize_info, bonds, brillouin_zone, build_c20_info, build_c60_info, build_graphene_info, build_mof_info, build_nanotube_info, cell_volume, change_setting_info, convert_structure, detect_symmetry, diagnose_info, distance, element_info, ff_charges_info, ff_energy, ff_ir_info, ff_optimize_info, ff_prepare_info, ff_thermo_info, ff_types_info, ff_vibrations_info, groups, hydrogens_info, kpath_info, lattice_info, lattice_minimum_image, layer_group_info, limits_bounds, limits_check, lower_to_subgroup_info, magnetic_group_info, mesh_stl, mof_blocks_info, mof_topologies_info, neighbors, net_invariants_info, param_schema, pointgroup_info, polymer_info, porosity_info, powder_automatic_info, powder_cells_info, powder_refine_info, primitive_info, project_info, project_pack, pxrd_info, read_cif, read_structure, reduce_info, ribbon_info, rietx_inventory_info, rings, scene_summary, schwarzite_info, set_space_group_info, slab_info, slab_text, standardize_info, structure_info, subgroups_info, supercell_info, supercell_text, to_p1_info, tolerance_ladder_info, torsion, twist_info, version, workspace_archive, workspace_read_archive, wyckoff_info, zeo_parse_info, ztc_info
8
+ AgentSession, WasmDocument, agent_capabilities, agent_run, agent_verbs, angle, asymmetrize_info, bonds, brillouin_zone, build_c20_info, build_c60_info, build_carbon_recipe_info, build_graphene_info, build_mof_info, build_nanotube_info, cell_volume, change_setting_info, convert_structure, detect_symmetry, diagnose_info, distance, element_info, ff_charges_info, ff_energy, ff_ir_info, ff_optimize_info, ff_prepare_info, ff_thermo_info, ff_types_info, ff_vibrations_info, groups, hydrogens_info, kpath_info, lattice_info, lattice_minimum_image, layer_group_info, limits_bounds, limits_check, lower_to_subgroup_info, magnetic_group_info, mesh_stl, mof_blocks_info, mof_topologies_info, neighbors, net_invariants_info, param_schema, pointgroup_info, polymer_info, porosity_info, powder_automatic_info, powder_cells_info, powder_index_info, powder_pawley_info, powder_refine_info, primitive_info, project_info, project_pack, pxrd_info, read_cif, read_structure, reduce_info, ribbon_info, rietx_inventory_info, rings, scene_summary, schwarzite_info, set_space_group_info, slab_info, slab_text, standardize_info, structure_info, subgroups_info, supercell_info, supercell_text, to_p1_info, tolerance_ladder_info, torsion, twist_info, version, workspace_archive, workspace_read_archive, wyckoff_info, zeo_parse_info, ztc_info
9
9
  } from "./xtalforge_wasm_bg.js";
@@ -1,3 +1,126 @@
1
+ /**
2
+ * A stateful session an assistant drives in the browser.
3
+ */
4
+ export class AgentSession {
5
+ __destroy_into_raw() {
6
+ const ptr = this.__wbg_ptr;
7
+ this.__wbg_ptr = 0;
8
+ AgentSessionFinalization.unregister(this);
9
+ return ptr;
10
+ }
11
+ free() {
12
+ const ptr = this.__destroy_into_raw();
13
+ wasm.__wbg_agentsession_free(ptr, 0);
14
+ }
15
+ /**
16
+ * Name of the active document.
17
+ * @returns {string | undefined}
18
+ */
19
+ active_name() {
20
+ const ret = wasm.agentsession_active_name(this.__wbg_ptr);
21
+ let v1;
22
+ if (ret[0] !== 0) {
23
+ v1 = getStringFromWasm0(ret[0], ret[1]);
24
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
25
+ }
26
+ return v1;
27
+ }
28
+ /**
29
+ * Names of the open documents as JSON.
30
+ * @returns {string}
31
+ */
32
+ documents_json() {
33
+ let deferred1_0;
34
+ let deferred1_1;
35
+ try {
36
+ const ret = wasm.agentsession_documents_json(this.__wbg_ptr);
37
+ deferred1_0 = ret[0];
38
+ deferred1_1 = ret[1];
39
+ return getStringFromWasm0(ret[0], ret[1]);
40
+ } finally {
41
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
42
+ }
43
+ }
44
+ /**
45
+ * Creates an empty session.
46
+ */
47
+ constructor() {
48
+ const ret = wasm.agentsession_new();
49
+ this.__wbg_ptr = ret;
50
+ AgentSessionFinalization.register(this, this.__wbg_ptr, this);
51
+ return this;
52
+ }
53
+ /**
54
+ * Runs one verb with a JSON object and returns the answer as JSON.
55
+ *
56
+ * # Errors
57
+ *
58
+ * Returns a JavaScript object with `code` and `message` properties.
59
+ * @param {string} verb
60
+ * @param {string} arguments_json
61
+ * @returns {string}
62
+ */
63
+ run(verb, arguments_json) {
64
+ let deferred4_0;
65
+ let deferred4_1;
66
+ try {
67
+ let ptr0, len0, ptr1, len1;
68
+ try {
69
+ ptr0 = passStringToWasm0(verb, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
70
+ len0 = WASM_VECTOR_LEN;
71
+ ptr1 = passStringToWasm0(arguments_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
72
+ len1 = WASM_VECTOR_LEN;
73
+ } catch (e) {
74
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
75
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
76
+ throw e;
77
+ }
78
+ const ret = wasm.agentsession_run(this.__wbg_ptr, ptr0, len0, ptr1, len1);
79
+ var ptr3 = ret[0];
80
+ var len3 = ret[1];
81
+ if (ret[3]) {
82
+ ptr3 = 0; len3 = 0;
83
+ throw takeFromExternrefTable0(ret[2]);
84
+ }
85
+ deferred4_0 = ptr3;
86
+ deferred4_1 = len3;
87
+ return getStringFromWasm0(ptr3, len3);
88
+ } finally {
89
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
90
+ }
91
+ }
92
+ /**
93
+ * One document as structure JSON.
94
+ *
95
+ * # Errors
96
+ *
97
+ * Returns a JavaScript object with `code` and `message` properties.
98
+ * @param {string | null} [name]
99
+ * @returns {string}
100
+ */
101
+ structure_json(name) {
102
+ let deferred3_0;
103
+ let deferred3_1;
104
+ try {
105
+ var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
106
+ var len0 = WASM_VECTOR_LEN;
107
+ const ret = wasm.agentsession_structure_json(this.__wbg_ptr, ptr0, len0);
108
+ var ptr2 = ret[0];
109
+ var len2 = ret[1];
110
+ if (ret[3]) {
111
+ ptr2 = 0; len2 = 0;
112
+ throw takeFromExternrefTable0(ret[2]);
113
+ }
114
+ deferred3_0 = ptr2;
115
+ deferred3_1 = len2;
116
+ return getStringFromWasm0(ptr2, len2);
117
+ } finally {
118
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
119
+ }
120
+ }
121
+ }
122
+ if (Symbol.dispose) AgentSession.prototype[Symbol.dispose] = AgentSession.prototype.free;
123
+
1
124
  /**
2
125
  * An undoable structure document in the browser.
3
126
  */
@@ -163,6 +286,70 @@ export class WasmDocument {
163
286
  }
164
287
  if (Symbol.dispose) WasmDocument.prototype[Symbol.dispose] = WasmDocument.prototype.free;
165
288
 
289
+ /**
290
+ * Runtime capability report as JSON.
291
+ * @returns {string}
292
+ */
293
+ export function agent_capabilities() {
294
+ let deferred1_0;
295
+ let deferred1_1;
296
+ try {
297
+ const ret = wasm.agent_capabilities();
298
+ deferred1_0 = ret[0];
299
+ deferred1_1 = ret[1];
300
+ return getStringFromWasm0(ret[0], ret[1]);
301
+ } finally {
302
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
303
+ }
304
+ }
305
+
306
+ /**
307
+ * Runs a JSON script against a fresh session and returns the answers.
308
+ *
309
+ * # Errors
310
+ *
311
+ * Returns a JavaScript object with `code` and `message` properties.
312
+ * @param {string} script_json
313
+ * @returns {string}
314
+ */
315
+ export function agent_run(script_json) {
316
+ let deferred3_0;
317
+ let deferred3_1;
318
+ try {
319
+ const ptr0 = passStringToWasm0(script_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
+ const len0 = WASM_VECTOR_LEN;
321
+ const ret = wasm.agent_run(ptr0, len0);
322
+ var ptr2 = ret[0];
323
+ var len2 = ret[1];
324
+ if (ret[3]) {
325
+ ptr2 = 0; len2 = 0;
326
+ throw takeFromExternrefTable0(ret[2]);
327
+ }
328
+ deferred3_0 = ptr2;
329
+ deferred3_1 = len2;
330
+ return getStringFromWasm0(ptr2, len2);
331
+ } finally {
332
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
333
+ }
334
+ }
335
+
336
+ /**
337
+ * The verb catalogue as JSON.
338
+ * @returns {string}
339
+ */
340
+ export function agent_verbs() {
341
+ let deferred1_0;
342
+ let deferred1_1;
343
+ try {
344
+ const ret = wasm.agent_verbs();
345
+ deferred1_0 = ret[0];
346
+ deferred1_1 = ret[1];
347
+ return getStringFromWasm0(ret[0], ret[1]);
348
+ } finally {
349
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
350
+ }
351
+ }
352
+
166
353
  /**
167
354
  * Angle `i-j-k` in degrees, using minimum images.
168
355
  *
@@ -283,6 +470,46 @@ export function build_c60_info() {
283
470
  return takeFromExternrefTable0(ret[0]);
284
471
  }
285
472
 
473
+ /**
474
+ * Builds a disordered carbon from a recipe.
475
+ *
476
+ * # Errors
477
+ *
478
+ * Returns a JavaScript `Error` for an unsupported net, a bad repeat or a
479
+ * surface that cannot be meshed.
480
+ * @param {string} net
481
+ * @param {number} repeat_x
482
+ * @param {number} repeat_y
483
+ * @param {number} repeat_z
484
+ * @param {number} density
485
+ * @param {number} radius_ratio
486
+ * @param {number} coverage
487
+ * @param {number} seed
488
+ * @param {number} hydrogen
489
+ * @param {number} fluorine
490
+ * @param {number} oxygen
491
+ * @returns {any}
492
+ */
493
+ export function build_carbon_recipe_info(net, repeat_x, repeat_y, repeat_z, density, radius_ratio, coverage, seed, hydrogen, fluorine, oxygen) {
494
+ const val2 = +repeat_x;
495
+ const val3 = +repeat_y;
496
+ const val4 = +repeat_z;
497
+ const val5 = +density;
498
+ const val6 = +radius_ratio;
499
+ const val7 = +coverage;
500
+ const val8 = +seed;
501
+ const val9 = +hydrogen;
502
+ const val10 = +fluorine;
503
+ const val11 = +oxygen;
504
+ const ptr0 = passStringToWasm0(net, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
505
+ const len0 = WASM_VECTOR_LEN;
506
+ const ret = wasm.build_carbon_recipe_info(ptr0, len0, val2, val3, val4, val5, val6, val7, val8, val9, val10, val11);
507
+ if (ret[2]) {
508
+ throw takeFromExternrefTable0(ret[1]);
509
+ }
510
+ return takeFromExternrefTable0(ret[0]);
511
+ }
512
+
286
513
  /**
287
514
  * Builds a graphene sheet and returns its summary.
288
515
  *
@@ -664,16 +891,22 @@ export function ff_optimize_info(text, minimizer, max_steps, force_tolerance, ce
664
891
  * @param {boolean} charges
665
892
  * @param {boolean} ewald
666
893
  * @param {boolean} vibrations
894
+ * @param {boolean | null} [merge_duplicates]
895
+ * @param {boolean | null} [order_disorder]
896
+ * @param {boolean | null} [remove_solvent]
897
+ * @param {boolean | null} [check_charge_balance]
898
+ * @param {boolean | null} [hydrogens]
899
+ * @param {boolean | null} [check_close_contacts]
667
900
  * @returns {any}
668
901
  */
669
- export function ff_prepare_info(text, minimize, charges, ewald, vibrations) {
902
+ export function ff_prepare_info(text, minimize, charges, ewald, vibrations, merge_duplicates, order_disorder, remove_solvent, check_charge_balance, hydrogens, check_close_contacts) {
670
903
  const val2 = +minimize;
671
904
  const val3 = +charges;
672
905
  const val4 = +ewald;
673
906
  const val5 = +vibrations;
674
907
  const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
675
908
  const len0 = WASM_VECTOR_LEN;
676
- const ret = wasm.ff_prepare_info(ptr0, len0, val2, val3, val4, val5);
909
+ const ret = wasm.ff_prepare_info(ptr0, len0, val2, val3, val4, val5, isLikeNone(merge_duplicates) ? 0xFFFFFF : merge_duplicates ? 1 : 0, isLikeNone(order_disorder) ? 0xFFFFFF : order_disorder ? 1 : 0, isLikeNone(remove_solvent) ? 0xFFFFFF : remove_solvent ? 1 : 0, isLikeNone(check_charge_balance) ? 0xFFFFFF : check_charge_balance ? 1 : 0, isLikeNone(hydrogens) ? 0xFFFFFF : hydrogens ? 1 : 0, isLikeNone(check_close_contacts) ? 0xFFFFFF : check_close_contacts ? 1 : 0);
677
910
  if (ret[2]) {
678
911
  throw takeFromExternrefTable0(ret[1]);
679
912
  }
@@ -1238,7 +1471,71 @@ export function powder_cells_info(number) {
1238
1471
  }
1239
1472
 
1240
1473
  /**
1241
- * Refines positions with a whole-pattern least-squares step.
1474
+ * Finds peaks and indexes the metric families of a measured XY pattern.
1475
+ *
1476
+ * Returns `{ peaks: [{ two_theta, intensity, fwhm }], candidates: [{ system,
1477
+ * a, b, c, alpha, beta, gamma, m20, f_n, coverage, completeness }] }`.
1478
+ *
1479
+ * # Errors
1480
+ *
1481
+ * Returns a JavaScript `Error` for invalid text or a failed search.
1482
+ * @param {string} pattern_text
1483
+ * @param {number} wavelength
1484
+ * @param {number} max_index
1485
+ * @param {number} tolerance
1486
+ * @returns {any}
1487
+ */
1488
+ export function powder_index_info(pattern_text, wavelength, max_index, tolerance) {
1489
+ const val2 = +wavelength;
1490
+ const val3 = +max_index;
1491
+ const val4 = +tolerance;
1492
+ const ptr0 = passStringToWasm0(pattern_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1493
+ const len0 = WASM_VECTOR_LEN;
1494
+ const ret = wasm.powder_index_info(ptr0, len0, val2, val3, val4);
1495
+ if (ret[2]) {
1496
+ throw takeFromExternrefTable0(ret[1]);
1497
+ }
1498
+ return takeFromExternrefTable0(ret[0]);
1499
+ }
1500
+
1501
+ /**
1502
+ * Fits a Pawley model: free intensities, cell, zero shift and width model.
1503
+ *
1504
+ * # Errors
1505
+ *
1506
+ * Returns a JavaScript `Error` for invalid text or a failed fit.
1507
+ * @param {string} text
1508
+ * @param {string} pattern_text
1509
+ * @param {string} profile
1510
+ * @returns {any}
1511
+ */
1512
+ export function powder_pawley_info(text, pattern_text, profile) {
1513
+ let ptr0, len0, ptr1, len1, ptr2, len2;
1514
+ try {
1515
+ ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1516
+ len0 = WASM_VECTOR_LEN;
1517
+ ptr1 = passStringToWasm0(pattern_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1518
+ len1 = WASM_VECTOR_LEN;
1519
+ ptr2 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1520
+ len2 = WASM_VECTOR_LEN;
1521
+ } catch (e) {
1522
+ if (ptr2) { wasm.__wbindgen_free(ptr2, len2 * 1, 1); }
1523
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
1524
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
1525
+ throw e;
1526
+ }
1527
+ const ret = wasm.powder_pawley_info(ptr0, len0, ptr1, len1, ptr2, len2);
1528
+ if (ret[2]) {
1529
+ throw takeFromExternrefTable0(ret[1]);
1530
+ }
1531
+ return takeFromExternrefTable0(ret[0]);
1532
+ }
1533
+
1534
+ /**
1535
+ * Refines a phase with the McCusker stages.
1536
+ *
1537
+ * The March-Dollase axis is the `c` axis. Returns `rwp`, `converged`,
1538
+ * `iterations`, `stages`, `parameters` and `parameter_esds`.
1242
1539
  *
1243
1540
  * # Errors
1244
1541
  *
@@ -1246,10 +1543,24 @@ export function powder_cells_info(number) {
1246
1543
  * @param {string} text
1247
1544
  * @param {string} pattern_text
1248
1545
  * @param {boolean} refine_positions
1546
+ * @param {boolean} refine_adps
1547
+ * @param {boolean} refine_occupancies
1548
+ * @param {boolean} refine_zero
1549
+ * @param {boolean} refine_cell
1550
+ * @param {boolean} refine_width
1551
+ * @param {boolean} refine_texture
1552
+ * @param {boolean} doublet
1249
1553
  * @returns {any}
1250
1554
  */
1251
- export function powder_refine_info(text, pattern_text, refine_positions) {
1555
+ export function powder_refine_info(text, pattern_text, refine_positions, refine_adps, refine_occupancies, refine_zero, refine_cell, refine_width, refine_texture, doublet) {
1252
1556
  const val3 = +refine_positions;
1557
+ const val4 = +refine_adps;
1558
+ const val5 = +refine_occupancies;
1559
+ const val6 = +refine_zero;
1560
+ const val7 = +refine_cell;
1561
+ const val8 = +refine_width;
1562
+ const val9 = +refine_texture;
1563
+ const val10 = +doublet;
1253
1564
  let ptr0, len0, ptr1, len1;
1254
1565
  try {
1255
1566
  ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1261,7 +1572,7 @@ export function powder_refine_info(text, pattern_text, refine_positions) {
1261
1572
  if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
1262
1573
  throw e;
1263
1574
  }
1264
- const ret = wasm.powder_refine_info(ptr0, len0, ptr1, len1, val3);
1575
+ const ret = wasm.powder_refine_info(ptr0, len0, ptr1, len1, val3, val4, val5, val6, val7, val8, val9, val10);
1265
1576
  if (ret[2]) {
1266
1577
  throw takeFromExternrefTable0(ret[1]);
1267
1578
  }
@@ -2044,6 +2355,9 @@ export function __wbindgen_init_externref_table() {
2044
2355
  table.set(1026, true);
2045
2356
  table.set(1027, false);
2046
2357
  }
2358
+ const AgentSessionFinalization = (typeof FinalizationRegistry === 'undefined')
2359
+ ? { register: () => {}, unregister: () => {} }
2360
+ : new FinalizationRegistry(ptr => wasm.__wbg_agentsession_free(ptr, 1));
2047
2361
  const WasmDocumentFinalization = (typeof FinalizationRegistry === 'undefined')
2048
2362
  ? { register: () => {}, unregister: () => {} }
2049
2363
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmdocument_free(ptr, 1));
@@ -2163,6 +2477,10 @@ function handleError(f, args) {
2163
2477
  }
2164
2478
  }
2165
2479
 
2480
+ function isLikeNone(x) {
2481
+ return x === undefined || x === null;
2482
+ }
2483
+
2166
2484
  function passArray32ToWasm0(arg, malloc) {
2167
2485
  const ptr = malloc(arg.length * 4, 4) >>> 0;
2168
2486
  getUint32ArrayMemory0().set(arg, ptr / 4);
Binary file