Differences between export and canvas (showing hydrogen)
- Dominant language
- C++
- Stars
- 406
- Forks
- 134
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 24
Description
**Steps to Reproduce**
1. Create a structure
2. Go to settings
3. Toggle "Display carbon explicitely" and "show hydrogen labels" to "ON"
4. Apply
5. Save as...
6. Select SVG or PNG
**Actual behavior**
The exported image does not correspond to what is shown in the canvas. The hydrogen atoms are displayed below their carbon atom.
**Expected behavior**
The exported image and canvas should display the same structure. The hydrogen atoms show up below the carbon atom rather than next to it.
**Screenshots**
Displayed :
Exported :
**Desktop (please complete the following information):**
- OS: Linux Mint
- Browser : tried on Firefox, Brave and Chrome
- Version 143.0.1 for Firefox, 22.2 for Mint...
**Ketcher version** [e.g. v2.4.2].
3.7.0
**Additional context**
Note that, except for the hydrogen issue, the exported look is better than the displayed one (which shows strange double bond position).
I tried to change some settings (bond length, atom size and font,...) without success. If there's an option to keep H label next to C, I couldn't find it.
Anyway, the discrepancy between display and export is... annoying at best.
Maybe this issue is not one for many users, but I'm a teacher, sometimes I need to display all H correctly...
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue in Ketcher 3.7.0: enable “Display carbon explicitly” and “show hydrogen labels,” then compare the canvas with SVG and PNG exports. Done means the exported structure matches the canvas, including hydrogen placement and bond display.
Written by the indexing model from the issue text.
Assessment
- Domain
- computer-graphics, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100