mirror of
https://gitee.com/antv/g6.git
synced 2024-12-01 03:08:33 +08:00
feat: layout for combo. feat: nonoverlap for combo layout in first stage.
This commit is contained in:
parent
ea48e70788
commit
21f58c2a71
@ -156,7 +156,6 @@ export default class ComboForce extends BaseLayout {
|
||||
self.initVals();
|
||||
|
||||
// init the positions to make the nodes with same combo gather
|
||||
self.initPos(comboMap);
|
||||
|
||||
// iterate
|
||||
for (let i = 0; i < maxIteration; i++) {
|
||||
|
@ -493,6 +493,7 @@ const G6ForceLayout = () => {
|
||||
container: container.current as string | HTMLElement,
|
||||
width: 800,
|
||||
height: 500,
|
||||
<<<<<<< HEAD
|
||||
fitView: true,
|
||||
modes: {
|
||||
default: ['drag-canvas', 'drag-node', 'zoom-canvas'],
|
||||
@ -500,6 +501,14 @@ const G6ForceLayout = () => {
|
||||
layout: {
|
||||
type: 'comboForce',
|
||||
linkDistance: 1000,
|
||||
=======
|
||||
modes: {
|
||||
default: ['drag-canvas', 'drag-node'],
|
||||
},
|
||||
layout: {
|
||||
type: 'comboForce',
|
||||
linkDistance: 100,
|
||||
>>>>>>> feat: layout for combo. feat: nonoverlap for combo layout in first stage.
|
||||
// comboIding: true,
|
||||
// comboIdGravity: 5,
|
||||
// preventOverlap: true,
|
||||
@ -508,11 +517,15 @@ const G6ForceLayout = () => {
|
||||
nodeStrength: 30,
|
||||
linkStrength: 0.1,
|
||||
// preventOverlap: true,
|
||||
<<<<<<< HEAD
|
||||
preventComboOverlap: true,
|
||||
collideStrength: 0.5,
|
||||
maxIteration: 10,
|
||||
comboPadding: 5,
|
||||
comboSpacing: 10
|
||||
=======
|
||||
preventComboOverlap: true
|
||||
>>>>>>> feat: layout for combo. feat: nonoverlap for combo layout in first stage.
|
||||
},
|
||||
defaultEdge: {
|
||||
size: 3,
|
||||
|
Loading…
Reference in New Issue
Block a user