From ab737f68511cb48bf6ba7c2e7c01286473c0f71e Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Sat, 31 Jul 2021 02:42:27 +0200 Subject: even saner defaults --- components/config.ts | 5 +++-- components/tweaks.tsx | 7 ++++++- 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/config.ts b/components/config.ts index 89b6dd0..fdb4145 100644 --- a/components/config.ts +++ b/components/config.ts @@ -16,7 +16,7 @@ export const algos = algorithms export const initialPhysics = { enabled: true, - charge: -500, + charge: -700, collision: true, collisionStrength: 20, centering: true, @@ -61,13 +61,14 @@ export const initialVisuals = { linkColorScheme: 'gray.500', nodeColorScheme: [ 'red.500', - 'orange.500', + 'gray.600', 'yellow.500', 'green.500', 'cyan.500', 'blue.500', 'pink.500', 'purple.500', + 'orange.500', ], nodeHighlight: '', linkHighlight: 'purple.500', diff --git a/components/tweaks.tsx b/components/tweaks.tsx index 394c005..b2b0aaf 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -145,7 +145,12 @@ export const Tweaks = (props: TweakProps) => { } - onClick={() => setPhysics(initialPhysics)} + onClick={() => { + setVisuals(initialVisuals) + setFilter(initialFilter) + setMouse(initialMouse) + setPhysics(initialPhysics) + }} variant="none" size="sm" /> -- cgit v1.2.3