mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
48 lines
1.7 KiB
Objective-C
48 lines
1.7 KiB
Objective-C
//
|
|
// LOTTransformInterpolator.h
|
|
// Lottie
|
|
//
|
|
// Created by brandon_withrow on 7/18/17.
|
|
// Copyright © 2017 Airbnb. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "LOTNumberInterpolator.h"
|
|
#import "LOTPointInterpolator.h"
|
|
#import "LOTSizeInterpolator.h"
|
|
#import "LOTKeyframe.h"
|
|
#import "LOTLayer.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface LOTTransformInterpolator : NSObject
|
|
|
|
+ (instancetype)transformForLayer:(LOTLayer *)layer;
|
|
|
|
- (instancetype)initWithPosition:(NSArray <LOTKeyframe *> *)position
|
|
rotation:(NSArray <LOTKeyframe *> *)rotation
|
|
anchor:(NSArray <LOTKeyframe *> *)anchor
|
|
scale:(NSArray <LOTKeyframe *> *)scale;
|
|
|
|
- (instancetype)initWithPositionX:(NSArray <LOTKeyframe *> *)positionX
|
|
positionY:(NSArray <LOTKeyframe *> *)positionY
|
|
rotation:(NSArray <LOTKeyframe *> *)rotation
|
|
anchor:(NSArray <LOTKeyframe *> *)anchor
|
|
scale:(NSArray <LOTKeyframe *> *)scale;
|
|
|
|
@property (nonatomic, strong) LOTTransformInterpolator * inputNode;
|
|
|
|
@property (nonatomic, readonly) LOTPointInterpolator *positionInterpolator;
|
|
@property (nonatomic, readonly) LOTPointInterpolator *anchorInterpolator;
|
|
@property (nonatomic, readonly) LOTSizeInterpolator *scaleInterpolator;
|
|
@property (nonatomic, readonly) LOTNumberInterpolator *rotationInterpolator;
|
|
@property (nonatomic, readonly) LOTNumberInterpolator *positionXInterpolator;
|
|
@property (nonatomic, readonly) LOTNumberInterpolator *positionYInterpolator;
|
|
|
|
- (CATransform3D)transformForFrame:(NSNumber *)frame;
|
|
- (BOOL)hasUpdateForFrame:(NSNumber *)frame;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|