jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.7k stars 728 forks source link

Named and typed multiple inputs/outputs in Drawflow? #323

Open aniongithub opened 2 years ago

aniongithub commented 2 years ago

I'd like to use Drawflow to create an Unreal blueprints type system where each input/output has a name and type.

Currently, I can't figure out how to

  1. Draw the names of each of the input/output ports
  2. Ensure that only compatible outputs can be connected to inputs - for this, I'm ok to do the type-checking in an event. However, I see no event for beforeConnectionCreated that would let me cancel the connection or indicate incompatibility.

Help?

jerosoler commented 2 years ago

Hi @aniongithub

It is not implemented.

I want to implement a system like https://github.com/jerosoler/Drawflow/issues/45#issuecomment-701554099. But I haven't had time yet.