svgbob icon indicating copy to clipboard operation
svgbob copied to clipboard

Left-oriented arrows mess with styling

Open Melandel opened this issue 5 years ago • 1 comments
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: image

Is this a bug?

Melandel avatar Jul 10 '20 16:07 Melandel

@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;
}

ivanceras avatar Jul 10 '20 23:07 ivanceras