Detect detached connections and render them differently
This commit is contained in:
parent
ebe0f5cfc0
commit
f1965f7530
4 changed files with 30 additions and 15 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue