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

Macro: #3635 - Misalignment of monomers when imposing on top of each other #3662

Conversation

chgayane
Copy link
Collaborator

@chgayane chgayane commented Dec 6, 2023

How the feature works? / How did you fix the issue?

Before: The attachment points of the underlying monomer become scattered, resulting in distorted monomers and misalignment.
image (1)
After: The attachment points should remain intact, and the monomers should align correctly without scattering or distortion.
image

Updated the logic used to find the point on the monomer border. Replaced document.elementFromPoint with document.elementsFromPoint to accurately handle overlapping monomers. Added additional type checks to cater to 'null' conditions. This change resolves issues related to incorrect border point and angle calculation when monomers overlap.

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

@chgayane chgayane linked an issue Dec 6, 2023 that may be closed by this pull request
@chgayane chgayane changed the title #3635 - monomers align correctly without scattering or distortion Macro: #3635 - Misalignment of monomers when imposing on top of each other Dec 6, 2023
…dinates order for consistency with the function
@chgayane chgayane marked this pull request as ready for review December 8, 2023 06:39
@StarlaStarla

This comment was marked as resolved.

@chgayane

This comment was marked as resolved.

@StarlaStarla

This comment was marked as resolved.

@Nitvex Nitvex merged commit 70b6522 into master Dec 13, 2023
5 checks passed
@Nitvex Nitvex deleted the 3635-macro-misalignment-of-monomers-when-imposing-on-top-of-each-other branch December 13, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macro: Misalignment of monomers when imposing on top of each other
3 participants