Closed Sruimeng closed 2 weeks ago
The recent changes introduce a ThreeTextComponent
class to handle text in 3D environments, adjustments to texture options handling, additional font resources, new test logic for Canvas 2D image comparison, scene definitions, and updated default versions for testing utilities. These modifications extend functionality, improve rendering, and enhance the test suite.
Files | Change Summary |
---|---|
packages/effects-threejs/src/index.ts |
Added export statement for three-text-component . |
packages/effects-threejs/src/three-text-component.ts |
Introduced ThreeTextComponent class with text functionality for 3D, including several methods. |
packages/effects-threejs/src/three-texture.ts |
Modified how texture options are handled using the spread operator. |
web-packages/demo/src/assets/inspire-list.ts |
Added customFont entry with URL and name for a custom font. |
web-packages/test/case/2d/src/canvas/canvas.spec.ts |
Introduced new test logic for Canvas 2D image comparison and various helper functions. |
web-packages/test/case/2d/src/canvas/scene-list.ts |
Created new file defining a custom font with URL, name, and pass flag. |
web-packages/test/case/2d/src/common/utilities.ts |
Updated default value for oldVersion from 1.6.0 to 1.6.1 . |
web-packages/test/case/2d/src/index.ts |
Added import statement for canvas.spec.ts . |
sequenceDiagram
participant User
participant ThreeTextComponent
participant ThreeSpriteComponent
participant Texture
User ->> ThreeTextComponent: Create instance
activate ThreeTextComponent
ThreeTextComponent -->> ThreeSpriteComponent: Initialize
ThreeTextComponent -->> Texture: Create Text Texture
deactivate ThreeTextComponent
User ->> ThreeTextComponent: updateWithOptions(options)
activate ThreeTextComponent
ThreeTextComponent -->> Texture: Update Texture
ThreeTextComponent -->> User: Update completed
deactivate ThreeTextComponent
In code's gentle warren, changes bloom, A
ThreeTextComponent
now looms. Textures spread like forest's tune, Fonts custom, dancing under moon. Tests ensure the canvas ticks, Version updated, perfect fix. 🌟
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
ThreeTextComponent
for enhanced text functionality in 3D environments.Bug Fixes
ThreeTexture
class for better flexibility.Tests
Chores
1.6.0
to1.6.1
.