feature: navigation highlighting in tree

This commit is contained in:
2026-03-16 19:35:35 +01:00
parent 2495041a2b
commit 92ef00e78f
4 changed files with 257 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ export default function NodeContextMenu({
const graphContextValue = useContext(graphContext)!;
const graphsById = useGraphsStore((s) => (s as { graphsById: Map<string, GraphModel> }).graphsById);
const addTreeNode = useGraphLayersTreeStore(store => store.add);
const removeTreeNode = useGraphLayersTreeStore(store => store.remove);
function contextMenuOpenChange(open: boolean) {
if (!open) {
@@ -56,6 +57,7 @@ export default function NodeContextMenu({
}
case 'remove': {
removeNode(nodeContext.nodeId);
removeTreeNode(nodeContext.nodeId);
break;
}
case 'subgraph': {