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

[Bug] TBbalance graph option is ignored #84

Open
eparadis opened this issue Dec 1, 2024 · 0 comments
Open

[Bug] TBbalance graph option is ignored #84

eparadis opened this issue Dec 1, 2024 · 0 comments

Comments

@eparadis
Copy link

eparadis commented Dec 1, 2024

The TBbalance option changes what rank "loose" or "floating" nodes are aligned to.
https://graphviz.org/docs/attrs/TBbalance/

edotor does not render graphs correctly that use this property.

Repro steps

  1. Start a new graph at https://edotor.net/
  2. Cut-and-paste the "Floating nodes moved to max rank" example from the GraphViz documentation into the editor
digraph {
    layout="dot"
    TBbalance="max"

    { rank="min"; "min" }
    { rank="max"; "max" }
    "min" -> "middle" -> "max"
    
    "Floater 1"
    "Floater 2"
}

Expected results

  • The rendered image has five nodes: three in a chain, and two nodes aligned to the bottom of the image, like so:
(min)
  |
  v
(middle)
  |
  v
(max)      (Floater 1)     (Floater 2)

Actual results

  • The rendered image has the floating nodes packed along side the vertical chain of nodes, like so:
(min)
  |
  v
(middle)      (Floater 1)
  |
  v
(max)       (Floater 2)

Notes

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

No branches or pull requests

1 participant