Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.03 KB

registerEdge.zh-CN.md

File metadata and controls

32 lines (23 loc) · 1.03 KB

RegisterEdge

注册边

使用说明

G6 自定义图项 教程

import GGEditor, { Flow, RegisterEdge } from 'gg-editor';

<GGEditor>
  <Flow />
  <RegisterEdge name={...} config={...} extend={...} />
</GGEditor>

API

属性 说明 类型 默认值
name 边名称 string -
config 边配置 object -
extend 继承图形 string -

内置边

边英文名 边中文名 示例预览 适用页面
flow-polyline 图折线 图折线 Flow
flow-polyline-round 圆角折线 圆角折线 Flow
flow-smooth 图曲线 图曲线 Flow