Increased graph layout iteration limits and defaults.

- Raised max layout iterations to 30
- Set default iterations to 15
This commit is contained in:
yangdx
2025-03-12 09:30:28 +08:00
parent e0463ede3c
commit 24418a04fe
4 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@
<link rel="icon" type="image/svg+xml" href="./logo.png" /> <link rel="icon" type="image/svg+xml" href="./logo.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lightrag</title> <title>Lightrag</title>
<script type="module" crossorigin src="./assets/index-EWBvZgEb.js"></script> <script type="module" crossorigin src="./assets/index-C_HczF2h.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CQ75jPFs.css"> <link rel="stylesheet" crossorigin href="./assets/index-CQ75jPFs.css">
</head> </head>
<body> <body>

View File

@@ -294,7 +294,7 @@ export default function Settings() {
<LabeledNumberInput <LabeledNumberInput
label="Max Layout Iterations" label="Max Layout Iterations"
min={1} min={1}
max={20} max={30}
value={graphLayoutMaxIterations} value={graphLayoutMaxIterations}
onEditFinished={setGraphLayoutMaxIterations} onEditFinished={setGraphLayoutMaxIterations}
/> />

View File

@@ -81,7 +81,7 @@ const useSettingsStoreBase = create<SettingsState>()(
graphQueryMaxDepth: 3, graphQueryMaxDepth: 3,
graphMinDegree: 0, graphMinDegree: 0,
graphLayoutMaxIterations: 10, graphLayoutMaxIterations: 15,
queryLabel: defaultQueryLabel, queryLabel: defaultQueryLabel,