Skip to content

Instantly share code, notes, and snippets.

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/019a67cf7ccbd2e6c9c4f6a1de9782c7 to your computer and use it in GitHub Desktop.
Save AlexeyBoiko/019a67cf7ccbd2e6c9c4f6a1de9782c7 to your computer and use it in GitHub Desktop.
<button @onclick=Update>Update</button>
<svg xmlns="http://www.w3.org/2000/svg">
<Connector
X1=X1 Y1=Y1
Dir1=Dir1
X2=X2 Y2=Y2
Dir2=Dir2 />
</svg>
@code {
Direction Dir1;
double X1;
double Y1;
Direction Dir2;
double X2;
double Y2;
void Update() {
Dir1 = Direction.Left;
X1 = 100;
Y1 = 100;
Dir1 = Direction.Right;
X1 = 200;
Y1 = 200;
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment