Remove old size stuff.

This commit is contained in:
Devine Lu Linvega
2018-05-07 16:51:58 +12:00
parent 1b0bdcac91
commit e105ba5280
5 changed files with 25 additions and 34 deletions

View File

@@ -23,6 +23,7 @@ function Tool()
this.layers = [[],[],[]];
this.verteces = [];
this.index = 0;
dotgrid.set_size({width:300,height:300})
}
this.clear = function()
@@ -63,8 +64,14 @@ function Tool()
{
if(!dot.layers || dot.layers.length != 3){ console.log("Incompatible version"); return; }
if(this.settings && (this.settings.width != dot.settings.width || this.settings.height != dot.settings.height)){
dotgrid.set_size({width:dot.settings.width,height:dot.settings.height})
}
this.layers = dot.layers;
this.styles = dot.styles;
this.settings = dot.settings;
this.clear();
dotgrid.draw();
dotgrid.history.push(this.layers);