-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smart Edge wrong behaviour on Sub Flows #32
Comments
Hey @spaceymonk , thanks for reporting it! Do you have a minimal example on CodeSandbox or a minimal GitHub repo where the error happens? This would help me debug the issue My educated guess is that sub flows are treated as nodes and the path-finding algorithm tries to include them on it's calculations |
Sure, you can look at this sandbox. I think so, maybe parent nodes can be somewhat ignored during calculating the path. |
@spaceymonk I just launched version I still need to consider if it's worth to have a sub flow filter on the library itself, so I'll leave this issue open |
As a workaround you could filter the array of nodes passed to the getSmartEdge function:
|
Thank you for your efforts, after upgrading to the new version and filtering the parent nodes, it worked like a charm. About your question,
After supplying the node list, I think the expected behaviour is to correctly handle sub-flow connections. |
First of all, I thank you for your great work.
The issue is drawing edges in subflows is wrong. In the below figures
parentNode
of the smaller nodes is the WHILE node.Expected behaviour:
It should be drawn like this for all positions inside the parent node.
Actual Result:
After moving a little bit on one of the nodes, the edge was drawn wrong.
Maybe something similar to #28 can solve this.
The text was updated successfully, but these errors were encountered: