2017-08-01 14:44:03 -07:00

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