@@ -517,21 +517,12 @@ export class Animation extends AnimationBase {
517
517
}
518
518
519
519
private static _createGroupAnimation ( args : AnimationInfo , animation : PropertyAnimation ) {
520
+ const animations = NSMutableArray . alloc < CAAnimation > ( ) . initWithCapacity ( 3 ) ;
520
521
const groupAnimation = CAAnimationGroup . new ( ) ;
521
522
groupAnimation . duration = args . duration ;
522
- if ( args . repeatCount !== undefined ) {
523
- groupAnimation . repeatCount = args . repeatCount ;
524
- }
525
- if ( args . delay !== undefined ) {
526
- groupAnimation . beginTime = CACurrentMediaTime ( ) + args . delay ;
527
- }
528
- if ( animation . curve !== undefined ) {
529
- groupAnimation . timingFunction = animation . curve ;
530
- }
531
- const animations = NSMutableArray . alloc < CAAnimation > ( ) . initWithCapacity ( 3 ) ;
532
523
533
524
args . subPropertiesToAnimate . forEach ( ( property ) => {
534
- const basicAnimationArgs = { ...args , duration : undefined , repeatCount : undefined , delay : undefined , curve : undefined } ;
525
+ const basicAnimationArgs = { ...args } ;
535
526
basicAnimationArgs . propertyNameToAnimate = `${ args . propertyNameToAnimate } .${ property } ` ;
536
527
basicAnimationArgs . fromValue = args . fromValue [ property ] ;
537
528
basicAnimationArgs . toValue = args . toValue [ property ] ;
@@ -676,11 +667,18 @@ export class Animation extends AnimationBase {
676
667
result = CATransform3DScale ( result , x === 0 ? 0.001 : x , y === 0 ? 0.001 : y , 1 ) ;
677
668
}
678
669
670
+ if ( value [ Properties . rotate ] !== undefined ) {
671
+ const x = value [ Properties . rotate ] . x ;
672
+ const y = value [ Properties . rotate ] . y ;
673
+ const z = value [ Properties . rotate ] . z ;
674
+ result = iosHelper . applyRotateTransform ( result , x , y , z ) ;
675
+ }
676
+
679
677
return result ;
680
678
}
681
679
682
680
private static _isAffineTransform ( property : string ) : boolean {
683
- return property === _transform || property === Properties . translate || property === Properties . scale ;
681
+ return property === _transform || property === Properties . translate || property === Properties . scale || property === Properties . rotate ;
684
682
}
685
683
686
684
private static _canBeMerged ( animation1 : PropertyAnimation , animation2 : PropertyAnimation ) {
0 commit comments