Thickness is now part of layer styles
This commit is contained in:
@@ -2,6 +2,7 @@ function Tool()
|
||||
{
|
||||
this.index = 0;
|
||||
this.layers = [[],[],[]];
|
||||
this.styles = [{thickness:1},{thickness:10},{thickness:15}];
|
||||
this.verteces = [];
|
||||
this.reqs = {line:2,arc_c:2,arc_r:2,bezier:3,close:0};
|
||||
|
||||
@@ -12,6 +13,14 @@ function Tool()
|
||||
this.index = 0;
|
||||
}
|
||||
|
||||
this.style = function()
|
||||
{
|
||||
if(!this.styles[this.index]){
|
||||
this.styles[this.index] = [];
|
||||
}
|
||||
return this.styles[this.index];
|
||||
}
|
||||
|
||||
this.layer = function()
|
||||
{
|
||||
if(!this.layers[this.index]){
|
||||
|
||||
Reference in New Issue
Block a user