mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-09 09:09:38 +02:00
Fix for issue #209, missing links when baste tag is used
Fix for issue #195, text wrap in sequence diagrams drops last word Documentation
This commit is contained in:
@@ -41,13 +41,14 @@ exports.drawText = function(elem, textData, width) {
|
||||
|
||||
|
||||
var span = textElem.append('tspan');
|
||||
span.attr('x', textData.x);
|
||||
span.attr('dy', textData.dy);
|
||||
//span.attr('x', textData.x);
|
||||
span.attr('x', textData.x+textData.textMargin*2);
|
||||
//span.attr('dy', textData.dy);
|
||||
span.text(nText);
|
||||
if(typeof textElem.textwrap !== 'undefined'){
|
||||
textElem.textwrap({
|
||||
x: textData.x+4, // bounding box is 300 pixels from the left
|
||||
y: textData.y-2, // bounding box is 400 pixels from the top
|
||||
x: textData.x, // bounding box is 300 pixels from the left
|
||||
y: textData.y, // bounding box is 400 pixels from the top
|
||||
width: width, // bounding box is 500 pixels across
|
||||
height: 1800 // bounding box is 600 pixels tall
|
||||
}, textData.textMargin);
|
||||
|
Reference in New Issue
Block a user