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

Pinned N2 arrows are now transitioned between updates #1563

Merged
merged 33 commits into from
Jul 24, 2020

Conversation

tadkollar
Copy link
Member

Summary

This was a substantial change because connection arrows were previously not managed except through selectors in the DOM. There's now an arrow manager object that maintains caches of hovered and pinned arrows, migrates arrows between them, and regenerates arrows that have changed (e.g. due to their endpoints going offscreen or collapsing).

Pinned N2 connection arrows will now be preserved when elements are zoomed in or out, collapsed or uncollapsed, the document is resized, or any other update. If a collapsed element has pinned arrows, all of its children will have arrows when it's uncollapsed. Arrows with endpoints that have gone completely offscreen will be hidden, but be restored when either endpoint returns.

The connection-related toolbar buttons have changed also. The "show all connections in model" button has become the "show and pin all connections in current view" button. The "hide connections" button has become the "remove all pinned arrows in the model" button. The "show connections" button has been removed.

Tests were updated to reflect id name changes and arrow counts in certain situations.

Related Issues

Backwards incompatibilities

None

New Dependencies

None

Merge pull request OpenMDAO#1490 from tadkollar/n2compress1489
Fixed problem of arrows disappearing after transition followed by cell hover.
@project-bot project-bot bot added this to In progress in OpenMDAO Dev [Read only] Jul 22, 2020
@project-bot project-bot bot moved this from In progress to Under review in OpenMDAO Dev [Read only] Jul 23, 2020
OpenMDAO Dev [Read only] automation moved this from Under review to Reviewer approved Jul 24, 2020
@swryan swryan merged commit 336d08f into OpenMDAO:master Jul 24, 2020
OpenMDAO Dev [Read only] automation moved this from Reviewer approved to Done Jul 24, 2020
@tadkollar tadkollar deleted the n2arrow1387 branch July 27, 2020 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

N2 connection arrows should remain when diagram zoom/size changes
3 participants