I'm currently utilizing the ELKJS library along with ReactFlow, and I'm encountering an issue where I need to customize the position of a specific node. Specifically, I have a Suggestions Node which contains a child node called Search Node. Additionally, the Search Node is connected to the parent node of Suggestions Node, referred to as the Follow Up Node.
However, in my current implementation, the Search Node is positioned in the middle between the Follow Up Node and the Suggestions Node. The desired behavior is for the Search Node to always be positioned to the right side of the Suggestions Node and make sure that nodes are not overlapping with other nodes.
I believe this behavior requires tweaking the ELKJS library's layout algorithm or possibly introducing custom positioning logic. I'm seeking guidance or suggestions on how to achieve this desired positioning for the Search Node within the ELKJS library.
Any assistance or insights on how to customize node positioning within ELKJS would be greatly appreciated. Thank you!
I'm currently utilizing the ELKJS library along with ReactFlow, and I'm encountering an issue where I need to customize the position of a specific node. Specifically, I have a Suggestions Node which contains a child node called Search Node. Additionally, the Search Node is connected to the parent node of Suggestions Node, referred to as the Follow Up Node.
However, in my current implementation, the Search Node is positioned in the middle between the Follow Up Node and the Suggestions Node. The desired behavior is for the Search Node to always be positioned to the right side of the Suggestions Node and make sure that nodes are not overlapping with other nodes.
I believe this behavior requires tweaking the ELKJS library's layout algorithm or possibly introducing custom positioning logic. I'm seeking guidance or suggestions on how to achieve this desired positioning for the Search Node within the ELKJS library.
Any assistance or insights on how to customize node positioning within ELKJS would be greatly appreciated. Thank you!
Code:
Here is the issue:
Expected Behaviour: