diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-22 17:53:42 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-22 17:53:42 +0200 |
commit | 51a0793ec06297a435379cb40a93c958a43bde86 (patch) | |
tree | 58d1c66ac55e4c77ba89cb14c232b15b36aed9b3 | |
parent | 95764afa6539cd7c4ccf6058ce15832d59855cf2 (diff) |
added hightlight link toolbar
-rw-r--r-- | pages/index.tsx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 469d985..356f5bb 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -44,6 +44,7 @@ import { MenuDivider, MenuOptionGroup, MenuItemOption, + Flex, } from '@chakra-ui/react' import { InfoOutlineIcon, RepeatClockIcon, ChevronDownIcon } from '@chakra-ui/icons' @@ -459,7 +460,19 @@ export const Tweaks = function (props: TweakProps) { onChange={() => setPhysics({ ...physics, highlight: !physics.hightligth })} value={physics.hightlight} > - <Text>Hi</Text> + <SliderWithInfo + label="Highlight Link Thickness Multiplier" + value={physics.highlightLink} + onChange={(value) => setPhysics({ ...physics, highlightLink: value })} + /> + <SliderWithInfo + label="Highlight Node Size Multiplier" + value={physics.particleWidth} + onChange={(value) => setPhysics({ ...physics, highlightNode: value })} + /> + <Flex justifyContent="space-between"> + <Text></Text> + </Flex> </EnableSection> </VStack> </AccordionPanel> |