From 851a24625798bd9489a0bd8a9876887d3685218b Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Sat, 30 Oct 2021 00:27:10 +0200 Subject: [PATCH] visgraph: improve label with basic markdown --- .../Resources/public/vuejs/VisGraph/vis-network.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js index 8cafdda9f..ecec18c9b 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/VisGraph/vis-network.js @@ -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