Skip to content

Pass the id to Svelvet element doesn't affect assigned id on HTML Svelvet Element #544

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

Open
1 task done
kotekpsotek opened this issue Mar 18, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@kotekpsotek
Copy link

kotekpsotek commented Mar 18, 2025

Description

Meanwhile I passed the custom id to Svelvet element, that didn't cause the change to custom one. Because of this I belive are associated such erros in my app like:

  • In the spawned separated Svelvet diagrams, nodes of diagram other than first spawned - aren't connected to each other (my app has to present more than one diagram along the way)
  • The first spawned diagram tries to connect with nodes from below diagram despite that both diagrams nodes have differentiated id, although the Svelvet element has under each condition and each case - identical id

Reproduction

{#each listDiagrams as listDiagram}
<Svelvet id={listDiagram.id} height="{500}" fitView={true} minimap={false} TD controls locked={true} theme="light" edgeStyle="straight"> <!-- The Svelvet id doesn't retrive change to one custom setted up -->
           <!--- .... content like Nodes, Anchors, Edges -->
</Svelvet>
{/each}

System information

Svelvet npm version: svelvet@11.0.5
SvelteKit: @sveltejs/kit@2.18.0

Additional information

No response

👨‍👧‍👦 Contributing

  • 🙋‍♂️ Yes, I'd love to make a PR to fix this bug!
@kotekpsotek kotekpsotek added the bug Something isn't working label Mar 18, 2025
@kotekpsotek kotekpsotek changed the title Pass the id to Svelvet element doesn't affect assigned id on HTML Tree Pass the id to Svelvet element doesn't affect assigned id on HTML Svelvet Element Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant