epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
463 stars 164 forks source link

Add new option in settings - "ACS Style" #5156

Open ljubica-milovic opened 1 month ago

ljubica-milovic commented 1 month ago

Background Just introducing all necessary settings that are needed to comply with ACS style is not enough. We should introduce a user-friendly way for the user to select ACS style. A new section in the settings "ACS Style" should be added for that purpose.

Requirements

  1. A new option in setting should be added called "ACS Style" 1.1. The button should be placed at the bottom of the settings modal window near buttons Cancel and Apply 1.2 The button should be active all the time

  2. After clicking on the button "ACS Style", certain default values and units of measurement for following settings are chosen, and should be:

Setting Setting position "ACS Style" Unit of Measurement
Atom coloring General OFF
Font General Arial
Font size General 10 pt
Sub font size General 10 pt
Margin size (new setting) General 1,6 pt
Image resolution (new setting) General 600 ppi
Bond length (new setting) Bonds 14,4 pt
Bond spacing (old name: Double bond width) Bonds 18 % of width
Bond thickness Bonds 0,6 pt
Stereo (Wedge) bond width Bonds 2 pt
Hash spacing (new setting) Bonds 2,5 pt
  1. When clicking on the button "ACS Style" -> Apply at the bottom of the window -> clicking on layout, positions of all elements on the canvas are recalculated so that they comply with "ACS Style".
  2. The settings return to default after clicking on Reset.
AnnaKosol commented 1 month ago

To solve this task, it is necessary to implement https://github.com/epam/ketcher/issues/5175 and https://github.com/epam/ketcher/issues/5176