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

added center on click functionality #56

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

Dialpuri
Copy link
Collaborator

Merged the code written by @GABRAH in #54

Added frontend centering code to that PR.

Should solve issue #40

@Dialpuri
Copy link
Collaborator Author

With a fairly large change like this, I would like someone to build and test it.

@Dialpuri Dialpuri requested a review from GABRAH October 19, 2023 14:24
@Dialpuri Dialpuri linked an issue Oct 19, 2023 that may be closed by this pull request
Copy link
Collaborator

@GABRAH GABRAH left a comment

Choose a reason for hiding this comment

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

LGTM. The comment is just a very minor point that I am unsure of myself

@@ -489,15 +499,15 @@ namespace privateer
{
public:
shadedCircle() { } //!< null constructor
shadedCircle( int x, int y, std::string message, std::string mmdbsel = "" ) { set_pos(x, y); set_tooltip ( message ); set_mmdbsel(mmdbsel);}
shadedCircle( int x, int y, std::string message, std::string chainID = "N/A", std::string resname = "N/A", int seqnum = 0, std::string mmdbsel = "" ) { set_pos(x, y); set_tooltip ( message ); set_mmdbsel(mmdbsel); set_chainID(chainID); set_resname(resname); set_seqnum(seqnum);}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think I deliberately excluded shaded nodes from including the metadata, but on other hand I can see the benefit of this in case users don't aim their mouse at the sugar nodes themselves.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Did I change something from your PR here? If I did it wasn't intentional

Copy link
Collaborator

Choose a reason for hiding this comment

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

My bad, you're right. The change was done by me and I have gone delusional here. Please disregard my comment

@GABRAH
Copy link
Collaborator

GABRAH commented Oct 19, 2023

With a fairly large change like this, I would like someone to build and test it.

I need guidance with this. I wasn't able to get the emcmake to do its thing.

@Dialpuri Dialpuri merged commit 84380fe into webserver Oct 24, 2023
1 check passed
@Dialpuri Dialpuri deleted the center_sugar_on_click branch October 25, 2023 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Centre Moorhen view when a sugar in the SVG is clicked
2 participants