From 6322b48f31f78fb46751357fb3bed22f0c091a56 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Wed, 17 Dec 2014 10:06:03 -0500 Subject: [PATCH] Removing debugging code --- src/index.html | 9 -------- src/js/parser/javascript/base.js | 36 -------------------------------- 2 files changed, 45 deletions(-) diff --git a/src/index.html b/src/index.html index a8e1023..a5a2e61 100644 --- a/src/index.html +++ b/src/index.html @@ -89,15 +89,6 @@ .quote { fill: #a0a0a0; } - - .placeholder text { - fill: #fff; - font-weight: bold; - } - - .placeholder rect { - fill: #f00; - } diff --git a/src/js/parser/javascript/base.js b/src/js/parser/javascript/base.js index aad8c1e..107b56e 100644 --- a/src/js/parser/javascript/base.js +++ b/src/js/parser/javascript/base.js @@ -70,24 +70,6 @@ export default { return deferred.promise; }, - renderAnchor() { - var box = this.getBBox(), - anchorLine; - - this.container.path(box.path) - .attr({ - style: 'stroke:#000;stroke-dasharray:2,2;;' - }); - anchorLine = this.container.path(`M${box.ax},${box.ay}H${box.ax2}`) - .attr({ - style: 'stroke:#f00;stroke-dasharray:2,2;', - 'data-type': this.type, - 'data-anchor-type': box.atype - }); - - console.log(box, anchorLine.node); - }, - startRender() { renderCounter++; }, @@ -124,11 +106,6 @@ export default { this.startRender(); return this._render() - .then(() => { - if (this.anchorDebug) { - this.renderAnchor(); - } - }) .then(this.doneRender.bind(this)) .then(_.constant(this)); }, @@ -139,19 +116,6 @@ export default { return node.render(this.container); }, - _render() { - console.log(this.type, this); - - this.container.addClass('placeholder'); - - return this.renderLabel(this.type + ': ' + this.textValue).then(label => { - label.select('rect').attr({ - rx: 10, - ry: 10 - }); - }); - }, - spaceHorizontally(items, options) { var verticalCenter = 0, normalize = this.normalizeBBox;