- Home
- Forum
- React - EJ 2
- Need to set Canvas grid in form of dots
Need to set Canvas grid in form of dots
Hi team,
I was looking into same fuctionality. Can you suggest way to achieve this as suggested this feature is available
Hi Hatti,
We created a sample to achieve your requirement. In diagram there is a gridType API for "Dots," which renders the diagram grid in dot format, is defined in the diagram snapSettings. Please refer to the below sample for your reference.
Code snippet
<DiagramComponent id="diagram" ref={(diagram) => (diagramInstance = diagram)} width={'100%'} height={'900px'} nodes={nodes} snapSettings={{ gridType: 'Dots', canHighlightDot: true, horizontalGridlines: { lineColor: 'red', }, }}></DiagramComponent> |
Sample
https://stackblitz.com/edit/react-w2t3mg?file=index.html,index.js
Regards,
Gobinath
- 5 Replies
- 5 Participants
-
SJ Sudhanshu Jain
- Oct 16, 2019 10:19 AM UTC
- Jan 12, 2023 01:51 PM UTC