pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

FIX: Edges appending to only one instance of Svelvet container #513

Open turizspace opened this issue 1 year ago • 0 comments

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)

turizspace avatar Jul 14 '24 08:07 turizspace