mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
centered two-digit sequence numbers
This commit is contained in:
@@ -266,10 +266,13 @@ const drawMessage = function (elem, startx, stopx, verticalPos, msg, nodeIndex)
|
||||
if (conf.showSequenceNumbers) {
|
||||
line.attr('marker-start', 'url(' + url + '#sequencenumber)')
|
||||
g.append('text')
|
||||
.attr('x', startx - 4)
|
||||
.attr('x', startx - 1)
|
||||
.attr('y', verticalPos + 5)
|
||||
.attr('font-family', 'sans-serif')
|
||||
.attr('font-size', '16px')
|
||||
.attr('text-anchor', 'middle')
|
||||
.attr('textLength', '16px')
|
||||
.attr('lengthAdjust', '0')
|
||||
.attr('class', 'sequenceNumber')
|
||||
.text(nodeIndex + 1)
|
||||
}
|
||||
|
Reference in New Issue
Block a user