Rename FlowArrow to FlowArrows
This commit is contained in:
@@ -14,10 +14,10 @@ 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 Polygon? _hopper;
|
||||
private FlowArrow? _flowArrow;
|
||||
private FlowArrows? _flowArrows;
|
||||
private Line? _outer1;
|
||||
private Line? _outer2;
|
||||
private Line? _inner1;
|
||||
@@ -87,14 +87,14 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
canvas.Children.Add(_hopper);
|
||||
canvas.Children.Add(_inner1);
|
||||
canvas.Children.Add(_inner2);
|
||||
_flowArrow = FlowArrow.Create(canvas, _inner1!, _inner2!);
|
||||
_flowArrows = FlowArrows.Create(canvas, _inner1!, _inner2!);
|
||||
}
|
||||
|
||||
public void Update() {
|
||||
_inner1?.Stroke = Highlight ?? Brushes.DarkGray;
|
||||
_inner2?.Stroke = Highlight ?? Brushes.DarkGray;
|
||||
_hopper?.Fill = Highlight ?? Brushes.DarkGray;
|
||||
_flowArrow?.Update(Flow);
|
||||
_flowArrows?.Update(Flow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user