-
Notifications
You must be signed in to change notification settings - Fork 104
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
Animating pre-existing SVGs created by external DOT #179
Comments
I think that that could be possible to implement as long as the SVG is rendered with Graphviz. The animations are "Graphviz-aware" so they might not make sense for arbitrary SVG. That said, I'm more interested in solving #178 than providing a workaround. |
@magjac One of the use-cases that would be great is being able to modify the thickness of an arrow-head separately from the entire arrow (as far as I know this is not possible in Graphviz, but it is definitely possible in the SVG). It keeps annoying me that arrowheads can become insanely thick and ugly (half-hidden behind nodes) when high line thickness can often not be prevented in scenario's where it has explicit meaning. Could you suggest a way to go about something like this? (I guess this might be possible in the data model that you extract from the SVG before rendering). |
It is possible though the arrowsize attribute. See http://magjac.com/graphviz-visual-editor/?dot=digraph%20%7B%0A%20%20%20%20Hi%20-%3E%20Daan%20%5Bpenwidth%3D3%5D%0A%20%20%20%20Daan%20-%3E%20Luttik%20%5Bpenwidth%3D3%20arrowsize%3D0.3%5D%0A%7D%0A |
@magjac was just right |
Isn't that what my example is showing? |
🙈 It totally is, it just seemed to me that the arrows were just a different size and the lower had the right offset from the node. Below an example to illustrate the example more starkly.
Since you know graphviz stuff that I somehow never found in the docs, I have another question. Can we compensate the penwidth overflow (i.e. the stroke is overlapping with the node) somehow, such that the end of the arrow corresponds with the edge of the node. |
I don't know. This sound like an excellent question to ask in https://forum.graphviz.org/c/help/5 or if you think it's a bug you can file an issue at https://gitlab.com/graphviz/graphviz/-/issues/new. |
I just asked on my forum. IMO this request is unchanged. Of course, I totally understand if it gets low priority. |
Hi again,
In your documentation you describe the steps of this library:
I was wondering if it would be possible to start at step 2 when you already have dot generated SVG files. Or even directly use the "data representation" of the SVG and still get the animation benefits from this project.
This would be great for users like me who do data science in python and just need a way to output the graphs.
I hope that this would help me to obtain a workaround for #178.
I think your project is highly interesting and I believe that having more interfaces (e.g. using the individual steps rather than the entire process at once) would make this project interesting in even more scenarios.
The text was updated successfully, but these errors were encountered: