mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-11-13 14:51:12 +08:00
Feat: Shorten the default distance of the timeline connector lines. (#19612)
This commit is contained in:
1 parent
5fde007e8d
commit
6d7bf7041a
2 files changed
+8
-4
No files matched your search
@@ -326,7 +326,7 @@ export function adaptTimelineToX6Data(template: IStructureGraphTemplate): {
|
||||
fill: isTimestamp
|
||||
? 'rgb(var(--accent-primary))'
|
||||
: 'rgb(var(--text-primary))',
|
||||
fontSize: 12,
|
||||
fontSize: 24,
|
||||
...(isTimestamp && {
|
||||
refX: '50%',
|
||||
refY: 0,
|
||||
|
||||
@@ -71,9 +71,13 @@ export function useX6Graph(
|
||||
const dagreLayout = new DagreLayout({
|
||||
type: 'dagre',
|
||||
rankdir: 'LR',
|
||||
ranksep: 240,
|
||||
nodesep: 200,
|
||||
edgeMinLen: 2,
|
||||
// DagreLayout does not read each node's own width/height; without
|
||||
// nodeSize it treats every node as 0x0, so ranksep/nodesep end up
|
||||
// being node-center distances and nodes overlap their edges.
|
||||
nodeSize: (node) => [node.width, node.height],
|
||||
// With real node sizes these are border-to-border gaps.
|
||||
ranksep: 80,
|
||||
nodesep: 120,
|
||||
controlPoints: false,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user