Class: Graph
Extends
Members
anchorLine
Properties:
Name |
Type |
Description |
anchorLine |
AnchorLine
|
|
- Source:
animation
Properties:
Name |
Type |
Description |
animation |
Animation
|
|
- Source:
line
Properties:
Name |
Type |
Description |
line |
Line
|
|
- Source:
node
Properties:
Name |
Type |
Description |
node |
Node
|
|
- Source:
Methods
addLinkHoverEvent()
- Source:
clear()
- Overrides:
- Source:
clearGraph()
- Source:
fire(event, data)
Parameters:
Name |
Type |
Description |
event |
*
|
|
data |
*
|
|
- Overrides:
- Source:
off(event, offFunc)
Parameters:
Name |
Type |
Description |
event |
*
|
|
offFunc |
*
|
不传清空所有 |
- Overrides:
- Source:
offLinkHoverEvent()
- Source:
on(event, func, index)
Parameters:
Name |
Type |
Description |
event |
*
|
|
func |
*
|
|
index |
*
|
|
- Overrides:
- Source:
(async) render(data)
Parameters:
Name |
Type |
Description |
data |
*
|
|
- Source:
Events
beforeRender 渲染之前触发
- Source:
copy
Type:
- Source:
delete
Type:
- Source:
paste
Type:
- Source:
render 渲染后触发
- Source:
line:add
- Source:
line:beforeadd
- Source:
line:change
- Source:
line:click
- Source:
line:drag
- Source:
line:drop
- Source:
line:drop
- Source:
line:mouseenter
- Source:
line:mouseleave
- Source:
line:remove
- Source:
node:change - 节点变化事件
Properties:
Name |
Type |
Description |
node |
Object
|
|
- Source:
node:click - 节点点击事件
- Source:
node:mouseenter - 节点进入事件
- Source:
node:mouseleave
- Source:
node:move 节点移动事件
- Source:
node:remove - 移除节点事件
- Source:
node:unactive
- Source: