Created
October 12, 2021 18:50
-
-
Save AlexeyBoiko/019a67cf7ccbd2e6c9c4f6a1de9782c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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