book_manage/packages/ui/src/components/mindmap/edge/index.ts

12 lines
366 B
TypeScript
Raw Normal View History

2025-01-10 21:36:17 +08:00
import type { Edge, EdgeTypes } from "@xyflow/react";
export const initialEdges = [
{ 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 },
] satisfies Edge[];
export const edgeTypes = {
// Add your custom edge types here!
} satisfies EdgeTypes;