// Copyright © Selmo Technology GmbH. All Rights Reserved

namespace SelmoStudio.Hmi.Server.Shared.Components.BaseComponents
{
    public partial class TriangleComponent : ShapeComponentBase
    {
        private string _trianglePoints;

        protected override Task OnParametersSetAsync()
        {
            _trianglePoints = $"{BorderWidth / 2},{Height - BorderWidth / 2} {Width / 2},{BorderWidth / 2} {Width - BorderWidth / 2},{Height - BorderWidth / 2}";

            return base.OnParametersSetAsync();
        }
    }
}