-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into aws-m2-ci
- Loading branch information
Showing
25 changed files
with
190 additions
and
163 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#import "FloatTransition.h" | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface HorizontalScaleTransition : FloatTransition | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#import "HorizontalScaleTransition.h" | ||
|
||
@implementation HorizontalScaleTransition | ||
|
||
- (CATransform3D)animateWithProgress:(CGFloat)p { | ||
CGFloat scaleX = [RNNInterpolator fromFloat:self.from | ||
toFloat:self.to | ||
precent:p | ||
interpolator:self.interpolator]; | ||
return CATransform3DMakeScale(scaleX, 1, 1); | ||
} | ||
|
||
- (CGFloat)calculateFrom:(Double *)from { | ||
return from.hasValue ? from.get : 1; | ||
} | ||
|
||
- (CGFloat)calculateTo:(Double *)to { | ||
return to.hasValue ? to.get : 1; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#import "FloatTransition.h" | ||
#import <Foundation/Foundation.h> | ||
|
||
@interface VerticalScaleTransition : FloatTransition | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#import "VerticalScaleTransition.h" | ||
|
||
@implementation VerticalScaleTransition | ||
|
||
- (CATransform3D)animateWithProgress:(CGFloat)p { | ||
CGFloat scaleY = [RNNInterpolator fromFloat:self.from | ||
toFloat:self.to | ||
precent:p | ||
interpolator:self.interpolator]; | ||
return CATransform3DMakeScale(1, scaleY, 1); | ||
} | ||
|
||
- (CGFloat)calculateFrom:(Double *)from { | ||
return from.hasValue ? from.get : 1; | ||
} | ||
|
||
- (CGFloat)calculateTo:(Double *)to { | ||
return to.hasValue ? to.get : 1; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.