2023-08-30 19:46:37 +08:00
|
|
|
---
|
|
|
|
title: DragComboOptions
|
|
|
|
---
|
|
|
|
|
2023-10-11 20:33:18 +08:00
|
|
|
[Overview - v5.0.0-beta.21](../../README.en.md) / [Modules](../../modules.en.md) / [behaviors](../../modules/behaviors.en.md) / DragComboOptions
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
[behaviors](../../modules/behaviors.en.md).DragComboOptions
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
### delegateStyle
|
|
|
|
|
|
|
|
• `Optional` **delegateStyle**: `Object`
|
|
|
|
|
|
|
|
The drawing properties when the nodes are dragged.
|
|
|
|
Only used when enableDelegate is true.
|
|
|
|
|
|
|
|
#### Index signature
|
|
|
|
|
|
|
|
▪ [key: `string`]: `unknown`
|
|
|
|
|
|
|
|
#### Type declaration
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
| Name | Type |
|
|
|
|
| :--------------- | :------------------- |
|
|
|
|
| `fill?` | `string` |
|
|
|
|
| `fillOpacity?` | `number` |
|
|
|
|
| `lineDash?` | [`number`, `number`] |
|
|
|
|
| `lineWidth?` | `number` |
|
|
|
|
| `stroke?` | `string` |
|
|
|
|
| `strokeOpacity?` | `number` |
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:27](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L27)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### enableDelegate
|
|
|
|
|
|
|
|
• `Optional` **enableDelegate**: `boolean`
|
|
|
|
|
|
|
|
Whether to use a virtual rect moved with the dragging mouse instead of the node.
|
|
|
|
Defaults to false.
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:22](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L22)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### enableTransient
|
|
|
|
|
|
|
|
• `Optional` **enableTransient**: `boolean`
|
|
|
|
|
|
|
|
Whether to draw dragging nodes in transient layer.
|
|
|
|
Ignored when enableDelegate is true.
|
|
|
|
Defaults to true.
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:17](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L17)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### eventName
|
|
|
|
|
|
|
|
• `Optional` **eventName**: `string`
|
|
|
|
|
|
|
|
The event name to trigger when drag end.
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:55](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L55)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### hideRelatedEdges
|
|
|
|
|
|
|
|
• `Optional` **hideRelatedEdges**: `boolean`
|
|
|
|
|
|
|
|
Whether to hide the related edges to avoid calculation while dragging nodes.
|
|
|
|
Ignored when enableTransient or enableDelegate is true.
|
|
|
|
Defaults to false.
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:46](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L46)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### selectedState
|
|
|
|
|
|
|
|
• `Optional` **selectedState**: `string`
|
|
|
|
|
|
|
|
The state name to be considered as "selected".
|
|
|
|
Defaults to "selected".
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:51](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L51)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### shouldBegin
|
|
|
|
|
|
|
|
• `Optional` **shouldBegin**: (`event`: [`IG6GraphEvent`](IG6GraphEvent.en.md)) => `boolean`
|
|
|
|
|
|
|
|
#### Type declaration
|
|
|
|
|
|
|
|
▸ (`event`): `boolean`
|
|
|
|
|
|
|
|
Whether allow the behavior happen on the current item.
|
|
|
|
|
|
|
|
##### Parameters
|
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
| Name | Type |
|
|
|
|
| :------ | :------------------------------------- |
|
2023-08-30 19:46:37 +08:00
|
|
|
| `event` | [`IG6GraphEvent`](IG6GraphEvent.en.md) |
|
|
|
|
|
|
|
|
##### Returns
|
|
|
|
|
|
|
|
`boolean`
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:63](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L63)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### throttle
|
|
|
|
|
|
|
|
• `Optional` **throttle**: `number`
|
|
|
|
|
|
|
|
The time in milliseconds to throttle moving. Useful to avoid the frequent calculation.
|
|
|
|
Defaults to 0.
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:40](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L40)
|
2023-08-30 19:46:37 +08:00
|
|
|
|
2023-08-31 23:46:08 +08:00
|
|
|
---
|
2023-08-30 19:46:37 +08:00
|
|
|
|
|
|
|
### updateComboStructure
|
|
|
|
|
|
|
|
• `Optional` **updateComboStructure**: `boolean`
|
|
|
|
|
|
|
|
Whether change the combo hierarchy structure or only change size.
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2023-08-31 20:33:50 +08:00
|
|
|
[packages/g6/src/stdlib/behavior/drag-combo.ts:59](https://github.com/antvis/G6/blob/61e525e59b/packages/g6/src/stdlib/behavior/drag-combo.ts#L59)
|