Giter Club home page Giter Club logo

Comments (3)

magjac avatar magjac commented on June 16, 2024

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.

from graphviz-visual-editor.

wuchaoAAA avatar wuchaoAAA commented on June 16, 2024

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

from graphviz-visual-editor.

magjac avatar magjac commented on June 16, 2024

I think it would be a lot of work.

  1. 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.
  2. 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.
  3. 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.

from graphviz-visual-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.