diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-31 01:52:36 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-31 01:52:36 +0200 |
commit | 4af1e35e7bda7fd54f06da81c2fc6d367d38c102 (patch) | |
tree | ac56400057255192c2abe7ee6df00cb4fddf1cfb /components/config.ts | |
parent | becbc14293c38e131c8ce579ef459783b988a9f5 (diff) |
more ui improvements, better defaults
Diffstat (limited to 'components/config.ts')
-rw-r--r-- | components/config.ts | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/components/config.ts b/components/config.ts index 2cc4b54..89b6dd0 100644 --- a/components/config.ts +++ b/components/config.ts @@ -12,9 +12,11 @@ for (let type in Easing) { } } +export const algos = algorithms + export const initialPhysics = { enabled: true, - charge: -350, + charge: -500, collision: true, collisionStrength: 20, centering: true, @@ -25,7 +27,7 @@ export const initialPhysics = { alphaTarget: 0, alphaMin: 0, velocityDecay: 0.25, - gravity: 0.5, + gravity: 0.3, gravityOn: true, } @@ -42,21 +44,20 @@ export const initialVisuals = { particles: false, particlesNumber: 0, particlesWidth: 4, - linkOpacity: 0.7, + linkOpacity: 0.8, linkWidth: 1, nodeRel: 4, - nodeOpacity: 0.9, - nodeResolution: 8, + nodeOpacity: 1, + nodeResolution: 12, labels: 2, labelScale: 1.5, highlight: true, highlightNodeSize: 2, highlightLinkSize: 2, - highlightAnim: false, - animationSpeed: 250, - algorithms: algorithms, + highlightAnim: true, + animationSpeed: 700, algorithmOptions: options, - algorithmName: 'CubicOut', + algorithmName: 'BackOut', linkColorScheme: 'gray.500', nodeColorScheme: [ 'red.500', @@ -71,9 +72,9 @@ export const initialVisuals = { nodeHighlight: '', linkHighlight: 'purple.500', backgroundColor: 'white', - emacsNodeColor: '', - labelTextColor: 'white', - labelBackgroundColor: 'black', + emacsNodeColor: 'grey.800', + labelTextColor: 'black', + labelBackgroundColor: 'white', labelBackgroundOpacity: 0.7, } |