Skip to content

Commit

Permalink
Update color for label to make it align with loop line
Browse files Browse the repository at this point in the history
  • Loading branch information
brookhong committed Feb 16, 2017
1 parent c714a7a commit 4f12596
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/mermaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -57846,6 +57846,7 @@ exports.drawText = function (elem, textData, width) {
//span.attr('x', textData.x);
span.attr('x', textData.x + textData.textMargin * 2);
//span.attr('dy', textData.dy);
span.attr("fill", textData.fill);
span.text(nText);
if (typeof textElem.textwrap !== 'undefined') {

Expand All @@ -57870,7 +57871,7 @@ exports.drawLabel = function (elem, txtObject) {
}
var polygon = elem.append("polygon");
polygon.attr("points" , genPoints(txtObject.x, txtObject.y, 50, 20, 7));
polygon.attr("style", "fill:#e4db14;stroke:none");
polygon.attr("style", "fill:#526e52;stroke:none");

txtObject.y = txtObject.y + txtObject.labelMargin;
txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
Expand Down
3 changes: 2 additions & 1 deletion src/diagrams/sequenceDiagram/svgDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports.drawText = function(elem, textData, width) {
//span.attr('x', textData.x);
span.attr('x', textData.x+textData.textMargin*2);
//span.attr('dy', textData.dy);
span.attr("fill", textData.fill);
span.text(nText);
if(typeof textElem.textwrap !== 'undefined'){

Expand All @@ -68,7 +69,7 @@ exports.drawLabel = function (elem, txtObject) {
}
var polygon = elem.append("polygon");
polygon.attr("points" , genPoints(txtObject.x, txtObject.y, 50, 20, 7));
polygon.attr("style", "fill:#e4db14;stroke:none");
polygon.attr("style", "fill:#526e52;stroke:none");

txtObject.y = txtObject.y + txtObject.labelMargin;
txtObject.x = txtObject.x + 0.5 * txtObject.labelMargin;
Expand Down

0 comments on commit 4f12596

Please sign in to comment.