Articles in this section
Category / Section

How to Remove Border of Image Node Inside Palette in React Diagram?

2 mins read

The Syncfusion® React Diagram, to remove the border of image node, you need to modify strokeWidth property of the specific node.

By default, the image node will have a border. To remove this border, set the strokeWidth property of the node to 0, as shown in the code snippet below:

The following code example demonstrates how to define an image node within the SymbolPalette.

//Initialize the shapes for the symbol palatte
let palette = [
 {
   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 learning about how to remove border of image node inside palette in React Diagram.

You can refer to our React 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 React 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)
Please  to leave a comment
Access denied
Access denied