Detect detached connections and render them differently

This commit is contained in:
Juno Takano 2025-12-09 21:40:06 -03:00
commit f1965f7530
4 changed files with 30 additions and 15 deletions

View file

@ -12,11 +12,13 @@ pub struct Graph {
#[derive(Serialize, Clone, Default, PartialEq, Deserialize)]
pub struct Edge {
pub to: String,
#[serde(default)]
pub anchor: String,
#[serde(default)]
pub from: String,
pub to: String,
#[serde(default)]
pub detached: bool,
}
#[derive(Serialize, Deserialize, Clone, Default)]