summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-31 02:42:27 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-31 02:42:27 +0200
commitab737f68511cb48bf6ba7c2e7c01286473c0f71e (patch)
tree90a16eeec996db3ce826a94e79fef4ccd672ba0a
parent802f8929993713865eadfc3348bd386c2984689e (diff)
even saner defaults
-rw-r--r--components/config.ts5
-rw-r--r--components/tweaks.tsx7
2 files changed, 9 insertions, 3 deletions
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) => {
<IconButton
aria-label="Reset Defaults"
icon={<RepeatClockIcon />}
- onClick={() => setPhysics(initialPhysics)}
+ onClick={() => {
+ setVisuals(initialVisuals)
+ setFilter(initialFilter)
+ setMouse(initialMouse)
+ setPhysics(initialPhysics)
+ }}
variant="none"
size="sm"
/>