Skip to content

Instantly share code, notes, and snippets.

@AlexeyBoiko
Created October 12, 2021 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexeyBoiko/29e8d921b068a8b96915eaea240bcce8 to your computer and use it in GitHub Desktop.
Save AlexeyBoiko/29e8d921b068a8b96915eaea240bcce8 to your computer and use it in GitHub Desktop.
<path d="M @X1 @Y1 C @c1x @c1y, @c2x @c2y, @X2 @Y2" />
@code {
[Parameter] public Direction Dir1 { get; set; } = Direction.Right;
[Parameter] public double X1 { get; set; }
[Parameter] public double Y1 { get; set; }
[Parameter] public Direction Dir2 { get; set; } = Direction.Left;
[Parameter] public double X2 { get; set; }
[Parameter] public double Y2 { get; set; }
// reference points
double c1x;
double c1y;
double c2x;
double c2y;
public enum Direction {
Top,
Right,
Bottom,
Left
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment