How to Remove Image Node Border in JavaScript Diagram Palette?
In Syncfusion® JavaScript Diagram, removing the border from an image node within a SymbolPalette is straightforward. By default, image nodes have a border, but this can be removed by setting the strokeWidth property of the node’s style to 0.
Here’s how you can define an image node in the SymbolPalette without a border:
palettes: [
{
id: 'ImageShape',
expanded: true,
title: 'Image Shapes',
symbols: [
{
id: 'image',
shape: {
type: 'Image',
source:
'https://ej2.syncfusion.com/demos/src/diagram/employees/image16.png',
},
style: { strokeWidth: 0 }, // Removes the border
},
],
},
],
You can find a working example of this implementation in the provided sample on StackBlitz.
Sample - Click here for sample
Conclusion
I hope you enjoyed about about how to remove border of image node inside palette 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, Direct-Trac, or feedback portal. We are always happy to assist you!