feat: enhance mindmap update functionality in update_mindmap.js

This commit is contained in:
2025-05-09 20:00:46 +01:00
parent 121f46df01
commit 118f8ed132

View File

@@ -110,7 +110,9 @@ const mindmapData = {
category: 'Philosophie',
description: 'Die Lehre vom Denken und der Erkenntnis',
hasChildren: true,
expanded: false
expanded: false,
neuronSize: 8,
neuronActivity: 0.8
},
{
id: 'science',
@@ -118,7 +120,9 @@ const mindmapData = {
category: 'Wissenschaft',
description: 'Systematische Erforschung der Natur und Gesellschaft',
hasChildren: true,
expanded: false
expanded: false,
neuronSize: 8,
neuronActivity: 0.8
},
{
id: 'technology',
@@ -126,7 +130,9 @@ const mindmapData = {
category: 'Technologie',
description: 'Anwendung wissenschaftlicher Erkenntnisse',
hasChildren: true,
expanded: false
expanded: false,
neuronSize: 8,
neuronActivity: 0.8
},
{
id: 'arts',
@@ -134,10 +140,19 @@ const mindmapData = {
category: 'Künste',
description: 'Kreativer Ausdruck und künstlerische Gestaltung',
hasChildren: true,
expanded: false
expanded: false,
neuronSize: 8,
neuronActivity: 0.8
}
],
edges: []
edges: [
{ source: 'philosophy', target: 'science', strength: 0.8 },
{ source: 'science', target: 'technology', strength: 0.8 },
{ source: 'technology', target: 'arts', strength: 0.6 },
{ source: 'arts', target: 'philosophy', strength: 0.6 },
{ source: 'philosophy', target: 'technology', strength: 0.4 },
{ source: 'science', target: 'arts', strength: 0.4 }
]
};
// Warte bis DOM geladen ist
@@ -170,6 +185,7 @@ document.addEventListener('DOMContentLoaded', function() {
category: node.category,
description: node.description,
hasChildren: node.hasChildren,
expanded: node.expanded,
expanded: node.expanded
}
})),