@mpxjs/webpack-plugin 2.10.3-beta.18 → 2.10.3-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -265,7 +265,7 @@ export default function useAnimationHooks(props) {
|
|
|
265
265
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
266
266
|
const animationStyle = useAnimatedStyle(() => {
|
|
267
267
|
// console.info(`useAnimatedStyle styles=`, originalStyle)
|
|
268
|
-
|
|
268
|
+
const animatedStyle = animatedStyleKeys.value.reduce((styles, key) => {
|
|
269
269
|
// console.info('getAnimationStyles', key, shareValMap[key].value)
|
|
270
270
|
if (Array.isArray(key)) {
|
|
271
271
|
const transformStyle = getTransformObj(originalStyle.transform || []);
|
|
@@ -281,6 +281,8 @@ export default function useAnimationHooks(props) {
|
|
|
281
281
|
}
|
|
282
282
|
return styles;
|
|
283
283
|
}, {});
|
|
284
|
+
console.log('animatedStyle', animatedStyle)
|
|
285
|
+
return animatedStyle;
|
|
284
286
|
});
|
|
285
287
|
return {
|
|
286
288
|
enableStyleAnimation: enableAnimationRef.current,
|