summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"
/>