epam / ketcher

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

Move and Size Head Arrow of a multi-tail arrow #5058

Closed yauhen-karmyzau closed 2 weeks ago

yauhen-karmyzau commented 2 months ago

As a User, I want to move and resize the head of a multi-tail arrow so that I can accurately represent the product in my synthesis tree.

Acceptance Criteria:

  1. When the user hovers over the arrow with select or arrow tools (not erase tool), the cursor should change accordingly: hover on head line - up/down arrow; hover on right point of head - left/right arrow. Image

  2. When the user is hovering on the right corner of the head, clicking and dragging to the left or right changes the width of the head. 2.1. During and after moving, the whole arrow should be highlighted. 2.2. Dragging to the right is not limited. 2.3. Dragging to the left is limited to [minimum head length]

  3. When the user is hovering over the line of the head (not the right corner), clicking and dragging up and down changes the position of the head. 3.1. During and after moving, the whole arrow should be highlighted. 3.2. The head can be moved along the spine, with one radius of the corner curve being the limitation on both sides. image 3.3. Any movement above/bellow these lines results in no movement.

Selection and hover highlighting of the whole Multi-Tailed Arrow is out of scope for this task - it will be implemented here - https://github.com/epam/ketcher/issues/5057

ivanmaslow commented 1 week ago

Exploratory testing is completed on the RC Remote environment:

The following checks were performed, and tests are updated: