Closed wumaolinmaoan closed 3 weeks ago
The pull request introduces updates to the @galacean/effects-core
package, specifically modifying the package.json
to change the version of the @galacean/effects-specification
dependency from 2.1.0-alpha.3
to 2.1.0-alpha.4
. Additionally, it alters the initialization methods of the ColorCurve
and Vector4Curve
classes to use array indexing for accessing color and vector components instead of direct property access. Furthermore, the curveData
property types in both ColorPropertyPlayableAsset
and Vector4PropertyPlayableAsset
classes have been updated to reflect new data structures.
File | Change Summary |
---|---|
packages/effects-core/package.json | Updated @galacean/effects-specification dependency version from 2.1.0-alpha.3 to 2.1.0-alpha.4 . |
packages/effects-core/src/math/value-getters/color-curve.ts | Modified onCreate method in ColorCurve class to access color components using array indexing instead of properties. |
packages/effects-core/src/math/value-getters/vector4-curve.ts | Modified onCreate method in Vector4Curve class to access vector components using array indexing instead of properties. |
packages/effects-core/src/plugins/timeline/playable-assets/color-property-playable-asset.ts | Changed curveData property type from spec.ColorCurveData to spec.ColorCurveValue in ColorPropertyPlayableAsset . |
packages/effects-core/src/plugins/timeline/playable-assets/vector4-property-playable-asset.ts | Changed curveData property type from spec.Vector4CurveData to spec.Vector4CurveValue in Vector4PropertyPlayableAsset . |
packages/effects-core/src/composition-source-manager.ts | Added conditional check in preProcessItemContent method to ensure shapeData contains aPoint and index before assignment. |
migration.ts
, which may relate to the changes in dependency versions in the main PR.AssetManager
class, which may be indirectly related to the changes in the package.json
file regarding dependency versions.@galacean/effects-specification
dependency, which is directly related to the version change in the main PR.@galacean/effects-specification
dependency, making it relevant to the main PR's changes.🐇 In the meadow where colors blend,
A curve of hues begins to mend.
With vectors dancing, side by side,
New types emerge, our joy, our pride.
From alpha three to four we leap,
In playful assets, our dreams we keep! 🌈
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
Release Notes
New Features
Changes
curveData
inColorPropertyPlayableAsset
andVector4PropertyPlayableAsset
, improving data structure consistency.CompositionSourceManager
.These changes enhance the overall functionality and reliability of the effects core package.