Skip to content
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

Keep the node in the same position when its parent edge is deleted #182

Open
im-amir opened this issue Sep 24, 2022 · 1 comment
Open

Keep the node in the same position when its parent edge is deleted #182

im-amir opened this issue Sep 24, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@im-amir
Copy link
Contributor

im-amir commented Sep 24, 2022

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[x] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

Current behavior

Currently, when a parent edge is deleted, that child node jumps to the top. Is there any way we can keep the node in the same position?
https://www.awesomescreenshot.com/video/11235492?key=46cb841a697d83c0dd7454612b1c537b

Expected behavior

The separate node should not move to the top of tree.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Libs:
- react version: 18.1.0
- realayers version: X.Y.Z


Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

@amcdnl
Copy link
Member

amcdnl commented Sep 26, 2022

This is related to ELKJS and it trying to reroute edges to be the most optimal position. I'm not entirely sure if this is possible given how the current system works without major changes.

@amcdnl amcdnl added the enhancement New feature or request label Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants