Rename FlowArrow to FlowArrows

This commit is contained in:
2026-08-03 15:56:24 +02:00
parent ac45092e1d
commit 0d65e419b9
4 changed files with 18 additions and 18 deletions
+4 -4
View File
@@ -11,11 +11,11 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
public bool Orientation { get; set; }
public Brush? Highlight { get; set; }
public (bool TowardEnd, double PathOffset)? Flow { get; set; }
public double FlowLength => _flowArrow?.Length ?? 0;
public double FlowLength => _flowArrows?.Length ?? 0;
private Polyline? _outer;
private Polyline? _inner;
private FlowArrow? _flowArrow;
private FlowArrows? _flowArrows;
public Pipe(INode start, INode end, bool orientation = false, bool twoWay = false) {
Start = start;
@@ -49,12 +49,12 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
};
canvas.Children.Add(_outer);
canvas.Children.Add(_inner);
_flowArrow = FlowArrow.Create(canvas, _inner);
_flowArrows = FlowArrows.Create(canvas, _inner);
}
public void Update() {
_inner?.Stroke = Highlight ?? Brushes.DarkGray;
_flowArrow?.Update(Flow);
_flowArrows?.Update(Flow);
}
}
}