flume
flume copied to clipboard
Resolve and preview output value of every node
It would really improve usability if the user can preview a result value for every output port on every node.
What I’m thinking is:
RootEngine will need a new function. Something like resolveAllNodes. Then the output of that can be passed to the node editor:
<NodeEditor ... resolvedValues={resolvedValues} />
Then in the options of addPortType something called renderOutput is added that expects a function with type definition:
renderOutput(portOutputData) -> ReactNode
This could be rendered either below or instead of the outputs label.
@chrisjpatty Has something like this been planned or considered? I may be interested in helping develop this feature (if you see value in it and it doesn’t conflict with any of your work).
Sorry just getting around to this, this is an interesting idea and something that would be helpful for sure for certain applications. Would what you're envisioning end up looking something like the shader editor in Unity? Right now the node editor and root engine are designed to work fully independently of each other so the challenge would be to allow them to communicate efficiently, but I'm definitely open to exploring the idea.
I'm interested in this as well, and the shader editor in Unity is a good analog. My use case is for operations on a json
port type such as "Merge" where you could preview the merged value.