Enum BezierSmoothness
Specifies the smoothness between the neighboring bezier segments.
Namespace: Syncfusion.Blazor.Diagram
Assembly: Syncfusion.Blazor.dll
Syntax
[Flags]
public enum BezierSmoothness
Examples
<SfDiagramComponent @ref = "diagram" Height="600px" Width="90%" ID="diagram" @bind-Connectors="connectors"></SfDiagramComponent>
@code {
SfDiagramComponent diagram; DiagramObjectCollection<Connector> connectors = new DiagramObjectCollection<Connector>();
protected override void OnInitialized()
{
Connector connector2 = new Connector()
{
ID = "connector2",
SourcePoint = new DiagramPoint() { X = 700, Y = 200 },
TargetPoint = new DiagramPoint() { X = 1000, Y = 400 },
Segments = new DiagramObjectCollection<ConnectorSegment>()
{
new BezierSegment() { Type = ConnectorSegmentType.Bezier, Point = new DiagramPoint() { X = 750, Y = 250 }},
new BezierSegment() { Type = ConnectorSegmentType.Bezier, Point = new DiagramPoint() { X = 900, Y = 350 }}
},
Type = ConnectorSegmentType.Bezier,
BezierConnectorSettings = new BezierConnectorSettings() { Smoothness = BezierSmoothness.Both },
};
connectors.Add(connector1);
}
}
Fields
| Name | Description |
|---|---|
| Both | Enables to maintain the same angle and distance for the bezier segment control points when any one of them is editing. |
| None | Disable all smoothness constraints. |
| SymmetricAngle | Enables to maintain the same angle for the bezier segment control points when any one of them is editing. |
| SymmetricDistance | Enables to maintain the same distance for the bezier segment control points when any one of them is editing. |