Fixed undo/redo

This commit is contained in:
Devine Lu Linvega
2018-02-06 19:34:45 +13:00
parent 4781eb8040
commit d119160773
9 changed files with 20 additions and 219 deletions

View File

@@ -156,4 +156,14 @@ function Tool()
this.layers = dotgrid.history.next();
dotgrid.draw();
}
this.export = function()
{
return JSON.stringify(this.layers, null, 2);
}
this.import = function(layers)
{
this.layers = layers;
}
}