mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
commit
c8d1b388d8
@ -26,7 +26,7 @@ exports.drawText = function(elem , textData){
|
|||||||
textElem.style('text-anchor', textData.anchor);
|
textElem.style('text-anchor', textData.anchor);
|
||||||
textElem.attr('fill', textData.fill);
|
textElem.attr('fill', textData.fill);
|
||||||
|
|
||||||
textData.text.split('<br>').forEach(function(rowText){
|
textData.text.split(/<br\/?>/ig).forEach(function(rowText){
|
||||||
var span = textElem.append('tspan');
|
var span = textElem.append('tspan');
|
||||||
span.attr('x', textData.x +textData.textMargin);
|
span.attr('x', textData.x +textData.textMargin);
|
||||||
span.attr('dy', textData.dy);
|
span.attr('dy', textData.dy);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user