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

#2078 center molecules after layout #2931

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

Nitvex
Copy link
Collaborator

@Nitvex Nitvex commented Jul 18, 2023

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

(Screenshots, videos, or GIFs, if applicable)

closes #2078

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"

@rrodionov91 rrodionov91 changed the title #2078 center molecules after layout and pasting #2078 center molecules after layout Jul 18, 2023
Comment on lines 15 to 18
export function recoordinate(editor: Editor, rp?: Vec2 /* , vp */) {
// rp is a point in scaled coordinates, which will be positioned
// vp is the point where the reference point should now be (in view coordinates)
// or the center if not set
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like "vp" argument is not used here. We can remove it and related comment

@Nitvex Nitvex force-pushed the 2078-center-molecules-after-layout-and-pasting branch from dc00b86 to 8f65ff7 Compare July 18, 2023 16:17
Copy link
Collaborator

@AleksandraSmolianinova AleksandraSmolianinova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previewed. No comments

@Nitvex Nitvex merged commit eb8059b into master Jul 19, 2023
@Nitvex Nitvex deleted the 2078-center-molecules-after-layout-and-pasting branch July 19, 2023 09:07
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.

Center molecules after layout
3 participants