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

DrawPanel Update: Moving repetitive functions to helpers #679

Merged
merged 9 commits into from
Sep 8, 2022

Conversation

ganimtron-10
Copy link
Contributor

@ganimtron-10 ganimtron-10 commented Sep 3, 2022

Some code from the DrawShape UI is going to be reused in the Grouping Shape Feature #653 .
So to avoid these repetitive codes, moving them into helper.py file.

  • cal_bounding_box
  • rotate

@ganimtron-10 ganimtron-10 marked this pull request as draft September 3, 2022 11:48
@ganimtron-10 ganimtron-10 changed the title DrawPanel Update: Moving repetitive functions to helpers [WIP] DrawPanel Update: Moving repetitive functions to helpers Sep 3, 2022
@codecov
Copy link

codecov bot commented Sep 3, 2022

Codecov Report

Merging #679 (43b8be6) into master (6caaa03) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #679      +/-   ##
==========================================
- Coverage   50.40%   50.39%   -0.01%     
==========================================
  Files         120      120              
  Lines       26980    27046      +66     
  Branches     2986     2992       +6     
==========================================
+ Hits        13598    13629      +31     
- Misses      12923    12957      +34     
- Partials      459      460       +1     
Impacted Files Coverage Δ
fury/ui/elements.py 0.00% <0.00%> (ø)
fury/ui/helpers.py 0.00% <0.00%> (ø)
fury/ui/tests/test_helpers.py 0.00% <0.00%> (ø)
fury/fury/ui/helpers.py 96.34% <0.00%> (-1.88%) ⬇️
fury/fury/ui/elements.py 90.08% <0.00%> (-0.10%) ⬇️
fury/fury/ui/tests/test_helpers.py 100.00% <0.00%> (ø)

@ganimtron-10 ganimtron-10 marked this pull request as ready for review September 6, 2022 17:13
@ganimtron-10 ganimtron-10 changed the title [WIP] DrawPanel Update: Moving repetitive functions to helpers DrawPanel Update: Moving repetitive functions to helpers Sep 6, 2022
Copy link
Contributor

@skoudoro skoudoro left a comment

Choose a reason for hiding this comment

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

All good, Thank you @ganimtron-10, merging

@skoudoro skoudoro merged commit e1b06e4 into fury-gl:master Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants