summaryrefslogtreecommitdiff
path: root/components/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'components/config.ts')
-rw-r--r--components/config.ts32
1 files changed, 29 insertions, 3 deletions
diff --git a/components/config.ts b/components/config.ts
index 753f2db..c6f581d 100644
--- a/components/config.ts
+++ b/components/config.ts
@@ -84,7 +84,33 @@ export const initialVisuals = {
algorithms: algorithms,
algorithmOptions: options,
algorithmName: 'CubicOut',
- linkColorScheme: 'plain',
- nodeColorScheme: 'colorful',
- highlightColor: 'purple',
+ linkColorScheme: 'grey',
+ nodeColorScheme: ['gray', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'pink', 'purple'],
+ nodeHighlight: '',
+ linkHighlight: '',
+}
+
+export type Visuals = {
+ particles: boolean
+ particlesNumber: number
+ particlesWidth: number
+ linkOpacity: number
+ linkWidth: number
+ nodeRel: number
+ nodeOpacity: number
+ nodeResolution: number
+ labels: number
+ labelScale: number
+ highlight: boolean
+ highlightNodeSize: number
+ highlightLinkSize: number
+ highlightAnim: boolean
+ animationSpeed: number
+ algorithms: typeof algorithms
+ algorithmOptions: typeof options
+ algorithmName: string
+ linkColorScheme: string
+ nodeColorScheme: string[]
+ nodeHighlight: string
+ linkHighlight: string
}