Ensure seamless toggling between selected labels and the complete graph

This commit is contained in:
yangdx
2025-03-12 08:52:28 +08:00
parent fff2ef87f0
commit ee0700d288
3 changed files with 39 additions and 23 deletions

View File

@@ -93,7 +93,7 @@ const useGraphStoreBase = create<GraphState>()((set) => ({
rawGraph: null,
sigmaGraph: null,
graphLabels: [],
graphLabels: ['*'],
setSelectedNode: (nodeId: string | null, moveToSelectedNode?: boolean) =>
set({ selectedNode: nodeId, moveToSelectedNode }),
@@ -115,7 +115,7 @@ const useGraphStoreBase = create<GraphState>()((set) => ({
focusedEdge: null,
rawGraph: null,
sigmaGraph: null,
graphLabels: [],
graphLabels: ['*'],
moveToSelectedNode: false
}),