LOTShapeGradientFill.h 916 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // LOTShapeGradientFill.h
  3. // Lottie
  4. //
  5. // Created by brandon_withrow on 7/26/17.
  6. // Copyright © 2017 Airbnb. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "LOTKeyframe.h"
  10. NS_ASSUME_NONNULL_BEGIN
  11. typedef enum : NSUInteger {
  12. LOTGradientTypeLinear,
  13. LOTGradientTypeRadial
  14. } LOTGradientType;
  15. @interface LOTShapeGradientFill : NSObject
  16. - (instancetype)initWithJSON:(NSDictionary *)jsonDictionary;
  17. @property (nonatomic, readonly) NSString *keyname;
  18. @property (nonatomic, readonly) NSNumber *numberOfColors;
  19. @property (nonatomic, readonly) LOTKeyframeGroup *startPoint;
  20. @property (nonatomic, readonly) LOTKeyframeGroup *endPoint;
  21. @property (nonatomic, readonly) LOTKeyframeGroup *gradient;
  22. @property (nonatomic, readonly) LOTKeyframeGroup *opacity;
  23. @property (nonatomic, readonly) BOOL evenOddFillRule;
  24. @property (nonatomic, readonly) LOTGradientType type;
  25. @end
  26. NS_ASSUME_NONNULL_END