added UI for thickness and linecap settings
This commit is contained in:
@@ -227,4 +227,16 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y,thickness = 3,lineca
|
||||
y = parseInt(y/this.grid_height) * this.grid_height + (this.grid_height/2);
|
||||
return [parseInt(x),parseInt(y)];
|
||||
}
|
||||
|
||||
// Settings
|
||||
|
||||
this.update_style = function(attribute, value) {
|
||||
switch(attribute) {
|
||||
case "strokeWidth":
|
||||
vector_element.style.strokeWidth = value;
|
||||
break;
|
||||
case "strokeLinecap":
|
||||
vector_element.style.strokeLinecap = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user