feat(svelte): add event handlers and props, rename class names
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user