openchemlib 7.5.0 → 8.0.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/README.md +4 -4
- package/dist/openchemlib-core.js +143 -144
- package/dist/openchemlib-full.js +157 -155
- package/dist/openchemlib-full.pretty.js +55308 -53466
- package/dist/openchemlib-minimal.js +110 -107
- package/package.json +10 -8
- package/types.d.ts +26 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openchemlib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Manipulate molecules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chemistry",
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
"export": "node scripts/build.js export",
|
|
18
18
|
"build": "npm run build:min && npm run build-full-pretty",
|
|
19
19
|
"build-core": "npm run build:min -- -m core",
|
|
20
|
-
"build-debug": "npm run build:pretty -- -m full --verbose",
|
|
20
|
+
"build-debug-full": "npm run build:pretty -- -m full --verbose",
|
|
21
|
+
"build-debug-core": "npm run build:pretty -- -m core --verbose",
|
|
22
|
+
"build-debug-minimal": "npm run build:pretty -- -m minimal --verbose",
|
|
21
23
|
"build-minimal": "npm run build:min -- -m minimal",
|
|
22
24
|
"build-full-pretty": "npm run build:pretty -- -m full",
|
|
23
25
|
"eslint": "eslint __tests__ scripts benchmark",
|
|
@@ -54,13 +56,13 @@
|
|
|
54
56
|
"homepage": "https://github.com/cheminfo/openchemlib-js",
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"benchmark": "^2.1.4",
|
|
57
|
-
"eslint": "^8.
|
|
58
|
-
"eslint-config-cheminfo": "^
|
|
59
|
-
"fs-extra": "^10.
|
|
59
|
+
"eslint": "^8.22.0",
|
|
60
|
+
"eslint-config-cheminfo": "^8.0.2",
|
|
61
|
+
"fs-extra": "^10.1.0",
|
|
60
62
|
"gwt-api-exporter": "^2.0.0",
|
|
61
|
-
"jest": "^
|
|
62
|
-
"prettier": "^2.
|
|
63
|
+
"jest": "^28.1.3",
|
|
64
|
+
"prettier": "^2.7.1",
|
|
63
65
|
"rimraf": "^3.0.2",
|
|
64
|
-
"yargs": "^17.
|
|
66
|
+
"yargs": "^17.5.1"
|
|
65
67
|
}
|
|
66
68
|
}
|
package/types.d.ts
CHANGED
|
@@ -480,11 +480,27 @@ export declare class Molecule {
|
|
|
480
480
|
|
|
481
481
|
addOrChangeBond(atm1: number, atm2: number, type: number): number;
|
|
482
482
|
|
|
483
|
-
addRing(
|
|
483
|
+
addRing(
|
|
484
|
+
x: number,
|
|
485
|
+
y: number,
|
|
486
|
+
ringSize: number,
|
|
487
|
+
aromatic: boolean,
|
|
488
|
+
bondLength: number,
|
|
489
|
+
): boolean;
|
|
484
490
|
|
|
485
|
-
addRingToAtom(
|
|
491
|
+
addRingToAtom(
|
|
492
|
+
atom: number,
|
|
493
|
+
ringSize: number,
|
|
494
|
+
aromatic: boolean,
|
|
495
|
+
bondLength: number,
|
|
496
|
+
): boolean;
|
|
486
497
|
|
|
487
|
-
addRingToBond(
|
|
498
|
+
addRingToBond(
|
|
499
|
+
bond: number,
|
|
500
|
+
ringSize: number,
|
|
501
|
+
aromatic: boolean,
|
|
502
|
+
bondLength: number,
|
|
503
|
+
): boolean;
|
|
488
504
|
|
|
489
505
|
changeAtom(
|
|
490
506
|
atom: number,
|
|
@@ -843,7 +859,7 @@ export declare class Molecule {
|
|
|
843
859
|
* <i>getAtomQueryFeatures() & cAtomQFHydrogen</i>
|
|
844
860
|
* @param atom
|
|
845
861
|
*/
|
|
846
|
-
getAtomQueryFeatures(atom: number): number;
|
|
862
|
+
// getAtomQueryFeatures(atom: number): number;
|
|
847
863
|
|
|
848
864
|
/**
|
|
849
865
|
* Gets an atom's radical state as singulet,dublet,triplet or none
|
|
@@ -1276,7 +1292,7 @@ export declare class Molecule {
|
|
|
1276
1292
|
* @param feature - one of cAtomQF...
|
|
1277
1293
|
* @param value - if true, the feature is set, otherwise it is removed
|
|
1278
1294
|
*/
|
|
1279
|
-
setAtomQueryFeature(atom: number, feature: number, value: boolean): void;
|
|
1295
|
+
// setAtomQueryFeature(atom: number, feature: number, value: boolean): void;
|
|
1280
1296
|
|
|
1281
1297
|
/**
|
|
1282
1298
|
* Sets an atom's radical state as singulet,dublet,triplet or none
|
|
@@ -2593,42 +2609,29 @@ export declare class CanonizerUtil {
|
|
|
2593
2609
|
*/
|
|
2594
2610
|
export interface IDepictorOptions {
|
|
2595
2611
|
inflateToMaxAVBL?: boolean;
|
|
2596
|
-
|
|
2597
2612
|
inflateToHighResAVBL?: boolean;
|
|
2598
|
-
|
|
2599
2613
|
chiralTextBelowMolecule?: boolean;
|
|
2600
|
-
|
|
2601
2614
|
chiralTextAboveMolecule?: boolean;
|
|
2602
|
-
|
|
2603
2615
|
chiralTextOnFrameTop?: boolean;
|
|
2604
|
-
|
|
2605
2616
|
chiralTextOnFrameBottom?: boolean;
|
|
2606
2617
|
|
|
2607
2618
|
noTabus?: boolean;
|
|
2608
|
-
|
|
2609
2619
|
showAtomNumber?: boolean;
|
|
2610
|
-
|
|
2611
2620
|
showBondNumber?: boolean;
|
|
2612
|
-
|
|
2613
2621
|
highlightQueryFeatures?: boolean;
|
|
2614
|
-
|
|
2615
2622
|
showMapping?: boolean;
|
|
2616
|
-
|
|
2617
2623
|
suppressChiralText?: boolean;
|
|
2618
|
-
|
|
2619
2624
|
suppressCIPParity?: boolean;
|
|
2620
|
-
|
|
2621
2625
|
suppressESR?: boolean;
|
|
2622
2626
|
|
|
2627
|
+
showSymmetryAny?: boolean;
|
|
2623
2628
|
showSymmetrySimple?: boolean;
|
|
2624
|
-
|
|
2625
|
-
showSymmetryDiastereotopic?: boolean;
|
|
2626
|
-
|
|
2627
|
-
showSymmetryEnantiotopic?: boolean;
|
|
2628
|
-
|
|
2629
|
+
showSymmetryStereoHeterotopicity?: boolean;
|
|
2629
2630
|
noImplicitAtomLabelColors?: boolean;
|
|
2630
|
-
|
|
2631
2631
|
noStereoProblem?: boolean;
|
|
2632
|
+
noColorOnESRAndCIP?: boolean;
|
|
2633
|
+
noImplicitHydrogen?: boolean;
|
|
2634
|
+
drawBondsInGray?: boolean;
|
|
2632
2635
|
}
|
|
2633
2636
|
|
|
2634
2637
|
export declare class Reaction {
|