yangdx commited on
Commit
f7e044f
·
1 Parent(s): 9fab39c

Update webui assets

Browse files
lightrag/api/webui/assets/index-BV5s8k-a.css ADDED
Binary file (48.6 kB). View file
 
lightrag/api/webui/assets/{index-B6Hxnq21.js → index-HWWfOWMh.js} RENAMED
Binary files a/lightrag/api/webui/assets/index-B6Hxnq21.js and b/lightrag/api/webui/assets/index-HWWfOWMh.js differ
 
lightrag/api/webui/assets/index-ban2VJxS.css DELETED
Binary file (48.4 kB)
 
lightrag/api/webui/index.html CHANGED
Binary files a/lightrag/api/webui/index.html and b/lightrag/api/webui/index.html differ
 
lightrag_webui/src/components/graph/GraphControl.tsx CHANGED
@@ -64,7 +64,7 @@ const GraphControl = ({ disableHoverEffect }: { disableHoverEffect?: boolean })
64
  // Define event types
65
  type NodeEvent = { node: string; event: { original: MouseEvent | TouchEvent } }
66
  type EdgeEvent = { edge: string; event: { original: MouseEvent | TouchEvent } }
67
-
68
  // Register all events, but edge events will only be processed if enableEdgeEvents is true
69
  const events: Record<string, any> = {
70
  enterNode: (event: NodeEvent) => {
@@ -83,20 +83,20 @@ const GraphControl = ({ disableHoverEffect }: { disableHoverEffect?: boolean })
83
  },
84
  clickStage: () => clearSelection()
85
  }
86
-
87
  // Only add edge event handlers if enableEdgeEvents is true
88
  if (enableEdgeEvents) {
89
  events.clickEdge = (event: EdgeEvent) => {
90
  setSelectedEdge(event.edge)
91
  setSelectedNode(null)
92
  }
93
-
94
  events.enterEdge = (event: EdgeEvent) => {
95
  if (!isButtonPressed(event.event.original)) {
96
  setFocusedEdge(event.edge)
97
  }
98
  }
99
-
100
  events.leaveEdge = (event: EdgeEvent) => {
101
  if (!isButtonPressed(event.event.original)) {
102
  setFocusedEdge(null)
@@ -122,7 +122,7 @@ const GraphControl = ({ disableHoverEffect }: { disableHoverEffect?: boolean })
122
  // Update edge-specific settings
123
  enableEdgeEvents,
124
  renderEdgeLabels,
125
-
126
  // Node reducer for node appearance
127
  nodeReducer: (node, data) => {
128
  const graph = sigma.getGraph()
@@ -162,7 +162,7 @@ const GraphControl = ({ disableHoverEffect }: { disableHoverEffect?: boolean })
162
  }
163
  return newData
164
  },
165
-
166
  // Edge reducer for edge appearance
167
  edgeReducer: (edge, data) => {
168
  const graph = sigma.getGraph()
 
64
  // Define event types
65
  type NodeEvent = { node: string; event: { original: MouseEvent | TouchEvent } }
66
  type EdgeEvent = { edge: string; event: { original: MouseEvent | TouchEvent } }
67
+
68
  // Register all events, but edge events will only be processed if enableEdgeEvents is true
69
  const events: Record<string, any> = {
70
  enterNode: (event: NodeEvent) => {
 
83
  },
84
  clickStage: () => clearSelection()
85
  }
86
+
87
  // Only add edge event handlers if enableEdgeEvents is true
88
  if (enableEdgeEvents) {
89
  events.clickEdge = (event: EdgeEvent) => {
90
  setSelectedEdge(event.edge)
91
  setSelectedNode(null)
92
  }
93
+
94
  events.enterEdge = (event: EdgeEvent) => {
95
  if (!isButtonPressed(event.event.original)) {
96
  setFocusedEdge(event.edge)
97
  }
98
  }
99
+
100
  events.leaveEdge = (event: EdgeEvent) => {
101
  if (!isButtonPressed(event.event.original)) {
102
  setFocusedEdge(null)
 
122
  // Update edge-specific settings
123
  enableEdgeEvents,
124
  renderEdgeLabels,
125
+
126
  // Node reducer for node appearance
127
  nodeReducer: (node, data) => {
128
  const graph = sigma.getGraph()
 
162
  }
163
  return newData
164
  },
165
+
166
  // Edge reducer for edge appearance
167
  edgeReducer: (edge, data) => {
168
  const graph = sigma.getGraph()