Create a new canvas-based editor.
The DOM element in which to create the editor.
Optional
Returns whether the editor has been destroyed.
Clear the editor state. Same as clicking on the clear button in the toolbar.
Destroy the editor. This should be called when the editor is no longer needed to free resources. All methods will throw an error after calling this.
Get the current editor mode.
Get the molecule being edited.
Get the reaction being edited.
Notify the editor that the molecule has changed (programmatically). This will trigger a redraw and an onChange event with isUserEvent=false.
isUserEvent=false
Remove the change listener callback.
Set the molecule to be edited. Actions in the editor will mutate the molecule object directly.
Set a callback to be notified when the editor state changes.
Set the reaction to be edited. Actions in the editor will mutate the reaction object directly.
Create a new canvas-based editor.