Files
react-flow/src/edges/index.ts

12 lines
349 B
TypeScript
Raw Normal View History

2024-08-16 15:08:06 +07:00
import type { Edge, EdgeTypes } from '@xyflow/react';
export const initialEdges: Edge[] = [
{ id: 'a->c', source: 'a', target: 'c', animated: true },
{ id: 'b->d', source: 'b', target: 'd' },
{ id: 'c->d', source: 'c', target: 'd', animated: true },
];
export const edgeTypes = {
// Add your custom edge types here!
} satisfies EdgeTypes;