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
... | |
@code { | |
[Parameter] public Direction Dir1 { get; set; } = Direction.Right; | |
[Parameter] public double X1 { get; set; } | |
[Parameter] public double Y1 { get; set; } | |
... | |
protected override void OnParametersSet() { | |
calc(); | |
} | |
... |
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 /> |
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
... | |
@code { | |
[Parameter] public Direction Dir1 { | |
get { ... } | |
set { ... calc(); }; | |
} = Direction.Right; | |
[Parameter] public double X1 { | |
get { ... } | |
set { ... calc(); }; |
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
<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; } |
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
<svg xmlns="http://www.w3.org/2000/svg"> | |
<circle cx="85" cy="100" r="15" fill="#04dcd2" stroke="#fff" /> | |
<circle cx="315" cy="250" r="15" fill="#04dcd2" stroke="#fff" /> | |
<Connector | |
X1=100 Y1=100 | |
Dir1=Direction.Right | |
X2=300 Y2=250 | |
Dir2=Direction.Left /> |