epam / ketcher

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

Drag-n-drop images #4913

Open yauhen-karmyzau opened 5 days ago

yauhen-karmyzau commented 5 days ago

As a User, I want the ability to insert images into the canvas using drag-n-drop so that I can enhance my chemical structure diagrams with relevant images.

Acceptance Criteria:

  1. The application should support the drag-n-drop functionality for image insertion. A user should be able to drag an image from their local files and drop it onto the canvas.
  2. After image insert, it must stick to the mouse pointer and placed to the canvas on the click event under the mouse pointer (use the same behaviour as for other elements).
  3. After the image is inserted, the user should be able to undo/redo his actions.

TBD:

  1. Drop image UI.
  2. On drop behaviour.