How to customize the first selection highlighter in Javascript Diagram?
This article explains how to customize the appearance of the first selection highlighter in the Syncfusion® JavaScript Diagram component. The Diagram provides support for customizing the appearance of the first element selected during multi-selection. This can be achieved by overriding the style of the selector element using a CSS class.
The following code snippet demonstrates how to customize the style of the first selected element:
/* Styles the first selected object to visually distinguish it from other selections */
.e-diagram-first-selection-indicator {
stroke: red;
stroke-width: 5px;
opacity: 2;
}
The customized style appearance will look like this:
Refer to the working sample for additional details and implementation: Sample
Conclusion
We hope you enjoyed learning how to customize the first selection highlighter in Javascript Diagram.
You can refer to our JavaScript Diagram feature tour page to know 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, BoldDesk Support, or feedback portal. We are always happy to assist you!