@kent-tokyo/chematic 1.0.26 → 1.0.28

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/README.md CHANGED
@@ -4,7 +4,7 @@ WebAssembly bindings for [chematic](https://github.com/kent-tokyo/chematic), a p
4
4
 
5
5
  Published to npm as [`@kent-tokyo/chematic`](https://www.npmjs.com/package/@kent-tokyo/chematic).
6
6
 
7
- The current workspace line is 1.0.26. The binding keeps bounded parsing,
7
+ The current workspace line is 1.0.28. The binding keeps bounded parsing,
8
8
  typed failures, and opt-in `embed_pipeline_v2_json`; 3D/MMFF94 behavior remains
9
9
  Experimental and is not a claim of full RDKit parity.
10
10
 
@@ -2852,6 +2852,16 @@ export function topo_path_bitvec(mol: MolHandle): Uint8Array;
2852
2852
  */
2853
2853
  export function torsion_bitvec(mol: MolHandle): Uint8Array;
2854
2854
 
2855
+ /**
2856
+ * Scan the MMFF94 torsion energy for a bonded i-j-k-l atom sequence.
2857
+ *
2858
+ * Coordinates are generated internally; `MolHandle` stores molecular
2859
+ * topology rather than a caller-owned conformer. Returns a JSON array of
2860
+ * `{"angle": degrees, "energy": kcal_per_mol}` points, or
2861
+ * `{"error":"..."}` for invalid scan parameters or force-field failures.
2862
+ */
2863
+ export function torsion_scan_json(mol: MolHandle, atom_i: number, atom_j: number, atom_k: number, atom_l: number, steps: number): string;
2864
+
2855
2865
  export function v3000_sgroups_json(block: string): string;
2856
2866
 
2857
2867
  /**
@@ -3367,6 +3377,7 @@ export interface InitOutput {
3367
3377
  readonly to_xyz: (a: number) => [number, number];
3368
3378
  readonly topo_path_bitvec: (a: number) => [number, number];
3369
3379
  readonly torsion_bitvec: (a: number) => [number, number];
3380
+ readonly torsion_scan_json: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
3370
3381
  readonly v3000_sgroups_json: (a: number, b: number) => [number, number, number, number];
3371
3382
  readonly validate_nmr_spectrum_json: (a: number, b: number) => [number, number];
3372
3383
  readonly virtual_screen_ecfp4_json: (a: number, b: number, c: number, d: number, e: number) => [number, number];
package/chematic_wasm.js CHANGED
@@ -7530,6 +7530,35 @@ export function torsion_bitvec(mol) {
7530
7530
  return v1;
7531
7531
  }
7532
7532
 
7533
+ /**
7534
+ * Scan the MMFF94 torsion energy for a bonded i-j-k-l atom sequence.
7535
+ *
7536
+ * Coordinates are generated internally; `MolHandle` stores molecular
7537
+ * topology rather than a caller-owned conformer. Returns a JSON array of
7538
+ * `{"angle": degrees, "energy": kcal_per_mol}` points, or
7539
+ * `{"error":"..."}` for invalid scan parameters or force-field failures.
7540
+ * @param {MolHandle} mol
7541
+ * @param {number} atom_i
7542
+ * @param {number} atom_j
7543
+ * @param {number} atom_k
7544
+ * @param {number} atom_l
7545
+ * @param {number} steps
7546
+ * @returns {string}
7547
+ */
7548
+ export function torsion_scan_json(mol, atom_i, atom_j, atom_k, atom_l, steps) {
7549
+ let deferred1_0;
7550
+ let deferred1_1;
7551
+ try {
7552
+ _assertClass(mol, MolHandle);
7553
+ const ret = wasm.torsion_scan_json(mol.__wbg_ptr, atom_i, atom_j, atom_k, atom_l, steps);
7554
+ deferred1_0 = ret[0];
7555
+ deferred1_1 = ret[1];
7556
+ return getStringFromWasm0(ret[0], ret[1]);
7557
+ } finally {
7558
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7559
+ }
7560
+ }
7561
+
7533
7562
  /**
7534
7563
  * @param {string} block
7535
7564
  * @returns {string}
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Kentaro Tanabe (kent-tokyo) <kent-tokyo@users.noreply.github.com>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for chematic — use chematic from JavaScript/TypeScript",
8
- "version": "1.0.26",
8
+ "version": "1.0.28",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",