mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
visgraph: improve label with basic markdown
This commit is contained in:
parent
09903c2f52
commit
851a246257
@ -118,6 +118,9 @@ window.options = {
|
||||
//physics: true,
|
||||
borderWidth: 1,
|
||||
borderWidthSelected: 3,
|
||||
font: {
|
||||
multi: 'md'
|
||||
}
|
||||
},
|
||||
edges: {
|
||||
//physics: true,
|
||||
@ -148,7 +151,7 @@ window.options = {
|
||||
border: '#b0b0b0',
|
||||
background: 'rgb(193,229,222)',
|
||||
highlight: {
|
||||
border: '#368d7e',
|
||||
border: '#8d3686',
|
||||
background: 'rgb(193,229,222)'
|
||||
}
|
||||
}
|
||||
@ -174,7 +177,7 @@ const adapt2vis = (entity, options = {}) => {
|
||||
switch (entity.type) {
|
||||
case 'person':
|
||||
entity._id = entity.id
|
||||
entity.label = `${entity.text}\n` + getGender(entity.gender) +' - '+ getAge(entity.birthdate)
|
||||
entity.label = `*${entity.text}*\n_${getGender(entity.gender)} - ${getAge(entity.birthdate)}_`
|
||||
if (options.folded) {
|
||||
entity.title = visMessages.fr.visgraph.click_to_expand
|
||||
entity._label = entity.label // keep label
|
||||
|
Loading…
x
Reference in New Issue
Block a user