epam / ketcher

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

Render action is saving structures as .svg and as .png incorrectly #720

Open nseufulina opened 3 years ago

nseufulina commented 3 years ago

Incorrect saving of the structures, when Copy Image or Save as png/svg. Those function are embodied with render action.

1.When structure has Generic S-Group, saved structure does not have brackets

Steps:

  1. Draw any structure
  2. Select S-Group button
  3. Select part or whole structure
  4. Click 'OK' (generic s-group)
  5. Copy Image

Expected result: Structure, pasted in another application is the same as in the Kethcer. image Actual result: Structure, pasted in another application does not have brackets. image

2.Structure with R-group can not be saved if only one structure is selected

Steps:

  1. Draw any structure
  2. Select R-Group Fragment Tool
  3. Select structure and choose any R-label
  4. Copy Image
  5. Create another structure on the canvas
  6. Select structure with R-Group and Copy Image
  7. Select both structures and Copy Image

Actual result: step 4 - empty image is copied and pasted. step 6 - empty image is copied and pasted. step 7 - structures are copied and pasted.

3.Structure with R-group is saved without brackets

Step 7 from the previous paragraph. Actual result: Structure with R-Group does not have brackets Ketcher: image Redactor: image

4.Attachment point view is different from the Ketcher

Steps:

  1. Create any structure
  2. Select Attachment Point Tool
  3. Click on any atom of the structure and choose any attachment point
  4. Copy Image

Different attachment point presentation: Ketcher: image Redactor: image

5.Saved bonds does not have Reacting Center marks.

Steps:

  1. Draw any structure.
  2. Double-click structure's bond.
  3. Select any Reacting Center option and click ok
  4. Copy Image

Expected result: Reacting Center mark is displayed in the saved structure.

Actual result: Reacting Center mark is not saved.

Ketcher: image Redactor: image

6.Atom's properties.

Steps:

  1. Draw any structure

  2. Double-click structure's atom

  3. When inversion type is chosen in the atom's properties, it is not saved. image image

  4. When any property is chosen for the atom with alias, atoms name is displayed Before chosing isotope and after image

  5. When H count is chosen in the atom's properties, representation of properties is changed Before H-count image After H-count image

nseufulina commented 3 years ago

Related issue https://github.com/epam/Indigo/issues/474