You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all....congratulations for the awesome library. I've seen a few, but this is the easiest and quickest to understand and work with. The examples are also very good! Well done.
Is your feature request related to a problem? Please describe.
The direction of the "information flow" animation I expected it would be from an output port of one node, to an input port of another. When connecting the nodes though, the schema object for the link shows that this is not the case (i.e. the link direction seems to flow from output to input instead). For example, in the customisation example https://beautifulinteractions.github.io/beautiful-react-diagrams/#/Customisation you will note that when you connect the ports, when you hover, the information goes from right to left, i.e. goes the opposite direction that I would expect.
Describe the solution you'd like
Inspecting the schema object, it seems that the input and output seem to be swapped when set? (that means that the input, output of the link should be the other way around or the CSS attributed to each case should we swapped around).
Describe alternatives you've considered
I've used a useEffect on schema.links to track the last added link and swapped the input/output in the schema object directly. This confirmed that the input/output stored in the schema must be the other way around. I could swap the CSS around, but I can't work it out (yet).
Additional context
nothing to add....other than well done again!
The text was updated successfully, but these errors were encountered:
First of all....congratulations for the awesome library. I've seen a few, but this is the easiest and quickest to understand and work with. The examples are also very good! Well done.
Is your feature request related to a problem? Please describe.
The direction of the "information flow" animation I expected it would be from an output port of one node, to an input port of another. When connecting the nodes though, the schema object for the link shows that this is not the case (i.e. the link direction seems to flow from output to input instead). For example, in the customisation example https://beautifulinteractions.github.io/beautiful-react-diagrams/#/Customisation you will note that when you connect the ports, when you hover, the information goes from right to left, i.e. goes the opposite direction that I would expect.
Describe the solution you'd like
Inspecting the schema object, it seems that the input and output seem to be swapped when set? (that means that the input, output of the link should be the other way around or the CSS attributed to each case should we swapped around).
Describe alternatives you've considered
I've used a useEffect on schema.links to track the last added link and swapped the input/output in the schema object directly. This confirmed that the input/output stored in the schema must be the other way around. I could swap the CSS around, but I can't work it out (yet).
Additional context
nothing to add....other than well done again!
The text was updated successfully, but these errors were encountered: