From 29fbfba2db6fdca308a9f88c3e757b2a36367955 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Thu, 29 Jul 2021 00:13:10 +0200 Subject: added color selectors --- components/config.ts | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'components/config.ts') 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 } -- cgit v1.2.3