Issue with resizing text in a component

We encountered an issue with the Diagram component from @syncfusion/ej2-angular-diagrams

Problem

When I enable the option to move the text of a component and resize it, upon loading the diagram from the JSON, it ends up losing the dimensions.


Environment

  • Library Version: @syncfusion/ej2-angular-diagrams
  • Framework: Angular

Steps to Reproduce

  1. Create any object and add text to it.
  2. Check "Move text" and move the text.
  3. Resize the text to specific size.
  4. Save the diagram and load after.

We appreciate your assistance in resolving this issue.


Attachment: src_873fc47c.zip


10 Replies

VG Vivisa Ganesan Syncfusion Team September 12, 2024 12:01 PM UTC

Hi,

We were unable to run the sample you have shared due to missing of the package.json file. But we have created the stackblitz sample by using the code-snippet shared by you but we were unable to replicate the issue. Please refer to the below sample and video. If you still face the issue, then modify the below sample and provide us along with replication steps to validate the issue further from our side.


Sample:

https://stackblitz.com/edit/angular-nreg2c-aoee43?file=src%2Fapp.component.html,src%2Fapp.component.ts

 

Regards,

Vivisa


Attachment: text_save_and_load_2a9cf4b6.zip


BG Bruno Guerra Vieira September 12, 2024 01:27 PM UTC

Sorry for the mistake,


I previously tried using Stackblitz, but it was not able to render the <ejs-diagram>



Attached is a gif of the issue, using your stackblitz example.

In some cases, the text is configured based on this size, and when it is saved and then loaded again, it ends up getting misaligned because the size doesn't load correctly.


Attachment: text_save_load_issue_1d00715b.zip


VG Vivisa Ganesan Syncfusion Team September 13, 2024 10:04 AM UTC

Hi,

We able to replicate the issue at our end. We will validate and update you with more details on September 17,2024.


Regards,

Vivisa



BG Bruno Guerra Vieira replied to Vivisa Ganesan September 13, 2024 11:07 AM UTC

Thank you very much for your response, I look forward to hearing from you.
Best regards.




MG Moulidharan Gopalakrishnan Syncfusion Team September 17, 2024 03:01 PM UTC

Hi Bruno, 


Reported Issue :  Annotation Wrapper updates wrongly after save and load 


We can reproduce the issue and confirmed this as a defect. We have logged a defect report for this issue. We will fix this issue and provide the patch on October 8th 2024 weekly patch release. 


Feedback link: Annotation size not preserved properly after save and load in Angular | Feedback Portal (syncfusion.com)


Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.


Best Regards,

Moulidharan



BG Bruno Guerra Vieira September 18, 2024 01:42 PM UTC

Thank you very much for your attention, and I look forward to the release.




MG Moulidharan Gopalakrishnan Syncfusion Team September 19, 2024 03:11 PM UTC

Hi, 


As promised, we will fix this issue and provide the patch in the weekly release on October 8, 2024.

Regards,
Moulidharan





MG Moulidharan Gopalakrishnan Syncfusion Team October 8, 2024 06:53 AM UTC

Hi Bruno,

 

Reported issue: Annotation Wrapper updates wrongly after save and load 

 

We have fixed the reported issue and included it in our latest patch release which is rolled out successfully.

Please upgrade to the latest version (v27.1.52) packages of the diagram to resolve this issue.      

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

 

Regards,

Moulidharan



BG Bruno Guerra Vieira replied to Moulidharan Gopalakrishnan October 8, 2024 11:23 AM UTC

Thank you for the notice. I will update and test it during this week, and I'll get back in touch if I have any problems or questions.



PR Preethi Rajakandham Syncfusion Team October 9, 2024 05:15 AM UTC

Hi Bruno,

Thank you for the update. Please test it and get back to us. We will await your response.

Regards,

Preethi R


Loader.
Up arrow icon