feat(svelte): add event handlers and props, rename class names

This commit is contained in:
moklick
2023-03-01 17:28:59 +01:00
parent 9391b36869
commit e2961bfa8c
38 changed files with 410 additions and 163 deletions
@@ -5,14 +5,14 @@
const { edgesLayouted, width, height } = useStore();
</script>
<svg width={$width} height={$height} class="react-flow__edges">
<svg width={$width} height={$height} class="svelte-flow__edges">
{#each $edgesLayouted as edge (edge.id)}
<EdgeWrapper {...edge} />
<EdgeWrapper {...edge} on:edge:click />
{/each}
</svg>
<style>
.react-flow__edges {
.svelte-flow__edges {
width: 100%;
height: 100%;
position: absolute;