Fix sequence diagram node text alignment
This commit is contained in:
parent
cf2b415cd3
commit
dfb1095908
|
@ -258,7 +258,11 @@ const _drawTextCandidateFunc = (function () {
|
|||
.style('text-anchor', 'middle')
|
||||
text.append('tspan')
|
||||
.attr('x', x + width / 2).attr('dy', '0')
|
||||
.text(content) // todo: fix position y
|
||||
.text(content)
|
||||
|
||||
text.attr('y', y + height / 2.0)
|
||||
.attr('dominant-baseline', 'central')
|
||||
.attr('alignment-baseline', 'central')
|
||||
|
||||
_setTextAttrs(text, textAttrs)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue