pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

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

Open kotekpsotek opened this issue 8 months ago โ€ข 0 comments

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: [email protected] SvelteKit: @sveltejs/[email protected]

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing

  • [x] ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd love to make a PR to fix this bug!

kotekpsotek avatar Mar 18 '25 23:03 kotekpsotek