ConnectionLineComponentProps
如果你想为连接线渲染自定义组件,你可以在 <ReactFlow /> 组件上设置 connectionLineComponent prop。ConnectionLineComponentProps 传递给你的自定义组件。
¥If you want to render a custom component for connection lines, you can set the
connectionLineComponent prop on the
<ReactFlow /> component.
The ConnectionLineComponentProps are passed to your custom component.
属性
¥Props
| Name | Type | Default |
|---|---|---|
connectionLineStyle | CSSProperties | |
connectionLineType | ConnectionLineType | |
fromNode | InternalNode<NodeType>The node the connection line originates from. | |
fromHandle | HandleThe handle on the | |
fromX | number | |
fromY | number | |
toX | number | |
toY | number | |
fromPosition | Position | |
toPosition | Position | |
connectionStatus | "valid" | "invalid" | nullIf there is an | |
toNode | InternalNode<NodeType> | null | |
toHandle | Handle | null | |
pointer | XYPosition |
Last updated on