epam / epam/ketcher

Dative bond layouted bad on macromolecules canvas (arrow arcs overlap each other)

Open
#6,331 1 comment 1 reaction 1 assignee Assigned to @Copilot View on GitHub
3.7.0-rc.1 confirmed Flex mode GPT not Ready Micro-Macro Priority: Low Severity: Low
Dominant language
TypeScript
Stars
884
Forks
262
Avg merge
2d 16h
Merged PRs (30d)
138

Description

**Steps to Reproduce**
1. Select Macromolecules mode:
Image

2. Switch to Flex layout mode (Click on the “A” button in the top panel to open Macromolecules modes switcher
and select the third option "Switch to flex layout mode":

https://github.com/user-attachments/assets/62006ee9-531f-4eda-ac97-b4ec3b16dbd1

Image

3. Copy the following structure in KET format:
```
{
"root": {
"nodes": [
{
"$ref": "mol0"
}
],
"connections": [],
"templates": []
},
"mol0": {
"type": "molecule",
"atoms": [
{
"label": "C",
"location": [
17.7,
-9.875,
0
]
},
{
"label": "C",
"location": [
18.7,
-9.875,
0
]
},
{
"label": "C",
"location": [
19.2,
-10.74102540378444,
0
]
},
{
"label": "C",
"location": [
19.2,
-9.00897459621556,
0
]
},
{
"label": "C",
"location": [
19.7,
-9.875,
0
]
},
{
"label": "C",
"location": [
18.2,
-10.74102540378444,
0
]
},
{
"label": "C",
"location": [
18.2,
-9.008974596215563,
0
]
}
],
"bonds": [
{
"type": 9,
"atoms": [
0,
1
]
},
{
"type": 9,
"atoms": [
2,
1
]
},
{
"type": 9,
"atoms": [
3,
1
]
},
{
"type": 9,
"atoms": [
6,
1
]
},
{
"type": 9,
"atoms": [
4,
1
]
},
{
"type": 9,
"atoms": [
5,
1
]
}
]
}
}
```

(or load from file: [Dative bond layouted bad on macromolecules canvas.zip](https://github.com/user-attachments/files/18492882/Dative.bond.layouted.bad.on.macromolecules.canvas.zip) )

4. Click the folder icon "Open..." in the top left corner of the top panel:
Image

5. Click on Paste from Clipboard:
Image

6. Using Ctrl-V paste previously copied KET string into Open Structure pop-up

7. Click on "Open as New" button:
Image

**Actual behavior**
Arrow heads overlaps each other
![Image](https://github.com/user-attachments/assets/373b4ae4-828a-4f50-9eb2-21bbcbcdc219)

**Expected behavior**
Arrow heads does not overlap each other
![Image](https://github.com/user-attachments/assets/a03e3560-0ded-4c42-aa1c-9534fddb7ec6)

**Versions**
- Ketcher Version 3.0.0-rc.3 Build at 2025-01-20; 16:49:33
- Indigo Toolkit Version 1.28.0-rc.2.0-g1b062e641-wasm32-wasm-clang-19.0.0
- Chrome Version 132.0.6834.84 (Official Build) (64-bit)
- Win10

Issue found while testing - https://github.com/epam/ketcher/issues/6028

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.