diff --git a/packages/ketcher-core/src/application/ketcher.ts b/packages/ketcher-core/src/application/ketcher.ts index 8f197274c3..b66af20d13 100644 --- a/packages/ketcher-core/src/application/ketcher.ts +++ b/packages/ketcher-core/src/application/ketcher.ts @@ -217,6 +217,22 @@ export class Ketcher { ) } + getCDXml(): Promise { + return getStructure( + SupportedFormat.cdxml, + this.#formatterFactory, + this.#editor.struct() + ) + } + + getCDX(): Promise { + return getStructure( + SupportedFormat.cdx, + this.#formatterFactory, + this.#editor.struct() + ) + } + getInchi(withAuxInfo = false): Promise { return getStructure( withAuxInfo ? SupportedFormat.inChIAuxInfo : SupportedFormat.inChI,