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

Label justification of the graph won't emitted correctly #56

Closed
vanniktech opened this issue Apr 18, 2018 · 2 comments
Closed

Label justification of the graph won't emitted correctly #56

vanniktech opened this issue Apr 18, 2018 · 2 comments

Comments

@vanniktech
Copy link

vanniktech commented Apr 18, 2018

Failing test case:

val graph = mutGraph("test")
graph.generalAttrs().add(Label.of("my custom header").locate(TOP).justify(MIDDLE))
assertThat(graph).hasToString("""
    graph "test" {
    "labelloc"="t"
    "label"="my custom header"
    }
    """.trimIndent())

Somehow the labeljust=c got missing. I'm using 0.4.0

@vanniktech
Copy link
Author

This could also be working as expected since labeljust=c is the default. When I'm changing to left/right I do get labeljust. If that's the case please close this.

Some javadoc would help nonetheless to clarify this behavior.

@nidi3
Copy link
Owner

nidi3 commented May 3, 2018

It's exactly as you suspected. Further, in the doc c is not even mentioned.
Javadoc is not very used in this project, I agree...

@nidi3 nidi3 closed this as completed May 3, 2018
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

2 participants