Divided export options

This commit is contained in:
Devine Lu Linvega
2018-05-11 09:57:14 +12:00
parent b6a1cf703c
commit d1fad873c7
3 changed files with 47 additions and 23 deletions

View File

@@ -30,18 +30,21 @@ function Tool()
{
this.vertices = [];
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
}
this.undo = function()
{
this.layers = dotgrid.history.prev();
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
}
this.redo = function()
{
this.layers = dotgrid.history.next();
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
}
// I/O
@@ -57,6 +60,7 @@ function Tool()
dotgrid.history.push(this.layers);
this.clear();
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
}
this.replace = function(dot)
@@ -73,6 +77,7 @@ function Tool()
this.clear();
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
dotgrid.history.push(this.layers);
}
@@ -85,6 +90,7 @@ function Tool()
this.layer().pop();
this.clear();
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
}
this.remove_segments_at = function(pos)
@@ -103,12 +109,14 @@ function Tool()
}
this.clear();
dotgrid.guide.refresh();
dotgrid.interface.refresh(true);
}
this.add_vertex = function(pos)
{
pos = {x:Math.abs(pos.x),y:Math.abs(pos.y)}
this.vertices.push(pos);
dotgrid.interface.refresh(true);
}
this.vertex_at = function(pos)