Removing debugging code

This commit is contained in:
Jeff Avallone 2014-12-17 10:06:03 -05:00
parent 484abdbb0c
commit 6322b48f31
2 changed files with 0 additions and 45 deletions

View File

@ -89,15 +89,6 @@
.quote {
fill: #a0a0a0;
}
.placeholder text {
fill: #fff;
font-weight: bold;
}
.placeholder rect {
fill: #f00;
}
</style>
</svg>
</div>

View File

@ -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;