diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-26 01:42:10 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-26 01:42:10 +0200 |
commit | eef204000abc79c9a83f3ce268f051dcfff6bf7d (patch) | |
tree | 73afdd163efbfb4af8cd2ce48eea00eb70a2e0c6 /components/config.ts | |
parent | 9b9d28e267f88d1fe491fb781fa6893d21cde540 (diff) |
file viewer, prettier things
Diffstat (limited to 'components/config.ts')
-rw-r--r-- | components/config.ts | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/components/config.ts b/components/config.ts index 41d5345..e7a51e2 100644 --- a/components/config.ts +++ b/components/config.ts @@ -13,7 +13,7 @@ export const initialPhysics = { linkOpacity: 0.4, linkWidth: 1, nodeRel: 4, - labels: true, + labels: 2, labelScale: 1.5, alphaDecay: 0.02, alphaTarget: 0, @@ -49,6 +49,27 @@ export const initialFilter = { date: [], } +export const initialMouse = { + hover: { + highlight: true, + select: false, + follow: false, + local: false, + }, + click: { + highlight: true, + select: false, + follow: true, + local: true, + }, + doubleClick: { + highlight: true, + select: false, + follow: false, + local: false, + }, +} + function getAlgos(option?: boolean) { const options: string[] = [] const algorithms: { [name: string]: (percent: number) => number } = {} |