Skip to content

Commit 49c12bc

Browse files
committed
Fix: Default settings for node placement
1 parent e3ad3dc commit 49c12bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simulator/engine/d3-simulator-engine.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { Emitter } from '../../utils/emitter.utils';
1616
import { isObjectEqual, copyObject } from '../../utils/object.utils';
1717

1818
const MANY_BODY_MAX_DISTANCE_TO_LINK_DISTANCE_RATIO = 100;
19-
const DEFAULT_LINK_DISTANCE = 30;
19+
const DEFAULT_LINK_DISTANCE = 50;
2020

2121
export enum D3SimulatorEngineEventType {
2222
SIMULATION_START = 'simulation-start',
@@ -113,7 +113,7 @@ export const DEFAULT_SETTINGS: ID3SimulatorEngineSettings = {
113113
},
114114
links: {
115115
distance: DEFAULT_LINK_DISTANCE,
116-
strength: undefined,
116+
strength: 1,
117117
iterations: 1,
118118
},
119119
manyBody: {

0 commit comments

Comments
 (0)