DragNodeWithForce
Under force layout, drag nodes are automatically fixed, currently only supports graphin-force layout
API
| Name | Description | Type | Default |
|---|
| autoPin | Whether the dragged node is automatically fixed | boolean | false |
| dragNodeMass | -- | number | -- |
DragNode
API
| Name | Description | Type | Default |
|---|
| disabled | -- | boolean | false |
| updateEdge | -- | boolean | true |
| delegateStyle | -- | {} | { strokeOpacity: 0.6, fillOpacity: 0.6 } |
| enableDelegate | -- | boolean | false |
| onlyChangeComboSize | -- | boolean | false |
| comboActiveState | -- | string | '' |
| selectedState | -- | string | selected |
ClickSelect
API
| Name | Description | Type | Default |
|---|
| disabled | -- | boolean | -- |
| multiple | -- | boolean | -- |
| trigger | -- | string | -- |
| selectedState | -- | string | -- |
ActivateRelations
API
| Name | Description | Type | Default |
|---|
| disabled | -- | boolean | false |
| trigger | -- | string | mouseenter |
| activeState | -- | string | active |
| inactiveState | -- | string | inactive |
| resetSelected | -- | boolean | false |
TreeCollapse
This interactive introduction can only take effect when the data structure is a tree and the internal rendering is a TreeGraph
API
| Name | Description | Type | Default |
|---|
| trigger | -- | string | -- |
| onChange | -- | (item: Item, collapsed: boolean) => void | -- |
| shouldBegin | -- | (e: IG6GraphEvent) => boolean | -- |
FontPaint