Round commit graph connections

This commit is contained in:
Georg Bauer
2026-07-31 17:44:09 +02:00
parent dba6359d30
commit eadbadd3cb
6 changed files with 144 additions and 49 deletions

View File

@@ -177,7 +177,8 @@ pub struct CommitRow {
pub top_lanes: Vec<u32>,
pub bottom_lanes: Vec<u32>,
pub node_lane: Option<u32>,
pub connections: Vec<u32>,
pub top_connections: Vec<u32>,
pub bottom_connections: Vec<u32>,
}
#[derive(Clone, uniffi::Record)]
@@ -477,7 +478,8 @@ pub fn commit_page(
.top_lanes
.iter()
.chain(commit.bottom_lanes.iter())
.chain(commit.connections.iter())
.chain(commit.top_connections.iter())
.chain(commit.bottom_connections.iter())
.chain(commit.node_lane.iter())
})
.max()
@@ -525,7 +527,8 @@ pub fn commit_page(
top_lanes: indices(&row.top_lanes),
bottom_lanes: indices(&row.bottom_lanes),
node_lane: row.node_lane.map(|lane| lane as u32),
connections: indices(&row.connections),
top_connections: indices(&row.top_connections),
bottom_connections: indices(&row.bottom_connections),
})
})
.collect();