pycodestyle
pycodestyle copied to clipboard
FIX: Edges appending to only one instance of Svelvet container #513
Updated moveEdge function in Edge.svelte to correctly append the edge element to its respective Svelvet container based on containerId.
🔗 Linked issue
Resolves #513
🔗 Linked issue
Resolves #513
Description
- Enhanced moveEdge function in Edge.svelte to ensure proper appending of edge elements to their respective Svelvet containers.
- Previous implementation relied on static container selection, causing edges to append inconsistently across multiple Svelvet instances.
- Refactored moveEdge to dynamically fetch the container using containerId, ensuring edges are appended to the correct instance based on context.
- This change resolves visual inconsistencies and improves the reliability of edge rendering in complex Svelvet applications.
Checklist
-
[x] I've followed the Contributing guidelines
-
[x] I've titled my PR according to the Conventional Commits spec
-
[x] I've linked an open issue
-
[ ] I've added tests that fail without this PR but pass with it
-
[x] I've linted and tested my code
-
[ ] I've updated documentation (if appropriate)