注册边
G6 自定义图项 教程
import GGEditor, { Flow, RegisterEdge } from 'gg-editor';
<GGEditor>
<Flow />
<RegisterEdge name={...} config={...} extend={...} />
</GGEditor>
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
name | 边名称 | string |
- |
config | 边配置 | object |
- |
extend | 继承图形 | string |
- |
边英文名 | 边中文名 | 示例预览 | 适用页面 |
---|---|---|---|
flow-polyline | 图折线 | Flow | |
flow-polyline-round | 圆角折线 | Flow | |
flow-smooth | 图曲线 | Flow |