feat: verbessere neuronale Netzwerkdarstellung und Mindmap-Layout durch Anpassungen an Farben, Größen und Animationen

This commit is contained in:
2025-05-10 21:19:54 +01:00
parent 7cb2bf1ed0
commit 6a3b3a81c1
2 changed files with 126 additions and 145 deletions

View File

@@ -1115,18 +1115,20 @@ function applyNeuralNetworkStyle(cy) {
'label': 'data(label)',
'text-valign': 'center',
'text-halign': 'center',
'color': '#ffffff',
'color': 'data(fontColor)',
'text-outline-width': 2,
'text-outline-color': 'rgba(0,0,0,0.8)',
'text-outline-opacity': 0.9,
'font-size': 14,
'font-size': 'data(fontSize)',
'font-weight': '500',
'text-margin-y': 8,
'width': function(ele) {
return ele.data('neuronSize') ? ele.data('neuronSize') * 8 : 60;
if (ele.data('isCenter')) return 120;
return ele.data('neuronSize') ? ele.data('neuronSize') * 10 : 80;
},
'height': function(ele) {
return ele.data('neuronSize') ? ele.data('neuronSize') * 8 : 60;
if (ele.data('isCenter')) return 120;
return ele.data('neuronSize') ? ele.data('neuronSize') * 10 : 80;
},
'background-color': 'data(color)',
'background-opacity': 0.9,