Skip to content

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
@codecov
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).
Report is 8 commits behind head on develop.

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.

@fabiencastan fabiencastan added this to the Meshroom 2025.1.0 milestone Jan 27, 2025
@fabiencastan fabiencastan merged commit 2eb30fe into develop Jan 27, 2025
5 checks passed
@fabiencastan fabiencastan deleted the dev/NodeLayout branch January 27, 2025 07:41
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.

3 participants