DefaultEdgeOptions
在 Edge 上的许多属性都是可选的。当创建一个新边时,未提供的属性将使用传递给 <ReactFlow /> 组件的 defaultEdgeOptions 属性中的默认值填充。
export type DefaultEdgeOptions<T> = {
  type?: string;
  animated?: boolean;
  hidden?: boolean;
  deletable?: boolean;
  selectable?: boolean;
  data?: T;
  selected?: boolean;
  markerStart?: string | EdgeMarker;
  markerEnd?: string | EdgeMarker;
  zIndex?: number;
  ariaLabel?: string;
  interactionWidth?: number;
  focusable?: boolean;
};字段
| 名称 | 类型 | 
|---|---|
| # type? | string | 
| # animated? | boolean | 
| # hidden? | boolean | 
| # deletable? | boolean | 
| # selectable? | boolean | 
| # data? | T | 
| # selected? | boolean | 
| # markerStart? | string | EdgeMarker | 
| # markerEnd? | string | EdgeMarker | 
| # zIndex? | number | 
| # ariaLabel? | string | 
| # interactionWidth? | number | 
| # focusable? | boolean |