Skip to content

Feature/zoomonblocks - #91

Merged
MathisFederico merged 6 commits into
masterfrom
feature/zoomonblocks
Dec 7, 2021
Merged

Feature/zoomonblocks#91
MathisFederico merged 6 commits into
masterfrom
feature/zoomonblocks

Conversation

@FabienRoger

Copy link
Copy Markdown
Contributor

Pressing the spacebar now zooms on selected items.

@FabienRoger FabienRoger linked an issue Dec 3, 2021 that may be closed by this pull request
MathisFederico
MathisFederico previously approved these changes Dec 5, 2021

@MathisFederico MathisFederico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a small change name and we are good to go !

Comment thread opencodeblocks/graphics/view.py Outdated
@@ -149,16 +149,23 @@ def centerView(self, x: float, y: float):
def moveToGlobalView(self) -> bool:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the name is misleading now ?
Should be something like moveToItems maybe ?

@MathisFederico MathisFederico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just need to modify docstrings accordingly, and we are good to go !
For general guidelines on how to write docstings see google python guidelines.

Comment thread opencodeblocks/graphics/widget.py Outdated

def moveToGlobalView(self):
def moveToItems(self):
"""Center the view to see the hole graph"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstring should match

@MathisFederico MathisFederico left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very nice contribution, thank you very much !

@MathisFederico
MathisFederico merged commit 7bc0d7b into master Dec 7, 2021
@MathisFederico
MathisFederico deleted the feature/zoomonblocks branch December 7, 2021 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zoom on a group of selected blocks

2 participants