Calling DiagramComponent::getDiagramContent() shifts the diagram's layout/position.

Hello Syncfusion Team,

I'm using version 19.3.55 of the DiagramComponent in my app.

We use a lot of SVG nodes in our diagram, and consequently, to print the diagram, we have to call DiagramComponent::getDiagramContent() and send the htmldata to our server and print it with HtmlToPdfConverter.

We noticed that calling DiagramComponent::getDiagramContent() shifts the diagram layout/position back to coordinates 0,0 (please see attached video file).

This is especially problematic since we plan to call this API at periodic intervals to generate up-to-date diagram snapshots & thumbnails.

Is there an easy way to restore the original layout/position of the diagram after calling

DiagramComponent::getDiagramContent().

Thanks,

-Mithun





6 Replies 1 reply marked as answer

MI Mithun December 27, 2021 06:16 AM UTC

video file attached.


Attachment: video1436264763_663c8d9f.zip


SS Sivakumar Sekar Syncfusion Team December 28, 2021 12:36 PM UTC

Hi Mithun 

We are validating your requirements and update you with more details on December 30th, 2021. 

Regards, 
Sivakumar 




SS Sivakumar Sekar Syncfusion Team December 30, 2021 01:52 PM UTC

Hi Mithun  

Reported Issue : getDiagramContent() is not working properly. 

We can reproduce the issue and confirm this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on the 19th January 2022 weekly patch release.    
     

Regards,  
Sivakumar 





AM Arunkumar Manoharan Syncfusion Team January 20, 2022 11:34 AM UTC

Hi Mithun,


We have fixed the reported issue and included it in our patch release (v19.4.43) which is rolled out successfully.  

Please upgrade to the latest version packages to resolve this issue.        

https://www.npmjs.com/package/@syncfusion/ej2-diagrams


Regards, 

Arun.


Marked as answer

MI Mithun January 27, 2022 03:58 PM UTC

I'm observing a new issue with getDiagramContent() method in the latest version (v19.4.43).

I've opened a new thread here: https://www.syncfusion.com/forums/172360/diagramcomponentgetdiagramcontent-wrongly-clips-content-if-i-scroll-above-or-to-left-of



SG Shyam G Syncfusion Team February 1, 2022 03:33 AM UTC

Hi Mithun,

Thanks for your update. 

Regards,

Shyam G


Loader.
Up arrow icon