Skip to content

Commit

Permalink
fix: add getAtomicNoFromLabel second argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lpatiny committed Jan 25, 2023
1 parent 81d7361 commit 8aa1268
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/com/actelion/research/gwt/minimal/JSMolecule.java
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,8 @@ public StereoMolecule getStereoMolecule() {
public static final String[] VALIDATION_ERRORS_STEREO = {VALIDATION_ERROR_ESR_CENTER_UNKNOWN,
VALIDATION_ERROR_OVER_UNDER_SPECIFIED, VALIDATION_ERROR_AMBIGUOUS_CONFIGURATION};

public static int getAtomicNoFromLabel(String atomLabel) {
return StereoMolecule.getAtomicNoFromLabel(atomLabel);
public static int getAtomicNoFromLabel(String atomLabel, int allowedPseudoAtomGroups) {
return StereoMolecule.getAtomicNoFromLabel(atomLabel, allowedPseudoAtomGroups);
}

public static double getAngle(double x1, double y1, double x2, double y2) {
Expand Down
5 changes: 4 additions & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ export declare class Molecule {
*/
static fromIDCode(idcode: string, ensure2DCoordinates?: boolean): Molecule;

static getAtomicNoFromLabel(atomLabel: string): number;
static getAtomicNoFromLabel(
atomLabel: string,
allowedPseudoAtomGroups?: number,
): number;

static getAngle(x1: number, y1: number, x2: number, y2: number): number;

Expand Down

0 comments on commit 8aa1268

Please sign in to comment.