Skip to content

Commit 8bda89e

Browse files
fix: onClickCanvas docs
1 parent 5d60efe commit 8bda89e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.en-US.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ npm install react-monitor-dag
4545
| registerStatus | Register status, which adds class to the node based on its status | <font color="c41d7f">object</font> | key:value, registered by user, corresponded to the status field of node |
4646
| statusNote | Status note in upper left corner[statusNote Prop](#statusNote) | <font color="c41d7f">object</font> | { } |
4747
| onClickNode | Single Click Node Event | <font color="c41d7f">(node) => void</font> | - |
48+
| onClickCanvas | Click Canvas Event | <font color="c41d7f">() => void</font> | - |
4849
| onContextmenuNode | Right-Click Node Event | <font color="c41d7f">(node) => void</font> | - |
4950
| onDblClickNode | Double Click Node Event | <font color="c41d7f">(node) => void</font> | - |
5051
| onClickEdge | Single Click Edge Event | <font color="c41d7f">(edge) => void</font> | - |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ npm install react-monitor-dag
4343
| registerStatus | 自行注册状态,根据node的status给节点加上class | <font color="c41d7f">object</font> | key:value的形式,可以自行注册,和node的status字段对应起来 |
4444
| statusNote | 画布左上角状态注释,见[statusNote Prop](#statusNote) | <font color="c41d7f">object</font> | { } |
4545
| onClickNode | 单击节点事件 | <font color="c41d7f">(node) => void</font> | - |
46+
| onClickCanvas | 单击画布事件 | <font color="c41d7f">() => void</font> | - |
4647
| onContextmenuNode | 右键节点事件 | <font color="c41d7f">(node) => void</font> | - |
4748
| onDblClickNode | 双击节点事件 | <font color="c41d7f">(node) => void</font> | - |
4849
| onClickEdge | 单击线段事件 | <font color="c41d7f">(edge) => void</font> | - |

0 commit comments

Comments
 (0)