66 |
74 |
91 |
92 |
93 | >
94 | )
95 | }
96 |
--------------------------------------------------------------------------------
/src/stories/DummyData.ts:
--------------------------------------------------------------------------------
1 | import { MarkerType } from 'reactflow'
2 | import { SmartBezierEdge, SmartStraightEdge, SmartStepEdge } from '../index'
3 | import { SmartEdgeCustomLabel } from './CustomLabel'
4 | import type { Node, Edge } from 'reactflow'
5 |
6 | const markerEndType = MarkerType.Arrow
7 |
8 | export const edgeTypes = {
9 | smartBezier: SmartBezierEdge,
10 | smartStraight: SmartStraightEdge,
11 | smartStep: SmartStepEdge,
12 | smartBezierLabel: SmartEdgeCustomLabel
13 | }
14 |
15 | export type NodeData = {
16 | label: string
17 | }
18 |
19 | export type EdgeData = { customField: string } | undefined
20 |
21 | export const nodes: Node