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

Enable Fitting of selected Nodes in the Graph Editor when Fit is invoked #2652

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

waaake
Copy link
Contributor

@waaake waaake commented Jan 21, 2025

Description

This PR adds functionality to consider the Selected Nodes when calling fit in the GraphEditor.
This change ensures that if there is a node selection available, GraphEditor is fit to the selected Nodes and if not, the fit considers all of the available nodes in the Graph to fit to that bounding box.

Implementation Details

Considering the selectedNodes' bounding box when a node selection exists to reuse the same shortcut F

Pressing F or invoking GraphEditor.fit() now considers the selected nodes and fits/focusses on the overall selection if present, else fits/focusses all of available nodes
@waaake waaake added the feature new feature (proposed as PR or issue planned by dev) label Jan 21, 2025
@waaake waaake self-assigned this Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.93%. Comparing base (1f42ad3) to head (a5e6d61).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2652   +/-   ##
========================================
  Coverage    69.93%   69.93%           
========================================
  Files          121      121           
  Lines         7088     7088           
========================================
  Hits          4957     4957           
  Misses        2131     2131           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature (proposed as PR or issue planned by dev)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant