Closed Sruimeng closed 5 months ago
The update introduces a new method, setPositionByPixel
, enhancing precision in element positioning on the canvas in pixels. This change clarifies the canvas coordinate system for accurate placement within the Composition
and VFXItem
classes.
File Path | Change Summary |
---|---|
packages/effects-core/src/composition.ts |
Added setPositionByPixel method to Composition class for precise pixel-based element positioning. |
packages/effects-core/src/vfx-item.ts |
Updated setPositionByPixel method documentation and refined position calculation for accurate placement. |
web-packages/test/unit/src/effects-core/composition/comp-vfx-item.spec.ts |
Added a unit test for setPositionByPixel method in comp-vfxItem suite to validate functionality. |
web-packages/test/unit/src/effects-core/index.ts |
Commented out multiple import statements related to various modules and test files. |
web-packages/test/unit/src/index.ts |
Commented out export statements for specific modules potentially disabling their export. |
In pixels now we set the scene, With coordinates so crisp and keen. From left to right and top to base, Each element finds its perfect place. 🎨✨
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
Improvements
setPositionByPixel
to clarify the canvas coordinate system.Tests
setPositionByPixel
to ensure accurate positioning of elements.