diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-16 23:54:48 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-10-16 23:54:48 +0200 |
commit | 0895967f20ef33bc0f32c99bac0a93761915b87f (patch) | |
tree | b427a25eb977e00107b7f2aa4cbf7271e2e0e633 /components/Tweaks/VisualsPanel.tsx | |
parent | 64b579b4d6e989ea7c71840a1dde2c3dc360365d (diff) |
feat(algos): ability to select coloring
Diffstat (limited to 'components/Tweaks/VisualsPanel.tsx')
-rw-r--r-- | components/Tweaks/VisualsPanel.tsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/components/Tweaks/VisualsPanel.tsx b/components/Tweaks/VisualsPanel.tsx index d3c8415..015acfc 100644 --- a/components/Tweaks/VisualsPanel.tsx +++ b/components/Tweaks/VisualsPanel.tsx @@ -24,6 +24,7 @@ import { LabelsPanel } from './LabelsPanel' import { CitationsPanel } from './CitationsPanel' import { ColorMenu } from './ColorMenu' import { ThemeSelect } from './ThemeSelect' +import { GraphColorSelect } from './GraphColorSelect' export interface VisualsPanelProps { visuals: typeof initialVisuals @@ -31,14 +32,25 @@ export interface VisualsPanelProps { highlightColor: string setHighlightColor: any threeDim: boolean + coloring: string + setColoring: any } export const VisualsPanel = (props: VisualsPanelProps) => { - const { visuals, setVisuals, highlightColor, setHighlightColor, threeDim } = props + const { + coloring, + setColoring, + visuals, + setVisuals, + highlightColor, + setHighlightColor, + threeDim, + } = props const setVisualsCallback = useCallback((val) => setVisuals(val), []) return ( <VStack justifyContent="flex-start" align="stretch"> <ThemeSelect /> + <GraphColorSelect {...{ coloring, setColoring }} /> <Accordion allowToggle defaultIndex={[0]} paddingLeft={3}> <AccordionItem> <AccordionButton> |