Closed yiiqii closed 5 months ago
The recent updates introduce a new utility function isFontFamily
to validate font families and incorporate this validation into the AssetManager
and TextItem
classes. Additionally, import orders and object properties have been refined in multiple files, and new file entries have been added to enhance functionality and readability across the codebase.
File Path | Change Summary |
---|---|
packages/effects-core/src/asset-manager.ts |
Added import for isFontFamily and integrated font family validation into AssetManager class. |
packages/effects-core/src/plugins/text/text-item.ts |
Refined TextItem class by adding font validation, improving loops, and enhancing shadow settings. |
packages/effects-core/src/utils/text.ts |
Introduced isFontFamily function to validate font families. |
plugin-packages/spine/demo/src/api-test.ts |
Reordered imports and adjusted file assignments. |
plugin-packages/spine/demo/src/files.ts |
Added a new entry noDefault with JSON, atlas, and PNG file URLs. |
plugin-packages/spine/src/spine-vfx-item.ts |
Rearranged imports and updated setSkin method for better defaults. |
In realms of code where logic swirls, A rabbit hops and twirls, Fonts now checked with care, Shadows cast with flair, Imports in their place, Enhancing every space, Code refined, a joy to share! 🐇✨
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
noDefault
with JSON, atlas, and PNG file URLs for better file management.Improvements
TextItem
class.Refactor
Bug Fixes
setSkin
method to use the active skin or the first available skin inSpineVFXItem
.