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? | 文字列 |
# animated? | 論理値 |
# hidden? | 論理値 |
# deletable? | 論理値 |
# selectable? | 論理値 |
# data? | T |
# selected? | 論理値 |
# markerStart? | 文字列 | EdgeMarker |
# markerEnd? | 文字列 | EdgeMarker |
# zIndex? | 数値 |
# ariaLabel? | 文字列 |
# interactionWidth? | 数値 |
# focusable? | 論理値 |