feat: add FlowChatBox #918 (#1086)

### What problem does this PR solve?

feat: add FlowChatBox #918 

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-06-06 19:29:36 +08:00
committed by GitHub
parent 6399a4fde2
commit dbdae8e83c
10 changed files with 547 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ import {
EdgeProps,
getBezierPath,
} from 'reactflow';
import useStore from '../../store';
import useGraphStore from '../../store';
import { useMemo } from 'react';
import styles from './index.less';
@@ -21,7 +21,7 @@ export function ButtonEdge({
markerEnd,
selected,
}: EdgeProps) {
const deleteEdgeById = useStore((state) => state.deleteEdgeById);
const deleteEdgeById = useGraphStore((state) => state.deleteEdgeById);
const [edgePath, labelX, labelY] = getBezierPath({
sourceX,
sourceY,