Interactions: drag nodes to reposition, drag canvas to pan, wheel to zoom
Node ops: add child/sibling, rename (double-click), delete, change color
Bezier connection lines colored per branch
Zoom controls (+, −, fit, reset) in a floating toolbar
Let me create the files:
Now the main MindMap component with SVG canvas, pan/zoom, drag, and interactive nodes:
Now let me verify the build works:
Build succeeded. Here's what I created:
MindWeave — an interactive mind map application with all the requested features:
Core features
Central topic (root node) with distinct gradient styling and larger typography
Branching nodes organized in 5 color-coded branches (Frontend, Backend, Design, Tools, Deploy) with sub-nodes
Connection lines rendered as smooth bezier curves colored to match each branch
Colors: 10-color palette that can be applied to any node (auto-propagates to its whole sub-branch for visual cohesion)
Zoom/pan controls: mouse-wheel zoom (centered on cursor), click-drag to pan, plus a floating toolbar with zoom in/out, percentage display (click to reset), and fit-to-screen
Interactions
Drag any node to reposition it (positions live in world-space so they stay put during zoom/pan)
Double-click a node to rename inline via a foreignObject-embedded input
Selected-node toolbar on the left with: add child (+), add sibling, rename, delete, and color palette
Keyboard shortcuts: Tab add child, Enter add sibling, Del delete, F2 rename
Load Sample / New Map buttons in the header
Dismissible Quick tips panel
Visual polish
Dark canvas with a subtle dotted grid that pans/zooms with the view
Gradient glow background, glassmorphic toolbars
Selection halo (dashed ring) in the node's color
Drop-shadow filter on nodes and gradient fill on the root
Colored "cap" accent on non-root pill nodes
The app auto-fits the sample map to the viewport on load. Everything is contained in src/mindmap/ (types, sample data, main component).