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

rotate=90 graph attribute does not set the rotation #251

Closed
reregaga opened this issue Oct 10, 2022 · 2 comments
Closed

rotate=90 graph attribute does not set the rotation #251

reregaga opened this issue Oct 10, 2022 · 2 comments
Labels

Comments

@reregaga
Copy link

rotate=90 graph attribute does not set the rotation, instead the rendered image disappears during typing this attribute or if you refresh the page, the graph is drawn as if without the rotate attribute.

Example:

digraph {
    //rotate=90 //uncomment
    a[width=2]
}
@magjac magjac transferred this issue from magjac/graphviz-visual-editor Oct 10, 2022
@magjac magjac added the bug label Dec 8, 2022
@magjac
Copy link
Owner

magjac commented Oct 4, 2024

The problem is in translateZoomBehaviorTransform which doesn't handle rotation, but assumes it is zero. If the call to that function is removed, the problem doesn't occur.

This means that a workaorund when using d3-graphviz directly is to disable zooming with .zoom(false). Unfortunatley there's no way to do this in the Graphviz Visual Editor for which this problem was originally reported.

@magjac
Copy link
Owner

magjac commented Oct 14, 2024

The problem is in translateZoomBehaviorTransform which doesn't handle rotation, but assumes it is zero. If the call to that function is removed, the problem doesn't occur.

This means that a workaorund when using d3-graphviz directly is to disable zooming with .zoom(false). Unfortunatley there's no way to do this in the Graphviz Visual Editor for which this problem was originally reported.

There was also a similar problem with transitions. See #328 for details.

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

No branches or pull requests

2 participants