Articles in this section

How to draw bezier connector with single segment in Angular Diagram?

This article explains how to draw a Bezier connector with a single segment in Angular Diagram. To create a Bezier connector with a single segment in Angular Diagram, within the getConnectorDefault method, set the connector type as Bezier. Initialize the segments with the type as Bezier, and then set the allowSegmentsReset property of the bezierSettings to false. This configuration prevents the connector from automatically segmenting into multiple segments.

app.component.html

<ejs-diagram #diagram="" id="diagram" width="100%" height="800px" [getconnectordefaults]="connDefaults">    
</ejs-diagram>

app.component.ts


public connDefaults(obj: ConnectorModel): void {
   obj.type = 'Bezier';
   obj.segments = [{ type: 'Bezier' }];
   obj.bezierSettings.allowSegmentsReset = false;
 }

Refer to the working sample for additional details and implementation: Sample

Conclusion

We hope you enjoyed learning about how to draw a Bézier connector with a single segment in Angular Diagram.

You can refer to our Angular Diagram feature tour page to learn about its other groundbreaking feature representations. You can explore our Angular Diagram documentation to understand how to present and manipulate data.

For current customers, you can check out our Angular components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our Angular Diagram and other Angular components. If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, BoldDesk Support, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied