DragElementForce
Reading needs 1 minutes
This behavior can only be used with d3-force layout. The layout will be recalculated in real time during dragging.
string
Behavior key, that is, the unique identifier
Used to identify the behavior for further operations
// Update behavior optionsgraph.updateBehavior({key: 'key', ...});
string
Behavior type
boolean
Whether the node remains in a fixed position after dragging ends
true
: After dragging ends, the node's position will remain fixed and will not be affected by the layout algorithm
false
: After dragging ends, the node's position will continue to be affected by the layout algorithm
TextStyleProps includes the following properties:
icon{TextStyleProps} means you need to use the following property names: