Articles in this section

How to customize the shape of the selector handles in JavaScript Diagram?

The Syncfusion® JavaScript Diagram offers support for customizing the appearance of the selector resize handle. You can achieve this by overriding the style of the resize handle element.

To change the shape of the resize handles, define the rx and ry values as 10 to the class .e-diagram-resize-handle. This will change the shape from a square to a circle, which is a rectangular SVG element.

The following code illustrates how to customize the style of the selector element:

<style>
.e-diagram-resize-handle{
   stroke: blue;
   stroke-width: 2px;
   stroke-dasharray:none;
   fill: yellow;
   rx:10;
   ry:10;
}
</style> 

The customized style appearance will look like this:

Image

You can find a working example of this implementation in the provided sample on StackBlitz.
Sample

Conclusion
I hope you enjoyed learning how to customize the shape of the selector handles in JavaScript Diagram.

You can refer to our JavaScript Diagram feature tour page to learn about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JavaScript Diagram example to understand how to create and manipulate data.
For current customers, you can check out our 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 other controls.
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, Direct-Trac, 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