Skip to content

Flow 连线类型

EdgeType

  • bezier:贝塞尔曲线(默认推荐)
  • straight:直线
  • step:阶梯线
  • smoothstep:平滑阶梯线

示例:多种连线类型、标签与动画

label
起点
bezier
straight
step
smoothstep
终点
Edge Types

连线属性 (Edge Properties)

属性类型说明
idstring连线唯一标识
sourcestring源节点 ID
targetstring目标节点 ID
sourceHandlestring源节点特定的连接点 ID
targetHandlestring目标节点特定的连接点 ID
typeEdgeType连线渲染类型 (bezier/straight/step/smoothstep)
labelstring连线上展示的文字/HTML
animatedboolean是否开启流向动画
styleEdgeStyle自定义样式 (如 stroke, strokeWidth)
selectedboolean是否选中

下一个

Released under the MIT License.