Closed yiiqii closed 4 months ago
Recent updates across multiple packages focus on enhancing code maintainability, improving type safety, and refining functionality. Key changes include ESLint rule adjustments, version upgrades for TypeScript-related packages, refactoring of texture generation, and updates to WebGL context handling. Additionally, asynchronous methods were streamlined, and various imports and type definitions were reorganized to optimize performance and clarity.
Files/Paths | Change Summaries |
---|---|
.eslintrc.js , package.json |
Adjusted ESLint rules and updated TypeScript ESLint plugin versions. |
packages/effects-core/src/engine.ts , packages/effects-core/src/render/render-frame.ts |
Refactored texture generation and updated method signatures. |
packages/effects-core/src/material/material-data-block.ts |
Updated type check in isUniformStruct function. |
packages/effects-core/src/plugins/interact/event-system.ts , web-packages/demo/src/common/three-display-object.ts |
Removed and reorganized imports, updated references to InteractBehavior . |
packages/effects-core/src/render/framebuffer.ts |
Renamed parameter in dispose method. |
packages/effects-core/src/render/renderer.ts |
Added setFramebuffer method. |
packages/effects-core/src/scene.ts |
Removed commented-out TODOs. |
packages/effects-core/src/texture/texture.ts |
Added sourceOptions object, refactored texture generation functions. |
packages/effects-core/src/ticker.ts |
Changed import path for clamp , renamed private variable _deltaTime to dt . |
packages/effects-threejs/src/three-display-object.ts |
Updated method call from createVFXItemsAsync to createVFXItems . |
packages/effects-webgl/src/gl-renderer.ts |
Fixed comment, modified return types in getFramebuffer and getTemporaryRT methods. |
packages/effects/src/index.ts |
Updated Renderer.create function signature. |
packages/effects/src/player.ts |
Removed gl property from PlayerConfig , refactored initialization logic. |
plugin-packages/model/demo/src/utility.ts |
Updated type of callback parameter in createSlider function. |
plugin-packages/model/package.json |
Updated @vvfx/resource-detection dependency version. |
plugin-packages/model/src/gltf/loader-ecs.ts |
Added line to push mesh.geometryData into this.geometries array. |
web-packages/demo/src/single.ts |
Updated URL for json variable and used it in player.loadScene() method. |
In code's realm, where changes flow, Textures gleam, and functions grow. ESLint rules now finely tuned, Type checks hum a clearer tune. Async calls now swift and bright, WebGL glows in the night. CodeRabbit hops with glee, For code is clean as it can be. 🐇✨
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
setFramebuffer
method in the Renderer class.generateWhiteTexture
andgenerateTransparentTexture
functions for texture creation.Bug Fixes
createSlider
callback parameter type tonumber
for consistency.web-packages/demo/src/single.ts
for scene loading.Refactor
RenderFrame
class.dt
inTicker
class.Chores
@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
to version 7.10.0.@vvfx/resource-detection
dependency to version 0.6.0-alpha.6.Style
dispose
method parameter name fromopt
tooptions
for clarity.