Creates an EdgeToolbar.
EdgeToolbar
Credit for the original design of this UI.
import { makeEdgeToolbar, Editor } from 'js-draw'; const editor = new Editor(document.body); const toolbar = makeEdgeToolbar(editor); toolbar.addDefaults(); toolbar.addSaveButton(editor => { // TODO }); toolbar.addExitButton(editor => { // TODO });
Creates an
EdgeToolbar
.Credit for the original design of this UI.
Example
See