Add SettingsDisplay component to show graph settings

- Create SettingsDisplay component
- Display graphQueryMaxDepth and graphMinDegree
- Position display at bottom-left corner
This commit is contained in:
yangdx
2025-03-12 06:10:48 +08:00
parent 0e234beaf5
commit c910ba1d28
2 changed files with 22 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ import Settings from '@/components/graph/Settings'
import GraphSearch from '@/components/graph/GraphSearch'
import GraphLabels from '@/components/graph/GraphLabels'
import PropertiesView from '@/components/graph/PropertiesView'
import SettingsDisplay from '@/components/graph/SettingsDisplay'
import { useSettingsStore } from '@/stores/settings'
import { useGraphStore } from '@/stores/graph'
@@ -178,6 +179,8 @@ const GraphViewer = () => {
{/* <div className="absolute bottom-2 right-2 flex flex-col rounded-xl border-2">
<MiniMap width="100px" height="100px" />
</div> */}
<SettingsDisplay />
</SigmaContainer>
)
}