✨ feat: verbessere neuronale Netzwerkdarstellung und Mindmap-Layout durch Anpassungen an Farben, Größen und Animationen
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user