From 118f8ed1325aeadac4c02310085649e6181bca5b Mon Sep 17 00:00:00 2001 From: marwin Date: Fri, 9 May 2025 20:00:46 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20enhance=20mindmap=20update?= =?UTF-8?q?=20functionality=20in=20update=5Fmindmap.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/update_mindmap.js | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/static/js/update_mindmap.js b/static/js/update_mindmap.js index f840067..2a6c7d2 100644 --- a/static/js/update_mindmap.js +++ b/static/js/update_mindmap.js @@ -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 } })),