Closed wumaolinmaoan closed 2 weeks ago
The recent updates enhance the encapsulation within the Camera
class by making the fovScaleRatio
property private. This is facilitated with new getter and setter methods. Consequently, the Composition
class now interacts with Camera
via these methods instead of directly accessing the fovScaleRatio
property.
File | Change Summary |
---|---|
packages/effects-core/src/camera.ts |
Changed fovScaleRatio to private; added setFovScaleRatio and getFovScaleRatio methods to manage it. |
packages/effects-core/src/composition.ts |
Updated editorScaleRatio to use camera.setFovScaleRatio() and camera.getFovScaleRatio() for accessing fovScaleRatio . |
In the realm of code so bright,
Camera's view now shines at night.
With methods new, encapsulated pure,
Composition's scale feels more secure.
💻🌕🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Refactor