mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 11:00:07 +00:00
50 lines
1.4 KiB
Objective-C
50 lines
1.4 KiB
Objective-C
//
|
|
// LOTKeyframe.h
|
|
// Pods
|
|
//
|
|
// Created by brandon_withrow on 7/10/17.
|
|
//
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <QuartzCore/QuartzCore.h>
|
|
#import "LOTPlatformCompat.h"
|
|
#import "LOTBezierData.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface LOTKeyframe : NSObject
|
|
|
|
- (instancetype)initWithKeyframe:(NSDictionary *)keyframe;
|
|
- (instancetype)initWithValue:(id)value;
|
|
- (void)remapValueWithBlock:(CGFloat (^)(CGFloat inValue))remapBlock;
|
|
- (LOTKeyframe *)copyWithData:(id)data;
|
|
|
|
@property (nonatomic, readonly) NSNumber *keyframeTime;
|
|
@property (nonatomic, readonly) BOOL isHold;
|
|
@property (nonatomic, readonly) CGPoint inTangent;
|
|
@property (nonatomic, readonly) CGPoint outTangent;
|
|
@property (nonatomic, readonly) CGPoint spatialInTangent;
|
|
@property (nonatomic, readonly) CGPoint spatialOutTangent;
|
|
|
|
@property (nonatomic, readonly) CGFloat floatValue;
|
|
@property (nonatomic, readonly) CGPoint pointValue;
|
|
@property (nonatomic, readonly) CGSize sizeValue;
|
|
@property (nonatomic, readonly) UIColor *colorValue;
|
|
@property (nonatomic, readonly, nullable) LOTBezierData *pathData;
|
|
@property (nonatomic, readonly) NSArray *arrayValue;
|
|
|
|
@end
|
|
|
|
@interface LOTKeyframeGroup : NSObject
|
|
|
|
- (instancetype)initWithData:(id)data;
|
|
|
|
- (void)remapKeyframesWithBlock:(CGFloat (^)(CGFloat inValue))remapBlock;
|
|
|
|
@property (nonatomic, readonly) NSArray<LOTKeyframe *> *keyframes;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|