Skip to content

Commit

Permalink
Fix: Default settings for node placement (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexIchenskiy authored Mar 20, 2024
1 parent e9a4632 commit 3b74263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulator/engine/d3-simulator-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Emitter } from '../../utils/emitter.utils';
import { isObjectEqual, copyObject } from '../../utils/object.utils';

const MANY_BODY_MAX_DISTANCE_TO_LINK_DISTANCE_RATIO = 100;
const DEFAULT_LINK_DISTANCE = 30;
const DEFAULT_LINK_DISTANCE = 50;

export enum D3SimulatorEngineEventType {
SIMULATION_START = 'simulation-start',
Expand Down Expand Up @@ -115,7 +115,7 @@ export const DEFAULT_SETTINGS: ID3SimulatorEngineSettings = {
},
links: {
distance: DEFAULT_LINK_DISTANCE,
strength: undefined,
strength: 1,
iterations: 1,
},
manyBody: {
Expand Down

0 comments on commit 3b74263

Please sign in to comment.