Comments (2)
I am not sure if this is helpful for your use case, but I am working on a code => flow-graph
. Currently working on the other direction (and is considerably harder IMO).
Node definition begins with at best I can describe as inheritance (not really a thing in golang). You can see an example of this here
https://github.com/EliCDavis/polyform/blob/main/examples/edit-gaussian-splats/main.go#L55
This requires a ton of reflection to then transform it into a node when it comes to javascript, which comes down to a switch statement based on the type of data it's dealing with
https://github.com/EliCDavis/polyform/blob/main/generator/html/js/nodes/node.js#L10
Luckily being in python, you don't really need to deal with reflection, which might make the flow-graph => code
aspect easier.
I don't use onExecute
ever. I subscribe to node creation/deletion/connection editing.
from litegraph.js.
Thanks EliCDAvis!
that are nice hints and concept points!
do you know of the BlockMirror project?
it does python → blocks (blockly)
they are using
Skulpt: A Python-to-Javascript transpiler. We use it for its parser.
they parse the python to an Abstract Syntax Tree (AST) and from this generate the blocks.
i did not dig deeper in the how all of this works ;-)
for now i have to lay this project idea on ice..
(it is just to complex for me / to much other things needing my attention)
from litegraph.js.
Related Issues (20)
- computeConnectionPoint doesn't respect links_render_mode
- is there an onGraphChange() or onCanvasChange() event? HOT 2
- The method mounted on global in the ES Modules environment throws an error
- Linting question HOT 5
- Preview of what link is sending to node doesn't work after saving and reloading with configure HOT 1
- Text button and prompt dialog HOT 1
- Background turns black when zooming out HOT 2
- how to render a different link color when mouseover a link? HOT 1
- Getting the coordinates on a graph HOT 1
- How to realize redo and undo? HOT 2
- When the canvas attribute size and CSS style size are inconsistent, interactive events such as clicking on nodes fail. HOT 1
- Bootstrap 5.0.2 makes "Add Node" invisible
- Issue with Output Port Position Adjustment
- Numberpad enter creates a new line in input field of the properties. HOT 1
- Issue with Editor Resizing Not Centered on Mouse Position HOT 2
- npm run build error
- How do I change the color of a slot? HOT 3
- [question] How to clear all previously defined nodes? HOT 2
- How to run a graph with my own node in Node JS and in the browser?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litegraph.js.