Open andraz-at opened 4 years ago
This isn't currently possible, but to make it possible I think two features would be required:
If I'm understanding you correctly the nodes are a graphical representation of the logic network, but individual nodes never receive live data while it is getting calculated because the execution is optimized into a separate process?
Could this process get a "debug" mode or a "live" mode, where engine on purpose reduces it's own optimization to push data to the dom node's data properties while the engine is calculating data?
Calculating one output node value would imply all of the inputs and paths values which all should be equal, so this is an easy optimization enabling us to hook css styling to the data property, just copy the output data value on to the linked dom nodes.
Storing the results first into a set as they're getting calculated, and only updating dom nodes at the end, could additionally optimize the execution - if the same dom output object would get multiple changes before stabilizing this could cause redraws.
p.s.: be careful to avoid CSS spec bug for custom data attribute styling, data needs to start with a character: https://stackoverflow.com/a/21971962
All lines are gray at the moment.
Boolean flow would be easier to visualize if green line would represent
true
and red linefalse
state.Is this available or would an upgrade with dynamic css classes applied to the line dom elements be needed first?