rdkit-esm 0.4.0 → 0.4.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/dist/index.d.ts +1 -1
- package/dist/index.js +7 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1397,7 +1397,7 @@ declare class Mol implements Disposable {
|
|
|
1397
1397
|
* @param template - Template molecule to align to
|
|
1398
1398
|
* @param options - Alignment options
|
|
1399
1399
|
*/
|
|
1400
|
-
generateAlignedCoords(template: Mol, options?: Partial<RDKitAlignedCoordsOptions>):
|
|
1400
|
+
generateAlignedCoords(template: Mol, options?: Partial<RDKitAlignedCoordsOptions>): RDKitSubstructMatch;
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Normalizes the depiction of the molecule
|
|
1403
1403
|
* @param options - Normalization options
|
package/dist/index.js
CHANGED
|
@@ -3969,7 +3969,7 @@ var Fingerprint = class {
|
|
|
3969
3969
|
}
|
|
3970
3970
|
toString() {
|
|
3971
3971
|
const pieces = [];
|
|
3972
|
-
for (const byte of this.fpU8) pieces.push(...byte.toString(2).split("").reverse());
|
|
3972
|
+
for (const byte of this.fpU8) pieces.push(...byte.toString(2).padStart(8, "0").split("").reverse());
|
|
3973
3973
|
return pieces.join("").substring(0, this.nBits);
|
|
3974
3974
|
}
|
|
3975
3975
|
};
|
|
@@ -4341,7 +4341,12 @@ var Mol = class Mol {
|
|
|
4341
4341
|
* @param options - Alignment options
|
|
4342
4342
|
*/
|
|
4343
4343
|
generateAlignedCoords(template, options) {
|
|
4344
|
-
|
|
4344
|
+
const matchJson = this.jsMol.generate_aligned_coords(template.jsMol, JSON.stringify(options ?? {}));
|
|
4345
|
+
if (matchJson === "" || matchJson === "{}") return {
|
|
4346
|
+
atoms: [],
|
|
4347
|
+
bonds: []
|
|
4348
|
+
};
|
|
4349
|
+
return JSON.parse(matchJson);
|
|
4345
4350
|
}
|
|
4346
4351
|
/**
|
|
4347
4352
|
* Normalizes the depiction of the molecule
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rdkit-esm",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "RDKit minimal lib for the modern web.",
|
|
5
5
|
"homepage": "https://github.com/tandemai/rdkit-esm#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@typescript/native-preview": "7.0.0-dev.20260307.1",
|
|
39
39
|
"@vitest/coverage-v8": "^4.0.18",
|
|
40
40
|
"bumpp": "^10.3.2",
|
|
41
|
-
"oxfmt": "^0.
|
|
41
|
+
"oxfmt": "^0.41.0",
|
|
42
42
|
"rolldown-plugin-wasm": "^0.2.1",
|
|
43
43
|
"tsdown": "^0.18.1",
|
|
44
44
|
"typescript": "^5.9.3",
|