diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-10-17 01:28:40 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-17 01:28:40 +0200 |
commit | 6ed792c982991b679d1c50060f4ca25b2eb1b9ca (patch) | |
tree | c1f4e920c0cfa2e9a2dfa1605d242e25cd28bfdd /components/Tweaks/VisualsPanel.tsx | |
parent | ca2fa3dc8d405d0ec451f16b9fcc72cde6bbf470 (diff) | |
parent | d1f02171bd4727fb0c09657d6fe0f21f5cde9617 (diff) |
Merge pull request #120 from org-roam/feat/community-detection
Feat/community detection
Diffstat (limited to 'components/Tweaks/VisualsPanel.tsx')
-rw-r--r-- | components/Tweaks/VisualsPanel.tsx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/components/Tweaks/VisualsPanel.tsx b/components/Tweaks/VisualsPanel.tsx index 23ba41f..f364c4f 100644 --- a/components/Tweaks/VisualsPanel.tsx +++ b/components/Tweaks/VisualsPanel.tsx @@ -18,12 +18,13 @@ import { import React, { useCallback } from 'react' import { HighlightingPanel } from './HighlightingPanel' import { ColorsPanel } from './ColorsPanel' -import { initialVisuals } from '../config' +import { initialColoring, initialVisuals } from '../config' import { NodesNLinksPanel } from './NodesNLinksPanel' 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: typeof initialColoring + 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> |