retejs / rete

JavaScript framework for visual programming
https://retejs.org
MIT License
10.17k stars 653 forks source link

[Feature Request] Add control to output #471

Closed a7md0 closed 1 year ago

a7md0 commented 4 years ago

Ability to add control(s) to Output of the node just like the Input? This would be useful

Hatead1 commented 4 years ago

The author says that this is meaningless and not necessary, i have already proposed this. So i have to add this in every new version.

TeaObvious commented 4 years ago

I am not sure if this Issue points in the direction to what i need or if i get it totally wrong... But i have the feeling you can answer my question @Hatead1 Basically what i need is a "Parameter Control/Socket" meaning its an entity which is either a "Control + Output" or "Input + Output"

An example of what i Imagine: Lets say i have a Node that creates a circles Parameters(X,Y,R), No Input, Output(Circle) I create a circle A with radius R. Now this circles A needs a position, i don't want to have another Node just to provide X+Y, so i would use a control. How ever now i may have a second circles B which i want to be at the same position as A. Here it would now be cool to simply have an output for X+Y which i simply can link to the X+Y of B, which of course disables the Control for X+Y on B.

Is there a way to do this, or is this a lose hope, because this is what the author thinks is useless?

Hatead1 commented 4 years ago

Do you want to have "Input-Control-Output" on one line? You can use "custom" component and standard "Input+Control" & "Output" with positioning on line.

TeaObvious commented 4 years ago

Thank you for that Answer! This sounds like a Plan. :)

Hatead1 commented 4 years ago

But why you dont want standard controls? image

TeaObvious commented 4 years ago

Because they waste to much space for my liking and it does not feel intuitive, specially once the description is hidden when you want to use the control instead of the Input.

Personally i would like to have Input - Description - Control - Output. Where Control shows "linked" or so when the Input is connected: grafik

Hatead1 commented 4 years ago

https://codepen.io/hatead1/pen/oNxemKo - for example

TeaObvious commented 4 years ago

This is just perfect, thank you very very much! <3

rete-js[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.