Divided export options
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user