Closed wumaolinmaoan closed 2 months ago
The recent updates primarily focus on refining the serialization process, enhancing the timeline functionality, and improving the handling of canvas elements. Key changes include the introduction of a conditional offscreen canvas creation, updates to the CompositionComponent
class, and modifications in serialization-related decorators. Additionally, several @ts-expect-error
comments were removed, and global interface declarations were adjusted for better compatibility and cleaner code.
Files / Paths | Change Summary |
---|---|
packages/.../canvas-pool.ts |
Modified CanvasPool class to conditionally create an offscreen canvas based on a config parameter. |
packages/.../comp-vfx-item.ts |
Removed play() method call from this.timelinePlayable in CompositionComponent class. |
packages/.../decorators.ts |
Updated PropertyDescriptor and serialize function to use ClassConstructor instead of string . |
packages/.../calculate-item.ts |
Removed data declaration and fromData method override in the ObjectBindingTrack class. |
packages/.../timeline/track.ts |
Added new TimelineClip class, updated TrackAsset class, and redefined TimelineClip . |
packages/.../serialization-helper.ts |
Changed import and type for serializedData parameter, updated deserializeProperty methods. |
packages/.../utils/device.ts |
Removed @ts-expect-error comment from isAlipayMiniApp function. |
packages/.../vfx-item.ts |
Added @serialize() decorator to components property and refactored components loop. |
plugin-packages/.../native-log.ts |
Removed @ts-expect-error comment related to Alipay Mini App detection. |
plugin-packages/.../utils.ts |
Removed global window declaration for AlipayJSBridge and comments in getDowngradeResult and getSystemInfo functions. |
plugin-packages/.../device-orientation.ts |
Removed global interface declarations for AlipayJSBridge and WindVane from Window interface. |
plugin-packages/.../device.ts |
Removed @ts-expect-error comments from isAlipayMiniApp and isWechatMiniApp functions. |
types/vendors.d.ts |
Added declarations for various global interfaces and constants related to window properties and external libraries. |
web-packages/.../inspector-gui.ts |
Cast this.serializedData as spec.EffectsObjectData in applyModifiedProperties method. |
web-packages/test/.../inspire.spec.ts |
Added import statement for '@galacean/effects-plugin-orientation-transformer' . |
In the code, a rabbit hops with glee,
Changing types and fixing spree.
Offscreen canvases now appear,
Serialization's path made clear.
No more errors, clean and bright,
Components dance in pure delight.
With every change, the system sings,
A better world, these updates bring.
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
Bug Fixes
@ts-expect-error
comments across multiple files.Refactor
ClassConstructor
type instead ofstring
.Chores