Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lasso Selection/Fragment Selection tool to the Tool palette in macromolecules mode #6358

Open
Jelica1 opened this issue Jan 24, 2025 · 0 comments
Labels
draft UI unification Bucket: Issues that need to be fixed to aligne Macro UI to Micro one

Comments

@Jelica1
Copy link
Collaborator

Jelica1 commented Jan 24, 2025

Background

Create a similar Tool palette in macromolecular mode, modeled after the functionality and design of the Tool palette in micromolecular mode.

  • Implement the "Lasso Selection" functionality that allows users to draw an irregular area using a mouse to select molecule fragments in the chemical editor. That way users should be able to easily select monomers or bonds within the draw area, with a visual representation of the selection ( highlighting with color). The functionality should support basic actions after selecting desired area, including: moving, and deleting the selected elements.

Requirements

  1. User should be able to draw an irregular selection area on the canvas by clicking and dragging the mouse.
  2. Elements (monomers or bonds ) within the lasso area should automatically be highlighted.
  3. The lasso selection tool should select a molecule during its initial pass and then deselect it during the subsequent pass. As the user drags the mouse, the tool will generate irregular gray lines that create varied selection shapes.

  • Implement the "Fragment Selection" functionality, allowing users to select specific molecular fragments for manipulation. This tool should allow users to select connected parts of a molecule with highlighting that selected part. After the selection, the user can perform actions like: rotating horizontally and vertically the selected fragment, moving and deleting the fragment.

Requirements

  1. User can click on any monomer, bond or element in the structure to automatically select the entire fragment connected to that element (The term "fragments" refers to any collection to monomers, and small molecules connected via bonds. )
  2. Elements within the fragment area should be automatically highlighted.
@AlexeyGirin AlexeyGirin added the UI unification Bucket: Issues that need to be fixed to aligne Macro UI to Micro one label Jan 26, 2025
@AlexeyGirin AlexeyGirin added this to the Ketcher 3.2.0-rc.1 milestone Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft UI unification Bucket: Issues that need to be fixed to aligne Macro UI to Micro one
Projects
None yet
Development

No branches or pull requests

3 participants