svgbob
svgbob copied to clipboard
Left-oriented arrows mess with styling
trafficstars
Hello,
I have noticed that for this bob file:
.----------. .----------.
|{w} A |-->|{w} B |
'----------' '----------'
.----------. .----------.
|{w} A |<--|{w} B |
'----------' '----------'
.----------. .----------.
|{w} A |<->|{w} B |
'----------' '----------'
# Legend:
w = {
fill: #abadb0;
}
The rendered svg shows an issue on the second line:

Is this a bug?
@Melandel yes, this is a bug.
The algorithm for inferring the shape for the rounded rectangle seems to fail when there is a line touching it and appears prior to the shape being inferred. This may take some time to solve.
For the mean-time, a work-around on your diagram would be to put a space just before the line.
.----------. .----------.
|{w} A |-->|{w} B |
'----------' '----------'
.----------. .----------.
|{w} A |<-- | {w} B |
'----------' '----------'
.----------. .----------.
|{w} A |<->|{w} B |
'----------' '----------'
# Legend:
w = {
fill: #abadb0;
}