Closed RGCHN closed 3 months ago
The recent changes involve two main areas: the Camera
class in effects-core
and configurations within simple.ts
in the spine
demo. The Camera
class now computes the inverse viewport ratio by projecting points and averaging the differences. In the spine
demo's simple.ts
, objects now include a resizeRule
property, and the loadScene
function's argument was simplified from { autoplay: false }
to an empty object {}
.
File | Change Summary |
---|---|
effects-core/src/camera.ts |
Camera class: getInverseVPRatio method now calculates xMax , yMax , xMin , and yMin using projections and returns the average difference. |
plugin-packages/spine/demo/src/simple.ts |
Added resizeRule: 1 to specific configurations and changed loadScene function call argument to an empty object {} . |
In code's bright world, a Camera sees, A viewport's envy, a ratio's keys. On simple paths, animation's new breeze, Resize rules, scenes with ease. Code evolves, like leaves in trees, Unfurled changes, dancing free. 🌿🖥️✨
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
resizeRule
property to certain configurations, improving component initialization.Bug Fixes
loadScene
function by updating arguments for better scene management.