Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 484 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 484 Bytes

drawing

draw things in your browser

You can easily set it up and export it if you want to do that.

Examples

// Create an editor
var element = document.querySelector("div"),
    settings = {};
const x = new Drawing(element, settings);
x.create();
// Undo
x.undo();

// Redo
x.redo();
// Imports an image and adds it to the history
x.import("data:image/png;base64,...", true);

// Exports everything drawn to a data URL
var exported = x.export();