fix(system) exportet Optional type, fix(svelte) adjusted exported edge types

This commit is contained in:
Peter
2023-11-28 13:03:50 +01:00
parent 9f538c6b7c
commit 0393409e89
7 changed files with 12 additions and 8 deletions
@@ -1,10 +1,10 @@
<script lang="ts">
import { getSmoothStepPath } from '@xyflow/system';
import { getSmoothStepPath, type Optional } from '@xyflow/system';
import type { EdgeProps } from '$lib/types';
import { BaseEdge } from '$lib/components/BaseEdge';
type $$Props = Partial<EdgeProps>;
type $$Props = Optional<EdgeProps, 'id' | 'target' | 'source'>;
$: [path, labelX, labelY] = getSmoothStepPath({
sourceX: $$props.sourceX,