Skip to Content
参考类型

ConnectionLineType

GitHub上的源代码 

如果你在<ReactFlow />组件上设置connectionLineType属性,它将决定创建新边时渲染的连接线的样式。

🌐 If you set the connectionLineType prop on your <ReactFlow /> component, it will dictate the style of connection line rendered when creating new edges.

export enum ConnectionLineType { Bezier = 'default', Straight = 'straight', Step = 'step', SmoothStep = 'smoothstep', SimpleBezier = 'simplebezier', }

注释

🌐 Notes

  • 如果你选择渲染一个自定义连接线组件,这个值将作为其 ConnectionLineComponentProps 的一部分传递给你的组件。
Last updated on