Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Left-oriented arrows mess with styling #56

Open
Melandel opened this issue Jul 10, 2020 · 1 comment
Open

Left-oriented arrows mess with styling #56

Melandel opened this issue Jul 10, 2020 · 1 comment

Comments

@Melandel
Copy link
Contributor

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 Melandel changed the title Left-oriented arrows mess with styling ( Left-oriented arrows mess with styling Jul 10, 2020
@ivanceras
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants