openchemlib 9.1.1 → 9.3.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 CHANGED
@@ -1,24 +1,21 @@
1
- # OpenChemLib JS
2
-
3
- JavaScript port of the [OpenChemLib](https://github.com/actelion/openchemlib) Java library.
4
-
5
1
  <h3 align="center">
6
-
7
2
  <a href="https://www.zakodium.com">
8
3
  <img src="https://www.zakodium.com/brand/zakodium-logo-white.svg" width="50" alt="Zakodium logo" />
9
4
  </a>
10
-
11
5
  <p>
12
6
  Maintained by <a href="https://www.zakodium.com">Zakodium</a>
13
7
  </p>
14
-
15
- [![NPM version][npm-image]][npm-url]
16
- [![build status][ci-image]][ci-url]
17
- [![npm download][download-image]][download-url]
18
- [![DOI](https://www.zenodo.org/badge/23346814.svg)](https://www.zenodo.org/badge/latestdoi/23346814)
19
-
20
8
  </h3>
21
9
 
10
+ # OpenChemLib JS
11
+
12
+ [![NPM version][npm-image]][npm-url]
13
+ [![npm download][download-image]][download-url]
14
+ [![license][license-image]][license-url]
15
+ [![DOI](https://www.zenodo.org/badge/23346814.svg)](https://www.zenodo.org/badge/latestdoi/23346814)
16
+
17
+ JavaScript port of the [OpenChemLib](https://github.com/actelion/openchemlib) Java library.
18
+
22
19
  ## Installation
23
20
 
24
21
  ```console
@@ -27,11 +24,12 @@ npm install openchemlib
27
24
 
28
25
  ## Documentation
29
26
 
30
- - [TypeDoc home page](https://cheminfo.github.io/openchemlib-js/index.html)
27
+ - [Generated API documentation](https://cheminfo.github.io/openchemlib-js/)
28
+ - [Web examples](https://openchemlib-js.pages.dev)
31
29
 
32
30
  ## Development
33
31
 
34
- To build this project, you need :
32
+ To build this project, you need:
35
33
 
36
34
  - Java JDK (Tested with version 21)
37
35
  - GWT (Tested with version 2.12.2, [Download build here](http://www.gwtproject.org/download.html))
@@ -39,7 +37,9 @@ To build this project, you need :
39
37
 
40
38
  ### Install dependencies
41
39
 
42
- `npm ci`
40
+ ```console
41
+ npm ci
42
+ ```
43
43
 
44
44
  ### Configure directories
45
45
 
@@ -51,11 +51,6 @@ If you want to use a custom JDK installation, set the "jdk" key to be the path t
51
51
  To run one of the scripts, use `npm run <scriptName>`.
52
52
  To pass additional options, use `npm run <scriptName> -- --option`.
53
53
 
54
- **Options** :
55
-
56
- - -m [name]: only process module "name"
57
- - -v: verbose output
58
-
59
54
  #### build-java
60
55
 
61
56
  Compile and export the Java API.
@@ -70,7 +65,7 @@ Copy the required java files from the openchemlib project.
70
65
 
71
66
  [npm-image]: https://img.shields.io/npm/v/openchemlib.svg
72
67
  [npm-url]: https://www.npmjs.com/package/openchemlib
73
- [ci-image]: https://github.com/cheminfo/openchemlib-js/workflows/Node.js%20CI/badge.svg?branch=main
74
- [ci-url]: https://github.com/cheminfo/openchemlib-js/actions?query=workflow%3A%22Node.js+CI%22
75
68
  [download-image]: https://img.shields.io/npm/dm/openchemlib.svg
76
69
  [download-url]: https://www.npmjs.com/package/openchemlib
70
+ [license-image]: https://img.shields.io/npm/l/openchemlib.svg
71
+ [license-url]: https://github.com/cheminfo/openchemlib-js/blob/main/LICENSE
@@ -2866,6 +2866,50 @@ export declare class CanonizerUtil {
2866
2866
  static getIDCode(mol: Molecule, type: number): string;
2867
2867
  }
2868
2868
 
2869
+ export interface CanonizerOptions {
2870
+ createSymmetryRank?: boolean;
2871
+ considerStereoheterotopicity?: boolean;
2872
+ encodeAtomCustomLabels?: boolean;
2873
+ encodeAtomSelection?: boolean;
2874
+ assignParitiesToTetrahedralN?: boolean;
2875
+ coordsAre3d?: boolean;
2876
+ createPseudoStereoGroups?: boolean;
2877
+ distinguishRacemicOrGroups?: boolean;
2878
+ tieBreakFreeValenceAtoms?: boolean;
2879
+ encodeAtomCustomLabelsWithoutRanking?: boolean;
2880
+ neglectAnyStereoInformation?: boolean;
2881
+ }
2882
+
2883
+ export declare class Canonizer {
2884
+ constructor(mol: Molecule, options?: CanonizerOptions);
2885
+
2886
+ hasCIPParityDistinctionProblem(): boolean;
2887
+
2888
+ getCanMolecule(includeExplicitHydrogen: boolean): Molecule;
2889
+
2890
+ getIDCode(): string;
2891
+
2892
+ getFinalRank(): number[];
2893
+
2894
+ getSymmetryRank(atom: number): number;
2895
+
2896
+ getSymmetryRanks(): number[];
2897
+
2898
+ invalidateCoordinates(): void;
2899
+
2900
+ getEncodedCoordinates(keepPositionAndScale: boolean): string;
2901
+
2902
+ getEncodedMapping(): string;
2903
+
2904
+ normalizeEnantiomer(): boolean;
2905
+
2906
+ setParities(): void;
2907
+
2908
+ getGraphAtoms(): number[];
2909
+
2910
+ getGraphIndexes(): number[];
2911
+ }
2912
+
2869
2913
  /**
2870
2914
  * All depictor options default to `false`.
2871
2915
  */