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

Fix camera aspect ratio #1872

Merged
merged 8 commits into from
Nov 10, 2023
Merged

Conversation

GuoLei1990
Copy link
Member

@GuoLei1990 GuoLei1990 commented Nov 10, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

image

@GuoLei1990 GuoLei1990 added bug Something isn't working camera labels Nov 10, 2023
@GuoLei1990 GuoLei1990 added this to the 1.2 milestone Nov 10, 2023
@GuoLei1990 GuoLei1990 linked an issue Nov 10, 2023 that may be closed by this pull request
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (f7bec17) 66.71% compared to head (bdb512f) 66.64%.

❗ Current head bdb512f differs from pull request most recent head 8202ed5. Consider uploading reports for the commit 8202ed5 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           dev/1.2    #1872      +/-   ##
===========================================
- Coverage    66.71%   66.64%   -0.07%     
===========================================
  Files          472      472              
  Lines        23799    23802       +3     
  Branches      3393     3392       -1     
===========================================
- Hits         15877    15864      -13     
- Misses        6732     6745      +13     
- Partials      1190     1193       +3     
Files Coverage Δ
packages/core/src/Camera.ts 90.38% <72.22%> (-0.28%) ⬇️

... and 2 files with indirect coverage changes

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


const viewport = this._viewport;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The _lastAspectSize attribute can be optimized.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@cptbtptpbcptdtptp cptbtptpbcptdtptp left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Member

@zhuxudong zhuxudong left a comment

Choose a reason for hiding this comment

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

+1

@GuoLei1990 GuoLei1990 merged commit bb12e4e into galacean:dev/1.2 Nov 10, 2023
5 checks passed
@GuoLei1990 GuoLei1990 deleted the pr/fix-aspectRatio branch November 10, 2023 09:18
@GuoLei1990 GuoLei1990 self-assigned this Nov 10, 2023
cptbtptpbcptdtptp pushed a commit to cptbtptpbcptdtptp/engine that referenced this pull request Jan 16, 2024
* fix: camera aspect ratio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working camera
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Question about camera aspect ratio
3 participants