import { Box, StackDivider, VStack } from '@chakra-ui/react' import React from 'react' import { ColorMenu } from './ColorMenu' import { colorList, initialVisuals } from '../config' import { EnableSection } from './EnableSection' import { SliderWithInfo } from './SliderWithInfo' export interface NodesNLinksPanelProps { visuals: typeof initialVisuals setVisuals: any threeDim: boolean } export const NodesNLinksPanel = (props: NodesNLinksPanelProps) => { const { visuals, setVisuals, threeDim } = props return ( } align="stretch" color="gray.800" > setVisuals({ ...visuals, nodeRel: value })} /> setVisuals({ ...visuals, nodeSizeLinks: value })} /> setVisuals((prev: typeof initialVisuals) => ({ ...prev, nodeZoomSize: value, })) } /> {threeDim && ( <> setVisuals({ ...visuals, nodeOpacity: value })} /> setVisuals({ ...visuals, nodeResolution: value })} /> )} setVisuals({ ...visuals, linkWidth: value })} /> {threeDim && ( setVisuals({ ...visuals, linkOpacity: value })} /> )} setVisuals({ ...visuals, arrows: !visuals.arrows })} > setVisuals({ ...visuals, arrowsLength: 10 * value })} /> setVisuals({ ...visuals, arrowsPos: value })} /> setVisuals({ ...visuals, particles: !visuals.particles })} > setVisuals({ ...visuals, particlesNumber: value })} /> setVisuals({ ...visuals, particlesWidth: value })} /> ) }