diff --git a/desktop/sources/scripts/renderer.js b/desktop/sources/scripts/renderer.js index 1ec4a58..b79df9d 100644 --- a/desktop/sources/scripts/renderer.js +++ b/desktop/sources/scripts/renderer.js @@ -38,14 +38,14 @@ function Renderer() this.layer_2.style.strokeLinejoin = styles[1].strokeLinejoin; this.layer_2.style.stroke = styles[1].color; this.layer_2.style.fill = styles[1].fill; - this.layer_1.setAttribute("d",paths[1]) + this.layer_2.setAttribute("d",paths[1]) this.layer_3.style.strokeWidth = styles[2].thickness; this.layer_3.style.strokeLinecap = styles[2].strokeLinecap; this.layer_3.style.strokeLinejoin = styles[2].strokeLinejoin; this.layer_3.style.stroke = styles[2].color; this.layer_3.style.fill = styles[2].fill; - this.layer_1.setAttribute("d",paths[2]) + this.layer_3.setAttribute("d",paths[2]) } this.to_png = function(size = {width:1280,height:1280},callback = dotgrid.render) diff --git a/desktop/sources/scripts/tool.js b/desktop/sources/scripts/tool.js index 2b4d567..87e4b8b 100644 --- a/desktop/sources/scripts/tool.js +++ b/desktop/sources/scripts/tool.js @@ -190,8 +190,8 @@ function Tool() this.paths = function() { var l1 = new Generator(dotgrid.tool.layers[0]).toString({x:0,y:0},1) - var l2 = new Generator(dotgrid.tool.layers[0]).toString({x:0,y:0},1) - var l3 = new Generator(dotgrid.tool.layers[0]).toString({x:0,y:0},1) + var l2 = new Generator(dotgrid.tool.layers[1]).toString({x:0,y:0},1) + var l3 = new Generator(dotgrid.tool.layers[2]).toString({x:0,y:0},1) return [l1,l2,l3] }