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 { .quote {
fill: #a0a0a0; fill: #a0a0a0;
} }
.placeholder text {
fill: #fff;
font-weight: bold;
}
.placeholder rect {
fill: #f00;
}
</style> </style>
</svg> </svg>
</div> </div>

View File

@ -70,24 +70,6 @@ export default {
return deferred.promise; 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() { startRender() {
renderCounter++; renderCounter++;
}, },
@ -124,11 +106,6 @@ export default {
this.startRender(); this.startRender();
return this._render() return this._render()
.then(() => {
if (this.anchorDebug) {
this.renderAnchor();
}
})
.then(this.doneRender.bind(this)) .then(this.doneRender.bind(this))
.then(_.constant(this)); .then(_.constant(this));
}, },
@ -139,19 +116,6 @@ export default {
return node.render(this.container); 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) { spaceHorizontally(items, options) {
var verticalCenter = 0, var verticalCenter = 0,
normalize = this.normalizeBBox; normalize = this.normalizeBBox;