Update color for label to make it align with loop line

This commit is contained in:
brook hong 2017-02-16 23:11:53 +08:00
parent c714a7a28c
commit 4f12596e29
2 changed files with 4 additions and 2 deletions

3
dist/mermaid.js vendored
View File

@ -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') {
@ -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;

View File

@ -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'){
@ -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;