Skip to content

Commit

Permalink
#2619 - added the getCDXml and getCDX methods to the ketcher api
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitrii Vasilev committed May 18, 2023
1 parent 51958e6 commit 1aacf46
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/ketcher-core/src/application/ketcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,22 @@ export class Ketcher {
)
}

getCDXml(): Promise<string> {
return getStructure(
SupportedFormat.cdxml,
this.#formatterFactory,
this.#editor.struct()
)
}

getCDX(): Promise<string> {
return getStructure(
SupportedFormat.cdx,
this.#formatterFactory,
this.#editor.struct()
)
}

getInchi(withAuxInfo = false): Promise<string> {
return getStructure(
withAuxInfo ? SupportedFormat.inChIAuxInfo : SupportedFormat.inChI,
Expand Down

0 comments on commit 1aacf46

Please sign in to comment.