/
Config.js
71 lines (67 loc) · 2.3 KB
/
Config.js
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
import * as THREE from 'three'
import Detector from './libs/Detector'
const detector = new Detector()
const Config = {
git: {
owner: 'input-output-hk',
repo: 'cardano-sl',
commitHash: '', // hash of commit to load
commitDate: '', // date to load
loadLatest: true // load latest commit in db
},
display: {
showUI: true,
showSidebar: true
},
fireBase: {
apiKey: 'AIzaSyCwfdzrjQ5GRqyz-napBM29T7Zel_6KIUY',
authDomain: 'webgl-gource-1da99.firebaseapp.com',
databaseURL: 'https://webgl-gource-1da99.firebaseio.com',
projectId: 'webgl-gource-1da99',
storageBucket: 'webgl-gource-1da99.appspot.com',
messagingSenderId: '532264380396'
},
FDG: {
nodeSpritePath: 'textures/dot.png', // path to node texture
nodeSpritePathBlur: 'textures/dot-blur.png', // path to blur node texture
nodeUpdatedSpritePath: 'textures/dot-concentric.png', // path to node updated state texture
fontTexturePath: 'textures/UbuntuMono.png', // path to font texture
nodeCount: 4096, // max number of nodes the scene can contain
autoPlay: true,
delayAmount: 1000, // time in between new commits being added to the graph
sphereProject: 0, // project graph onto sphere? 1 == true, 0 == false
sphereRadius: 700, // radius of sphere if in sphere projection mode
showFilePaths: true, // display filepath overlay on nodes
colorCooldownSpeed: 0.05, // speed at which node colors cycle
filePathCharLimit: 20, // speed at which node colors cycle
cycleColors: false, // cycle colors based on file edit time from red to blue to white
colorPalette: [ // colors to use if cycleColors is switched off
/* '#eb2256',
'#f69ab3',
'#1746a0',
'#6f9cef',
'#652b91',
'#0e5c8d',
'#1fc1c3' */
]
},
scene: {
fullScreen: false,
width: 800,
height: 600,
bgColor: 0x121327,
antialias: false,
canvasID: 'stage', // ID of wegbl canvas element
autoRotate: true, // auto rotate camera around target
autoRotateSpeed: 0.3 // speed of auto rotation
},
post: {
vignette: true
},
camera: {
fov: 60,
initPos: {x: 0, y: 0, z: 800}
},
floatType: detector.isIOS ? THREE.HalfFloatType : THREE.FloatType
}
export default Config