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

INV: Visual graph editor #79

Open
cpelley opened this issue Feb 10, 2025 · 0 comments
Open

INV: Visual graph editor #79

cpelley opened this issue Feb 10, 2025 · 0 comments
Assignees

Comments

@cpelley
Copy link
Collaborator

cpelley commented Feb 10, 2025

Exploring the use of a visual graph editor. In this case, my exploration of using litegraph.js

Image

Takeaway

live editing:

  • Being able to inherit properties between nodes means not having to redefine them on each node (hence leadtimes being passed between nodes).
  • Defining complex relationships between properties of nodes is symbolised by this "DoSomething" associated with an edge. This would take the source and target node as input and define a relation between them.
  • Global variables could be defined, like the "Cylce2Leadtime lookup" where these appear in the drop-down of fields, not requiring explicit connections to such globals. This could minimise the number of connections within a visual graph.

litegraph.js:

  • Easy enough to put together custom node types.
  • I edge behaviour would have to also defined and represented using nodes.
  • No support for subgraphs within subgraphs (only 1 layer).

Example usage of litegraph.js:
https://gist.github.com/cpelley/3d1bd78ef61d48b61b164748b944773d

@cpelley cpelley self-assigned this Feb 10, 2025
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

1 participant