diff --git a/desktop/sources/scripts/interface.js b/desktop/sources/scripts/interface.js index 1ac054c..ec2ab07 100644 --- a/desktop/sources/scripts/interface.js +++ b/desktop/sources/scripts/interface.js @@ -51,10 +51,10 @@ function Interface (dotgrid) { ${name == 'depth' ? `` : ''} diff --git a/desktop/sources/scripts/renderer.js b/desktop/sources/scripts/renderer.js index 620bb32..e71bb11 100644 --- a/desktop/sources/scripts/renderer.js +++ b/desktop/sources/scripts/renderer.js @@ -30,7 +30,6 @@ function Renderer (dotgrid) { this.drawTranslation() this.drawCursor() this.drawPreview() - this.drawDebug() } this.clear = function () { @@ -258,12 +257,6 @@ function Renderer (dotgrid) { this.context.drawImage(img, 0, 0, this.el.width - 30, this.el.height - 30) } - this.drawDebug = function () { - this.context.strokeRect(0, 0, this.el.width, this.el.height) - this.context.strokeRect((this.el.width / 2) + 15, 0, this.el.width, this.el.height) - this.context.strokeRect(0, (this.el.height / 2) + 15, this.el.width, this.el.height) - } - function isEqual (a, b) { return a && b && Math.abs(a.x) == Math.abs(b.x) && Math.abs(a.y) == Math.abs(b.y) } function clamp (v, min, max) { return v < min ? min : v > max ? max : v } }