mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
fix: type problem for touch events
This commit is contained in:
parent
3060cd150d
commit
fb4dd7ea09
@ -88,6 +88,9 @@ Where, the event object `evt` has the properties:
|
||||
| node:dragleave | Activated when user drags an item out of a target node item. This event is applied on the target node item. |
|
||||
| node:dragover | Activated when user drags an item over a target node item. This event is applied on the target node item |
|
||||
| node:drop | Activated when user drops an item on a target item. This event is applied on the target item. |
|
||||
| node:touchstart | On touch screen, this event is activated when user begin to touch the node |
|
||||
| node:touchmove | On touch screen, this event is activated when user is touching the node |
|
||||
| node:touchend | On touch screen, this event is activated when user finish touching the node |
|
||||
| node:contextmenu | Open the context menu when user clicks the right button of mouse on the node. [Demo](/en/examples/tool/contextMenu). |
|
||||
|
||||
### Edge Interaction Event
|
||||
@ -133,6 +136,9 @@ Combo inherit all the interaction events of Node.
|
||||
| canvas:dragenter | Activated when user drags the canvas into a target item. This event is applied on the target item. |
|
||||
| canvas:dragleave | Activated when user drags the canvas out of a target item. This event is applied on the target item. |
|
||||
| canvas:drop | Activated when user drags and drops an item on the canvas. |
|
||||
| canvas:touchstart | On touch screen, this event is activated when user begin to touch the canvas |
|
||||
| canvas:touchmove | On touch screen, this event is activated when user is touching the canvas |
|
||||
| canvas:touchend | On touch screen, this event is activated when user finish touching the canvas |
|
||||
|
||||
## Timing Events
|
||||
|
||||
|
@ -88,6 +88,9 @@ graph.on(eventName, evt => {
|
||||
| node:dragleave | 当拖曳节点离开目标元素的时候触发的事件,此事件作用在目标元素上 |
|
||||
| node:dragover | 当拖曳节点在另一目标元素上移动时触发此事件,此事件作用在目标元素上 |
|
||||
| node:drop | 被拖拽的节点在目标元素上同时鼠标放开触发的事件,此事件作用在目标元素上 |
|
||||
| node:touchstart | 在触控屏上,当节点开始被触碰的时候触发的事件 |
|
||||
| node:touchmove | 在触控屏上,当节点开始被触碰过程中触发的事件 |
|
||||
| node:touchend | 在触控屏上,当节点开始被触碰结束的时候触发的事件 |
|
||||
| node:contextmenu | 用户在节点上右击鼠标时触发并打开右键菜单,见 [Demo](/zh/examples/tool/contextMenu) |
|
||||
|
||||
### Edge 交互事件
|
||||
@ -133,6 +136,9 @@ Combo 继承所有 Node 事件。
|
||||
| canvas:dragenter | 当拖曳画布进入目标元素的时候触发的事件,此事件作用在目标画布上 |
|
||||
| canvas:dragleave | 当拖曳画布离开目标元素的时候触发的事件,此事件作用在目标画布上 |
|
||||
| canvas:drop | 被拖拽的元素在空白画布上同时鼠标放开触发的事件,此事件作用在目标画布上 |
|
||||
| canvas:touchstart | 在触控屏上,当画布开始被触碰的时候触发的事件 |
|
||||
| canvas:touchmove | 在触控屏上,当画布开始被触碰过程中触发的事件 |
|
||||
| canvas:touchend | 在触控屏上,当画布开始被触碰结束的时候触发的事件 |
|
||||
|
||||
## 时机事件
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user