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

Notes for implementing the cross-selection for Part Nodes #8

Open
ciacob opened this issue Mar 22, 2024 · 0 comments
Open

Notes for implementing the cross-selection for Part Nodes #8

ciacob opened this issue Mar 22, 2024 · 0 comments
Labels
enhancement New feature or request imported

Comments

@ciacob
Copy link
Owner

ciacob commented Mar 22, 2024

The purpose of the following is that, when the user selects a node of the "Part" type in the tree, the selection resulting in the score to reflect its parent Section.

  1. When the user clicks on a "Part" node in the tree, just before sending the message "externally selected score element" with the "mirror ID" of the selected "Part" element, another message should be sent: "current section", containing the "route" of the element stored by the controller in " _currentSection ";

  2. the score editor stores the "current section" value, and only then proceeds to process the message "externally selected score element";

  3. The score editor derives the "route" of the first child (of the "Measure" type) from the value of "current section". Example: "-1_1_0_0" becomes "-1_1_0_0_0";

  4. the score editor obtains all the "hotspots" stored under the derived "Measure" type route, realizes the geometric union of the surface they occupy on the screen, and translates the left edge of the rectangle thus obtained to the leftmost edge of the score;

  5. the score editor obtains all the "part" type hotspots stored under the "mirror ID" sent by the message "externally selected score element", and checks, for each, if it intersects the rectangle obtained in point 4. The first one that does, is made visible. If no "hotspot" intersects the rectangle obtained in point 4, then the first "hotspot" stored under the "mirror ID" sent by the message "externally selected score element" is made visible.

@ciacob ciacob added imported enhancement New feature or request labels Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request imported
Projects
None yet
Development

No branches or pull requests

1 participant