Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The reaction with catalysts is displayed incorrectly with ACS style setting and after layout #2458

Closed
AnnaKosol opened this issue Oct 1, 2024 · 5 comments · Fixed by #2560, #2561, #2637 or #2638

Comments

@AnnaKosol
Copy link
Collaborator

AnnaKosol commented Oct 1, 2024

Ketcher part: epam/ketcher#5650

Steps to Reproduce

  1. add reaction to the Canvas
    error with cat and arr.ket.zip
Screenshot 2024-10-01 at 14 04 58
  1. click on ACS Style button in the Settings
  2. click on Apply button in the Settings
  3. click on layout

Ketcher part: epam/ketcher#5650

Actual behavior
Screenshot 2024-10-01 at 14 07 34

Expected behavior
All atoms are visible
Screenshot 2024-10-01 at 14 09 38

Environment details:

Issues for #2176

@AliaksandrDziarkach AliaksandrDziarkach added this to the Indigo-1.25.0-rc.2 milestone Oct 4, 2024
AliaksandrDziarkach added a commit that referenced this issue Oct 16, 2024
…yle setting and after layout

Add code to calculate boundig box using atom labels.
Add UT
AliaksandrDziarkach added a commit that referenced this issue Oct 17, 2024
…ith ACS style setting and after layout

backmerge to master
AlexanderSavelyev pushed a commit that referenced this issue Oct 17, 2024
AlexanderSavelyev pushed a commit that referenced this issue Oct 17, 2024
@Zhirnoff
Copy link
Collaborator

Should be tested after fix on Ketcher side in 2.26.0-rc.6 epam/ketcher#5650

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Oct 25, 2024

Not fixed. Catalyst bounding boxes and margins are overlap each other. (they shouldn't)
image

  • Ketcher Version 2.26.0-rc.6 Build at 2024-10-25; 09:57:12
  • Indigo Toolkit Version 1.25.0-rc.4.0-g8862ccb7e-wasm32-wasm-clang-19.0.0
  • Chrome Version 130.0.6723.59 (Official Build) (64-bit)
  • Win10

@AliaksandrDziarkach
Copy link
Collaborator

In preview all is ok:
image

So, this is ketcher issue.

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Nov 11, 2024

Reopened.
Decision:
Current distance between atoms (above arrow) calculated based on average size of the letter.
It was decided to increase it slightly in order to increase distance between atoms (see on the pic below)
Follow up issue for ketcher created: epam/ketcher#5954
image

  • Ketcher Version 2.26.0-rc.9 Build at 2024-11-11; 12:01:35
  • Indigo Toolkit Version 1.25.0-rc.5.0-g45d28b8ca-wasm32-wasm-clang-19.0.0
  • Chrome Version 130.0.6723.117 (Official Build) (64-bit)
  • Win10

@AlexeyGirin
Copy link
Collaborator

AlexeyGirin commented Nov 15, 2024

Moved to Indigo-1.26.0-rc.3 as per decision made on meeting

@AlekseiKhariukov AlekseiKhariukov changed the title The reaction with catalysts is displayed incorrect with ACS style setting and after layout The reaction with catalysts is displayed incorrectly with ACS style setting and after layout Nov 15, 2024
AliaksandrDziarkach added a commit that referenced this issue Nov 15, 2024
…S style setting and after layout

Increase font bounding box. Update UT.
AliaksandrDziarkach added a commit that referenced this issue Nov 16, 2024
…ly with ACS style setting and after layout

backmerge to master
AlexanderSavelyev pushed a commit that referenced this issue Nov 18, 2024
…S style setting and after layout (#2637)

Co-authored-by: Aliakasndr Dziarkach <Aliakasndr.Dziarkach@gmail.com>
AlexanderSavelyev pushed a commit that referenced this issue Nov 18, 2024
…ly with ACS style setting and after layout (#2638)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment