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

N2 toolbar buttons added to access collapse/expand and variable filter modes #2407

Merged
merged 10 commits into from
Jan 24, 2022

Conversation

tadkollar
Copy link
Member

Summary

Previously, the only way to expand/collapse nodes in the N2 diagram was to right-click, and the only way to filter component variables was to alt-right-click. To make those functions more obvious and provide an alternate interface when certain browsers male this difficult, buttons were added to the toolbar. Each of these toggle a mode where the associated function is activated by left-clicking a node in the diagram.

The following changes were made to the diagram:

  • The help and legend buttons were combined into an expandable group at the bottom of the toolbar
  • The N2Click class was added to manage changing to or from one of four modes (normal, node info, expand/collapse, variable filter). Previously, only the normal and node info mode had to be managed
  • Two new button icons were created
  • The info mode button was combined into an expandable group with the two new buttons
  • The help screen was updated to fit all of the content in the window
  • Tests were modified/added to accommodate the new design
  • An existing issue was found and fixed in the toolbar where for some expandable groups, clicking the root button would copy its image to the wrong group

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@tadkollar tadkollar added the visualization Pertaining to visualization of OpenMDAO data. label Jan 11, 2022
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 89.402% when pulling be977e5 on tadkollar:varbtn2345 into f47eb54 on OpenMDAO:master.

@swryan swryan merged commit 564adb5 into OpenMDAO:master Jan 24, 2022
@tadkollar tadkollar deleted the varbtn2345 branch February 22, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
visualization Pertaining to visualization of OpenMDAO data.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a tool to expand, collapse, and select variables in the N2 diagram
5 participants