feat(packages): add svelte version

This commit is contained in:
moklick
2023-02-01 09:41:09 +01:00
parent 079e380a31
commit 2af833aee1
30 changed files with 2279 additions and 21 deletions
@@ -0,0 +1,29 @@
<script lang="ts">
export let id: string = '1';
export let type: string = 'default';
export let sourceX: number = 0;
export let sourceY: number = 0;
export let targetX: number = 0;
export let targetY: number = 0;
const path = `M ${sourceX},${sourceY}L ${targetX},${targetY}`;
</script>
<g
class="react-flow__edge"
data-id={id}
>
<path
d={path}
fill="none"
class="react-flow__edge-path"
/>
</g>
<style>
.react-flow__edge-path {
stroke: #ccc;
stroke-width: 1;
}
</style>