ketcher-core
Version:
Web-based molecule sketcher
40 lines (39 loc) • 2.26 kB
TypeScript
import { Atom as MicromoleculesAtom, Struct } from "../../domain/entities";
import { DrawingEntitiesManager } from "../../domain/entities/DrawingEntitiesManager";
import { ReStruct } from "../render";
import { BaseMonomer } from "../../domain/entities/BaseMonomer";
import { Command } from "../../domain/entities/Command";
import { PolymerBond } from "../../domain/entities/PolymerBond";
import { AttachmentPointName } from "../../domain/types";
import { MonomerToAtomBond } from "../../domain/entities/MonomerToAtomBond";
import { Atom } from "../../domain/entities/CoreAtom";
export declare class MacromoleculesConverter {
private static convertMonomerToMonomerMicromolecule;
private static addMonomerAtomToStruct;
static convertAttachmentPointNameToNumber(attachmentPointName: AttachmentPointName): number;
static findAttachmentPointAtom(polymerBond: PolymerBond | MonomerToAtomBond, monomer: BaseMonomer, monomerToAtomIdMap: Map<BaseMonomer, Map<number, number>>): {
attachmentAtomId: undefined;
attachmentPointNumber: undefined;
globalAttachmentAtomId?: undefined;
} | {
globalAttachmentAtomId: number | false | undefined;
attachmentAtomId: number | false;
attachmentPointNumber: number;
};
static convertDrawingEntitiesToStruct(drawingEntitiesManager: DrawingEntitiesManager, struct: Struct, reStruct?: ReStruct): {
struct: Struct;
reStruct: ReStruct | undefined;
conversionErrorMessage: string;
};
private static convertMonomerMicromoleculeToMonomer;
private static convertFragmentToChem;
static getAttachmentPointLabel(atom: MicromoleculesAtom): string;
static getFragmentsGroupedBySgroup(struct: Struct): number[][];
static findAtomByMicromoleculeAtomId(drawingEntitiesManager: DrawingEntitiesManager, atomId: number, monomer?: BaseMonomer): Atom | undefined;
static convertStructToDrawingEntities(struct: Struct, drawingEntitiesManager: DrawingEntitiesManager): {
drawingEntitiesManager: DrawingEntitiesManager;
modelChanges: Command;
fragmentIdToMonomer: Map<number, BaseMonomer>;
fragmentIdToAtomIdMap: Map<number, Map<number, number>>;
};
}