miroiu / nodify

Highly performant and modular controls for node-based editors designed for data-binding and MVVM.
https://miroiu.github.io/nodify
MIT License
1.27k stars 205 forks source link

[Bug] set FlowDirection property of Node, the connection of this Node will not update #91

Closed SunQianchuan closed 5 months ago

SunQianchuan commented 5 months ago

Hi miroiu,

i need use FlowDirection property to set Node Direction, after i set FlowDirection to RightToLeft, the connection of this Node will not re-render.

Thanks

miroiu commented 5 months ago

Hi, try setting FlowDirection on the NodifyEditor, not on individual nodes.

SunQianchuan commented 5 months ago

Hi miroiu,

I want creat audio routing diagram base Nodify, Audio streams have upstream and downstream and need to set the direction of each node individually at runing time, and also need change direction at runing time, do you have any suggestions? downstream: +---------+ -->i o----> | o----> +---------+ upstream: +---------+ <--o i <----- <--o | +---------+

Thanks

miroiu commented 5 months ago

Hi SunQianchuan,

You can achieve all of the following combinations by setting the ArrowEnds of the connection to the correct value.

image

Notice that connection also has a Direction property, but that may not be what you want.

SunQianchuan commented 5 months ago

Hi miroiu,

Thanks for the suggestion. I can achieve what I need by swapping Input and Output of Node, and using Direction of connection.

Thanks