Removed old wrapper
This commit is contained in:
@@ -16,8 +16,6 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
|
||||
this.element = document.createElement("div");
|
||||
this.element.id = "dotgrid";
|
||||
this.wrapper = document.createElement("div");
|
||||
this.wrapper.id = "wrapper";
|
||||
|
||||
this.svg_el = null;
|
||||
this.layer_1 = document.createElementNS("http://www.w3.org/2000/svg", "path"); this.layer_1.id = "layer_1"; this.layer_1.style.stroke = "black";
|
||||
@@ -28,10 +26,8 @@ function Dotgrid(width,height,grid_x,grid_y,block_x,block_y)
|
||||
|
||||
this.install = function()
|
||||
{
|
||||
document.getElementById("app").appendChild(this.wrapper);
|
||||
this.wrapper.appendChild(this.element);
|
||||
this.element.appendChild(this.guide.el);
|
||||
this.wrapper.appendChild(this.render.el);
|
||||
document.getElementById("app").appendChild(this.element);
|
||||
document.getElementById("app").appendChild(this.guide.el);
|
||||
|
||||
// Vector
|
||||
this.svg_el = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
||||
|
||||
@@ -20,10 +20,11 @@ function Guide()
|
||||
|
||||
this.resize = function(size)
|
||||
{
|
||||
this.el.width = (size.width+40)*2;
|
||||
this.el.height = (size.height+40)*2;
|
||||
this.el.style.width = (size.width+40)+"px";
|
||||
this.el.style.height = (size.height+40)+"px";
|
||||
var offset = 30
|
||||
this.el.width = (size.width+offset)*2;
|
||||
this.el.height = (size.height+offset)*2;
|
||||
this.el.style.width = (size.width+offset)+"px";
|
||||
this.el.style.height = (size.height+offset)+"px";
|
||||
|
||||
this.refresh();
|
||||
}
|
||||
@@ -35,7 +36,6 @@ function Guide()
|
||||
|
||||
this.refresh = function()
|
||||
{
|
||||
console.log("refresh")
|
||||
this.clear();
|
||||
|
||||
// Markers
|
||||
|
||||
Reference in New Issue
Block a user