openchemlib 8.12.0 → 8.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openchemlib",
3
- "version": "8.12.0",
3
+ "version": "8.13.0",
4
4
  "description": "Manipulate molecules",
5
5
  "keywords": [
6
6
  "chemistry",
package/types.d.ts CHANGED
@@ -48,6 +48,23 @@ export interface AtomQueryFeatures {
48
48
  ringSizeLarge: boolean;
49
49
  }
50
50
 
51
+ export interface BondQueryFeatures {
52
+ single: boolean;
53
+ double: boolean;
54
+ triple: boolean;
55
+ delocalized: boolean;
56
+ metalLigand: boolean;
57
+ quadruple: boolean;
58
+ quintuple: boolean;
59
+ notRing: boolean;
60
+ ring: boolean;
61
+ aromatic: boolean;
62
+ nonAromatic: boolean;
63
+ ringSize: number;
64
+ brigdeMin: number;
65
+ brigdeSpan: number;
66
+ }
67
+
51
68
  export interface IMoleculeToSVGOptions extends IDepictorOptions {
52
69
  /**
53
70
  * Factor used to compute the size of text nodes.
@@ -945,6 +962,12 @@ export declare class Molecule {
945
962
  */
946
963
  getAtomQueryFeaturesObject(atom: number): AtomQueryFeatures;
947
964
 
965
+ /**
966
+ * Get the bond query features as an object
967
+ * @param bond
968
+ */
969
+ getBondQueryFeaturesObject(bond: number): BondQueryFeatures;
970
+
948
971
  /**
949
972
  * The list of atoms that are allowed at this position during sub-structure
950
973
  * search. (or refused atoms, if atom query feature cAtomQFAny is set).