diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/config.ts | 2 | ||||
-rw-r--r-- | components/tweaks.tsx | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/components/config.ts b/components/config.ts index ef48973..2636b73 100644 --- a/components/config.ts +++ b/components/config.ts @@ -58,6 +58,8 @@ export const initialVisuals = { nodeResolution: 12, labels: 2, labelScale: 1.5, + labelFontSize: 13, + labelLength: 40, highlight: true, highlightNodeSize: 2, highlightLinkSize: 2, diff --git a/components/tweaks.tsx b/components/tweaks.tsx index c62cbd0..ca88d2d 100644 --- a/components/tweaks.tsx +++ b/components/tweaks.tsx @@ -850,6 +850,22 @@ export const Tweaks = (props: TweakProps) => { paddingLeft={2} color="gray.800" > + <SliderWithInfo + label="Label font size" + value={visuals.labelFontSize} + min={5} + max={20} + step={0.5} + onChange={(value) => setVisuals({ ...visuals, labelFontSize: value })} + /> + <SliderWithInfo + label="Maximum label characters" + value={visuals.labelLength} + min={10} + max={100} + step={1} + onChange={(value) => setVisuals({ ...visuals, labelLength: value })} + /> <ColorMenu colorList={colorList} label="Text" |