visgraph options settings

This commit is contained in:
Mathieu Jaumotte 2021-10-30 01:51:02 +02:00
parent 851a246257
commit a57a23dc49
2 changed files with 18 additions and 6 deletions

View File

@ -316,7 +316,7 @@ const store = createStore({
commit('addPerson', adapt2vis(person, { folded: true }))
console.log('********* fetch infos for missing', person.id, '******')
//dispatch('fetchInfoForPerson', person)
dispatch('fetchInfoForPerson', person)
},
}
})

View File

@ -25,8 +25,8 @@ window.options = {
barnesHut: {
theta: 0.5,
gravitationalConstant: -2000,
centralGravity: 0.1, //// 0.3
springLength: 200, //// 95
centralGravity: 0.08, //// 0.3
springLength: 220, //// 95
springConstant: 0.04,
damping: 0.09,
avoidOverlap: 0
@ -151,10 +151,22 @@ window.options = {
border: '#b0b0b0',
background: 'rgb(193,229,222)',
highlight: {
border: '#8d3686',
background: 'rgb(193,229,222)'
border: '#89c9a9',
background: 'rgb(156,213,203)'
},
hover: {
border: '#89c9a9',
background: 'rgb(156,213,203)'
}
}
},
opacity: 0.85,
shadow:{
enabled: true,
color: 'rgba(0,0,0,0.5)',
size:10,
x:5,
y:5
},
},
household: {
color: 'pink'