mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
make path a bit wider
This commit is contained in:
parent
b80bad0a93
commit
ae8dde981b
@ -219,7 +219,7 @@ const drawMessage = function (elem, startx, stopx, verticalPos, msg) {
|
|||||||
let line
|
let line
|
||||||
if (startx === stopx) {
|
if (startx === stopx) {
|
||||||
if (conf.rightAngles) {
|
if (conf.rightAngles) {
|
||||||
line = g.append('path').attr('d', `M ${startx},${verticalPos} H ${startx + 75} V ${verticalPos + 25} H ${startx}`)
|
line = g.append('path').attr('d', `M ${startx},${verticalPos} H ${startx + (conf.width/2)} V ${verticalPos + 25} H ${startx}`)
|
||||||
} else {
|
} else {
|
||||||
line = g.append('path')
|
line = g.append('path')
|
||||||
.attr('d', 'M ' + startx + ',' + verticalPos + ' C ' + (startx + 60) + ',' + (verticalPos - 10) + ' ' + (startx + 60) + ',' +
|
.attr('d', 'M ' + startx + ',' + verticalPos + ' C ' + (startx + 60) + ',' + (verticalPos - 10) + ' ' + (startx + 60) + ',' +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user