mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Update color for label to make it align with loop line
This commit is contained in:
parent
c714a7a28c
commit
4f12596e29
3
dist/mermaid.js
vendored
3
dist/mermaid.js
vendored
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user