@kent-tokyo/chematic 0.23.0 → 0.25.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.
@@ -2342,6 +2342,14 @@ export function tanimoto_topo_path(a: MolHandle, b: MolHandle): number;
2342
2342
  */
2343
2343
  export function tanimoto_torsion(a: MolHandle, b: MolHandle): number;
2344
2344
 
2345
+ /**
2346
+ * Compute the tautomer parent with explicit resource limits.
2347
+ * Returns `{"smiles":"...","status":"completed"}` (or a structured
2348
+ * error) so callers can distinguish a definite result from a budget-limited
2349
+ * one.
2350
+ */
2351
+ export function tautomer_parent_json(mol: MolHandle, max_transforms: number, max_tautomers: number, timeout_ms?: bigint | null): string;
2352
+
2345
2353
  /**
2346
2354
  * Serialise a `MolHandle` to a CML string with 2D coordinates.
2347
2355
  *
@@ -2833,6 +2841,7 @@ export interface InitOutput {
2833
2841
  readonly tanimoto_smiles: (a: number, b: number, c: number, d: number) => [number, number, number];
2834
2842
  readonly tanimoto_topo_path: (a: number, b: number) => number;
2835
2843
  readonly tanimoto_torsion: (a: number, b: number) => number;
2844
+ readonly tautomer_parent_json: (a: number, b: number, c: number, d: number, e: bigint) => [number, number];
2836
2845
  readonly to_cml: (a: number) => [number, number];
2837
2846
  readonly to_extxyz_json: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
2838
2847
  readonly to_mol_block: (a: number) => [number, number];
package/chematic_wasm.js CHANGED
@@ -5910,6 +5910,31 @@ export function tanimoto_torsion(a, b) {
5910
5910
  return ret;
5911
5911
  }
5912
5912
 
5913
+ /**
5914
+ * Compute the tautomer parent with explicit resource limits.
5915
+ * Returns `{"smiles":"...","status":"completed"}` (or a structured
5916
+ * error) so callers can distinguish a definite result from a budget-limited
5917
+ * one.
5918
+ * @param {MolHandle} mol
5919
+ * @param {number} max_transforms
5920
+ * @param {number} max_tautomers
5921
+ * @param {bigint | null} [timeout_ms]
5922
+ * @returns {string}
5923
+ */
5924
+ export function tautomer_parent_json(mol, max_transforms, max_tautomers, timeout_ms) {
5925
+ let deferred1_0;
5926
+ let deferred1_1;
5927
+ try {
5928
+ _assertClass(mol, MolHandle);
5929
+ const ret = wasm.tautomer_parent_json(mol.__wbg_ptr, max_transforms, max_tautomers, !isLikeNone(timeout_ms), isLikeNone(timeout_ms) ? BigInt(0) : timeout_ms);
5930
+ deferred1_0 = ret[0];
5931
+ deferred1_1 = ret[1];
5932
+ return getStringFromWasm0(ret[0], ret[1]);
5933
+ } finally {
5934
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5935
+ }
5936
+ }
5937
+
5913
5938
  /**
5914
5939
  * Serialise a `MolHandle` to a CML string with 2D coordinates.
5915
5940
  *
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "kent-tokyo <kent-tokyo@users.noreply.github.com>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for chematic — use chematic from JavaScript/TypeScript",
8
- "version": "0.23.0",
8
+ "version": "0.25.0",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",