clean up BaseEdge, fix store functions

This commit is contained in:
peterkogo
2024-12-10 12:12:21 +01:00
parent 9199cbd278
commit 0cd68914c1
16 changed files with 91 additions and 169 deletions
@@ -1,24 +1,24 @@
<script lang="ts">
import { getSmoothStepPath } from '@xyflow/system';
import BaseEdge from './BaseEdge.svelte';
import type { SmoothStepEdgeProps } from '$lib/types';
import { BaseEdge } from '$lib/components/BaseEdge';
let {
id,
interactionWidth,
label,
labelStyle,
style,
markerStart,
markerEnd,
markerStart,
pathOptions,
interactionWidth,
sourcePosition,
sourceX,
sourceY,
sourcePosition,
targetPosition,
targetX,
targetY,
targetPosition
targetY
}: SmoothStepEdgeProps = $props();
let [path, labelX, labelY] = $derived(