1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
import { Easing } from '@tweenjs/tween.js'
const options: string[] = []
const algorithms: { [name: string]: (percent: number) => number } = {}
for (let type in Easing) {
for (let mode in (Easing as any)[type]) {
let name = type + mode
if (name === 'LinearNone') {
name = 'Linear'
}
options.push(name)
algorithms[name] = (Easing as any)[type][mode]
}
}
export const algos = algorithms
export const initialPhysics = {
enabled: true,
charge: -700,
collision: true,
collisionStrength: 20,
centering: true,
centeringStrength: 0.2,
linkStrength: 0.3,
linkIts: 1,
alphaDecay: 0.05,
alphaTarget: 0,
alphaMin: 0,
velocityDecay: 0.25,
gravity: 0.3,
gravityOn: true,
gravityLocal: false,
}
export const initialFilter = {
orphans: false,
dailies: false,
parent: 'heading',
filelessCites: false,
tagsBlacklist: [],
tagsWhitelist: [],
dirsBlocklist: [],
dirsAllowlist: [],
bad: true,
nodes: [],
links: [],
date: [],
noter: true,
}
export const initialColoring = {
method: 'degree',
}
export const initialVisuals = {
particles: false,
particlesNumber: 0,
particlesWidth: 4,
arrows: false,
arrowsLength: 1,
arrowsPos: 0.5,
arrowsColor: '',
linkOpacity: 0.8,
linkWidth: 1,
nodeRel: 3,
nodeOpacity: 1,
nodeResolution: 12,
labels: 2,
labelScale: 1.5,
labelFontSize: 10,
labelLength: 40,
labelWordWrap: 25,
labelLineSpace: 1,
labelDynamicDegree: 8,
labelDynamicStrength: 0.5,
highlight: true,
highlightNodeSize: 1.1,
highlightLinkSize: 0.7,
highlightFade: 0.8,
highlightAnim: true,
animationSpeed: 360,
algorithmOptions: options,
algorithmName: 'CircularOut',
linkColorScheme: 'gray.500',
nodeColorScheme: [
'red.500',
'gray.600',
'yellow.500',
'green.500',
'cyan.500',
'blue.500',
'pink.500',
'purple.500',
'orange.500',
],
nodeHighlight: 'purple.500',
linkHighlight: 'purple.500',
backgroundColor: 'white',
emacsNodeColor: 'gray.800',
labelTextColor: 'black',
labelBackgroundColor: '',
labelBackgroundOpacity: 0.7,
citeDashes: true,
citeDashLength: 35,
citeGapLength: 15,
citeLinkColor: 'gray.700',
citeLinkHighlightColor: '',
citeNodeColor: 'black',
refDashes: true,
refDashLength: 35,
refGapLength: 15,
refLinkColor: 'gray.700',
refLinkHighlightColor: '',
refNodeColor: 'black',
nodeSizeLinks: 0.5,
nodeZoomSize: 1.2,
}
export interface TagColors {
[tag: string]: string
}
export const initialBehavior = {
follow: 'zoom',
localSame: 'add',
zoomPadding: 200,
zoomSpeed: 2000,
}
export const initialMouse = {
highlight: 'hover',
local: 'double',
follow: 'never',
context: 'right',
preview: 'click',
backgroundExitsLocal: false,
}
export const initialLocal = {
neighbors: 1,
}
export const colorList = [
'red.500',
'orange.500',
'yellow.500',
'green.500',
'cyan.500',
'blue.500',
'pink.500',
'purple.500',
'white',
'gray.100',
'gray.200',
'gray.300',
'gray.400',
'gray.500',
'gray.600',
'gray.700',
'gray.800',
'gray.900',
'black',
]
|