58 lines
1.3 KiB
C#
58 lines
1.3 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace WebDoorCreator.UI.Components.SvgComp
|
|
{
|
|
public partial class StepArrow
|
|
{
|
|
#region Public Properties
|
|
|
|
[Parameter]
|
|
public int ObjH { get; set; } = 100;
|
|
|
|
[Parameter]
|
|
public int ObjId { get; set; } = 0;
|
|
|
|
[Parameter]
|
|
public int ObjW { get; set; } = 500;
|
|
|
|
[Parameter]
|
|
public string StepText { get; set; } = "Arrow Stepped";
|
|
|
|
[Parameter]
|
|
public string TextStyle { get; set; } = "font-size: 2.5em; font-weight:bold; fill: white;";
|
|
|
|
|
|
[Parameter]
|
|
public string BlockStyle { get; set; } = "fill:rgb(0,0,255);stroke-width:0;stroke:rgb(0,0,0);";
|
|
|
|
[Parameter]
|
|
public string BlockStyleBorderUp { get; set; } = "stroke-width:5px;stroke:rgb(255,255,255);stroke-dasharray: 650,600;";
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Protected Properties
|
|
|
|
protected int deltaH
|
|
{
|
|
get => ObjH / 100;
|
|
}
|
|
|
|
protected int rectH
|
|
{
|
|
get => (ObjH / 2);
|
|
//* (96 / 100);
|
|
}
|
|
|
|
protected int rectW
|
|
{
|
|
get => ObjW - ObjH / 2;
|
|
}
|
|
|
|
protected int tipSize
|
|
{
|
|
get => ObjH / 3;
|
|
}
|
|
|
|
#endregion Protected Properties
|
|
}
|
|
} |