gg-editor
Version:
A visual graph editor based on G6 and React
25 lines (17 loc) • 551 B
Markdown
# RegisterBehaviour
注册命令
## 使用说明
> G6 [自定义交互](https://antv.alipay.com/zh-cn/g6/1.x/tutorial/custom-interaction.html) 教程
```jsx
import GGEditor, { Flow, RegisterBehaviour } from 'gg-editor';
<GGEditor>
<Flow />
<RegisterBehaviour name={...} behaviour={...} dependences={...} />
</GGEditor>
```
## API
| 属性 | 说明 | 类型 | 默认值 |
| :--- | :--- | :--- | :--- |
| name | 行为名称 | `string` | - |
| behaviour | 行为配置 | `function(page)` | - |
| dependences | 继承行为 | `string[]` | - |