Work with loop rendering for sequence diagrams

This commit is contained in:
knsv
2014-12-20 09:19:56 +01:00
parent 69c84df367
commit 7bb75c16da
6 changed files with 382 additions and 245 deletions

View File

@@ -459,7 +459,6 @@ describe('when rendering a sequenceDiagram',function() {
'loop Cheers\n' +
'Bob->Alice: Fine!\n' +
'end';
sq.parse(str);
sd.draw(str,'tst');

View File

@@ -205,7 +205,6 @@ var drawMessage = function(elem, startx, stopx, verticalPos, msg){
.attr("stroke", "black")
.attr("class", "link")
.attr("marker-end", "url(#arrowhead)");
//.attr("d", diagonal);
}
g.append("text") // text label for the x axis
@@ -214,7 +213,6 @@ var drawMessage = function(elem, startx, stopx, verticalPos, msg){
.style("text-anchor", "middle")
.text(msg.message);
//console.log('Setting message bounds');
exports.bounds.insert(startx, exports.bounds.getVerticalPos() -10, stopx, exports.bounds.getVerticalPos());
}
else{