openchemlib 9.14.1 → 9.16.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.
@@ -1701,9 +1701,10 @@ export declare class Molecule {
1701
1701
  * label rather than replacing the original atom label. If label is null or
1702
1702
  * equals the normal atom label, then the custom label is removed.
1703
1703
  * @param atom
1704
- * @param label - null to remove custom label
1704
+ * @param label - `null` to remove custom label.
1705
+ * @returns Whether the label was changed.
1705
1706
  */
1706
- setAtomCustomLabel(atom: number, label: string | null): void;
1707
+ setAtomCustomLabel(atom: number, label: string | null): boolean;
1707
1708
 
1708
1709
  /**
1709
1710
  * This is MDL's enhanced stereo representation (ESR). Stereo atoms and bonds
@@ -2977,14 +2978,52 @@ export declare class Canonizer {
2977
2978
  }
2978
2979
 
2979
2980
  /**
2980
- * All depictor options default to `false`.
2981
+ * All boolean depictor options except `inflateToMaxAVBL` and `chiralTextBelowMolecule` default to `false`.
2981
2982
  */
2982
2983
  export interface DepictorOptions {
2984
+ /**
2985
+ * Must be an integer between 0 and 65535.
2986
+ *
2987
+ * If 0 is passed, a constant value of 24 will be used regardless of `inflateToHighResAVBL`.
2988
+ * @default 0
2989
+ */
2990
+ maxAVBL?: number;
2991
+
2992
+ // Please keep the next groups and ordering the same as in AbstractDepictor.java
2993
+ // We reserve the right to improve / fix names if it makes them easier to understand.
2994
+ // Examples: hilite -> highlight, atomNo -> showAtomNumber
2995
+
2996
+ /**
2997
+ * Mutually exclusive with `inflateToHighResAVBL`.
2998
+ * @default true (if inflateToHighResAVBL is not set)
2999
+ */
2983
3000
  inflateToMaxAVBL?: boolean;
3001
+ /**
3002
+ * Mutually exclusive with `inflateToMaxAVBL`.
3003
+ *
3004
+ * Only has an effect if `maxAVBL` has a value different from 0.
3005
+ * @default false
3006
+ */
2984
3007
  inflateToHighResAVBL?: boolean;
3008
+ /**
3009
+ * Put the chiral text just below the molecule.
3010
+ * @default true
3011
+ */
2985
3012
  chiralTextBelowMolecule?: boolean;
3013
+ /**
3014
+ * Put the chiral text just above the molecule.
3015
+ * @default false
3016
+ */
2986
3017
  chiralTextAboveMolecule?: boolean;
3018
+ /**
3019
+ * Put the chiral text at the top of the frame.
3020
+ * @default false
3021
+ */
2987
3022
  chiralTextOnFrameTop?: boolean;
3023
+ /**
3024
+ * Put the chiral text at the bottom of the frame.
3025
+ * @default false
3026
+ */
2988
3027
  chiralTextOnFrameBottom?: boolean;
2989
3028
 
2990
3029
  noTabus?: boolean;
@@ -2995,7 +3034,6 @@ export interface DepictorOptions {
2995
3034
  suppressChiralText?: boolean;
2996
3035
  suppressCIPParity?: boolean;
2997
3036
  suppressESR?: boolean;
2998
- noCarbonLabelWithCustomLabel?: boolean;
2999
3037
 
3000
3038
  showSymmetryAny?: boolean;
3001
3039
  showSymmetrySimple?: boolean;
@@ -3005,6 +3043,8 @@ export interface DepictorOptions {
3005
3043
  noColorOnESRAndCIP?: boolean;
3006
3044
  noImplicitHydrogen?: boolean;
3007
3045
  drawBondsInGray?: boolean;
3046
+ noCarbonLabelWithCustomLabel?: boolean;
3047
+ noAtomCustomLabels?: boolean;
3008
3048
  }
3009
3049
 
3010
3050
  export declare class Reaction {