CSJAnimationConfiguration.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // CSJAnimationConfiguration.h
  3. // CSJAdSDK
  4. //
  5. // Created by bytedance on 2021/11/4.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. typedef NS_ENUM(NSUInteger, BUAnimationStyle) {
  10. BUAnimationStyle_Base,
  11. BUAnimationStyle_Keyframe,
  12. BUAnimationStyle_Group
  13. };
  14. @interface CSJAnimationConfiguration : NSObject
  15. @property (nonatomic, assign) BUAnimationStyle animationStyle;
  16. @property (nonatomic, copy) NSString *keyPath;
  17. @property (nonatomic, assign) CGFloat totalDuration;
  18. @property (nonatomic, assign) CGFloat subGroupDuration;
  19. @property (nonatomic, copy) NSArray<NSValue *> *opacityValues;
  20. @property (nonatomic, copy) NSArray<NSValue *> *scaleValues;
  21. @property (nonatomic, copy) NSArray<NSValue *> *positionValues;
  22. @property (nonatomic, copy) NSArray<NSValue *> *transformValues;
  23. @property (nonatomic, copy) NSArray<NSValue *> *pathValues;
  24. @property (nonatomic, copy) NSArray<NSNumber *> *keyTimes;
  25. @property (nonatomic, copy) NSArray<NSValue *> *keyFrameValues;
  26. @property (nonatomic, strong) id fromValue;
  27. @property (nonatomic, strong) id toValue;
  28. @property (nonatomic, assign) CGPoint startPoint;
  29. @property (nonatomic, assign) CGPoint endPoint;
  30. @property (nonatomic, assign) CGFloat lineWidth;
  31. @property (nonatomic, assign) CGFloat speed;
  32. @property (nonatomic, assign) CFTimeInterval beginTime;
  33. @property (nonatomic, assign) float repeatCount;
  34. @property (nonatomic, copy) CAMediaTimingFillMode fillMode;
  35. @property (nonatomic, getter=isRemovedOnCompletion) BOOL removedOnCompletion;
  36. @property (nonatomic, nullable, strong) CAMediaTimingFunction *timingFunction;
  37. @property (nonatomic, nullable, copy) NSArray<CAAnimation *> *animations;
  38. @end
  39. NS_ASSUME_NONNULL_END