mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 04:04:28 +01:00
fix non-fo y position as before
This commit is contained in:
@@ -269,7 +269,7 @@ var _drawTextCandidateFunc = (function() {
|
|||||||
var byText = function(content, g, x, y, width, height) {
|
var byText = function(content, g, x, y, width, height) {
|
||||||
var center = x + width / 2;
|
var center = x + width / 2;
|
||||||
g.append('text')
|
g.append('text')
|
||||||
.attr('x', center).attr('y', y + y / 2 + 5)
|
.attr('x', center).attr('y', y + height / 2 + 5)
|
||||||
.attr('class', 'actor').style('text-anchor', 'middle')
|
.attr('class', 'actor').style('text-anchor', 'middle')
|
||||||
.text(content);
|
.text(content);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user