-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Macro: #3531 – provide save/open ket and molv3000 ketcher api for macromolecules #3637
Macro: #3531 – provide save/open ket and molv3000 ketcher api for macromolecules #3637
Conversation
…cro-provide-saveopen-ket-and-molv3000-ketcher-api-for-macromolecules
export function deleteAllEntitiesOnCanvas() { | ||
const editor = CoreEditor.provideEditorInstance(); | ||
const modelChanges = editor.drawingEntitiesManager.deleteAllEntities(); | ||
editor.renderersContainer.update(modelChanges); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we need to add changes to history also
deserialisedKet.drawingEntitiesManager.mergeInto( | ||
editor.drawingEntitiesManager, | ||
); | ||
editor.renderersContainer.update(deserialisedKet.modelChanges); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here probably too
a6f58ff
to
a3e74d9
Compare
README.md
Outdated
`setMolecule(structure: string): Promise<void>` – adds passed structure on the canvas. Current structure is not changed. | ||
Parameters: `structure: string`. Structure is a string in any supported format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it is 'addFragment', not 'setMolecule'
README.md
Outdated
`getRxn(molfileFormat): Promise<string>` – returns `string` representation of drawn structure in RXN-format. | ||
Parameters: `molfileFormat: 'v2000' | 'v3000'`. Optional, by default, 'v2000'. Indicates, in which format result will be returned. | ||
|
||
`getKet(): Promise<string>` – returns `string` representation of drawn structure is internal Ket-format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it planned to be "in internal Ket-format."
a3e74d9
to
5b91202
Compare
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
closes #3531
Check list
#1234 – issue name