2015-04-29 22:28:18 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
2018-02-17 02:24:55 +00:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-04-29 22:28:18 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#import <QuartzCore/QuartzCore.h>
|
|
|
|
|
2016-12-05 18:28:37 +00:00
|
|
|
#import <React/RCTConvert.h>
|
|
|
|
|
2015-04-29 22:28:18 +00:00
|
|
|
#import "ARTBrush.h"
|
|
|
|
#import "ARTCGFloatArray.h"
|
|
|
|
#import "ARTTextFrame.h"
|
|
|
|
|
|
|
|
@interface RCTConvert (ART)
|
|
|
|
|
|
|
|
+ (CGPathRef)CGPath:(id)json;
|
|
|
|
+ (CTTextAlignment)CTTextAlignment:(id)json;
|
|
|
|
+ (ARTTextFrame)ARTTextFrame:(id)json;
|
|
|
|
+ (ARTCGFloatArray)ARTCGFloatArray:(id)json;
|
|
|
|
+ (ARTBrush *)ARTBrush:(id)json;
|
|
|
|
|
|
|
|
+ (CGPoint)CGPoint:(id)json offset:(NSUInteger)offset;
|
|
|
|
+ (CGRect)CGRect:(id)json offset:(NSUInteger)offset;
|
|
|
|
+ (CGColorRef)CGColor:(id)json offset:(NSUInteger)offset;
|
|
|
|
+ (CGGradientRef)CGGradient:(id)json offset:(NSUInteger)offset;
|
|
|
|
|
|
|
|
@end
|