[SOLVED] DiagramComponent ignores snapSettings

Hi,
I've recently updated my projects @syncfusion/ej2-react-diagrams version from 18.1.59 to 18.4.35, the latest one.
I was using DiagramComponent's snapSettings prop to hide gridLines in some cases, but now I've tested it passing different SnapSettings objects and it seems like DiagramComponent is completely ignoring that prop.
I've searched in your documentation and it stills says that the way to hide gridLines is with this prop, snapSettings, so, either it is a bug with 18.4.35 that I'm not aware of, or maybe the documentation is outdated and now you need to use different props to achieve that?

Thank you in advance.

3 Replies 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team January 28, 2021 09:23 AM UTC

Hi Alex, 
 
We are not able to replicated reported issue from our side. We have added a sample link to demonstrate how to change the snap constraints  dynamically. We request you to replicate the reported issue in that sample that will helpful to proceed further. 
 
 
 
Regards,  
Gowtham 
 


Marked as answer

AP Alex Pla Alonso February 1, 2021 08:25 AM UTC

Hello!
Sorry for the late reply.
The problem in our project was that we were changing the diagram instance on runtime (we're saving the diagram instance in our BE), so it was ignoring the snapSettings props and overriting it with our previous saved data. Somehow, with previous versions the snapSettings prop took preference, but now it's not, but anyway we found a way to solve it.

Thank you for your reply.


GG Gowtham Gunashekar Syncfusion Team February 2, 2021 01:42 PM UTC

Hi Alex,  
 
Thanks for your update. Please let us know whether you need any further assistance on this. 
 
 
Regards  
 
Gowtham 


Loader.
Up arrow icon