graphviz-visual-editor
graphviz-visual-editor copied to clipboard
chage the shape of an existing node
I need to change the shape of an existing node. Hello, what method in which file to call? I need to know urgently
The Graphviz Visual Editor is a web application. It does not have files or methods, so I don't understand your question. You set the shape of a node with the shape attribute, but I guess you know this already.
Hello, I have deployed your project on the Apple system. I want to modify the project code so that when I click an existing node on the canvas on the right, a dialog box will pop up asking whether to modify the node shape. If yes, the node shape can be changed from oval to circle. And the left editor can automatically set the node shape=circle . Is this a lot of work? Which files should I start to modify, or do you have any better suggestions
I think it would be a lot of work.
- There are many ways to specify the node shape in the DOT source: explicit for a specific node or default node statements on graph or subgraph level. It can also be specified many times to override previous specifications (in a particular scope). If you restrict what DOT source constructs you support, perhaps it's doable to decide where in the DOT source to make changes.
- You need to extend https://github.com/magjac/graphviz-visual-editor/blob/master/src/dot.js to be able to locate and modify the correct
shape
attribute. - You need to replace the current click handler in https://github.com/magjac/graphviz-visual-editor/blob/master/src/Graph.js with your own functionality.