Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

fix(app): revert use of GraphViewer

dextmorgn6c0c5081f8e0
diff --git a/flowsint-app/src/components/graphs/graph-main.tsx b/flowsint-app/src/components/graphs/graph-main.tsx
index 7a5b2f95..d934a461 100644
--- a/flowsint-app/src/components/graphs/graph-main.tsx
+++ b/flowsint-app/src/components/graphs/graph-main.tsx
@@ -1,9 +1,10 @@
import { useGraphStore } from '@/stores/graph-store'
import React, { useRef, useCallback } from 'react'
// import GraphViewer from './graph-viewer'
-import WebGLGraphViewer from './webgl'
+// import WebGLGraphViewer from './webgl'
import ContextMenu from './context-menu'
import { useGraphControls } from '@/stores/graph-controls-store'
+import GraphViewer from './graph-viewer'
const GraphMain = () => {
const filteredNodes = useGraphStore((s) => s.filteredNodes)
@@ -56,15 +57,14 @@ const GraphMain = () => {
}, [])
return (
<div ref={containerRef} className="relative h-full w-full bg-background">
- <WebGLGraphViewer
+ {/* <WebGLGraphViewer
nodes={filteredNodes}
edges={filteredEdges}
onNodeClick={handleNodeClick}
onNodeRightClick={onNodeContextMenu}
onBackgroundClick={handleBackgroundClick}
layoutMode={layoutMode}
- />
- {/* Ancien composant pour référence
+ /> */}
<GraphViewer
nodes={filteredNodes}
edges={filteredEdges}
@@ -77,7 +77,7 @@ const GraphMain = () => {
allowLasso
minimap={false}
/>
- */}
+
{menu && <ContextMenu onClick={handleBackgroundClick} {...menu} />}
</div>
)