30 lines
745 B
Objective-C
30 lines
745 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Horcrux.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the MIT-style license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "RCTConvert+RNSVG.h"
|
|
#import "RNSVGBrushType.h"
|
|
#import "RNSVGUnits.h"
|
|
|
|
@interface RNSVGPainter : NSObject
|
|
|
|
- (instancetype)initWithPointsArray:(NSArray<NSString *> *)pointsArray NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (void)paint:(CGContextRef)context;
|
|
|
|
- (void)setUnits:(RNSVGUnits)unit;
|
|
|
|
- (void)setUserSpaceBoundingBox:(CGRect)userSpaceBoundingBox;
|
|
|
|
- (void)setTransform:(CGAffineTransform)transform;
|
|
|
|
- (void)setLinearGradientColors:(NSArray<NSNumber *> *)colors;
|
|
|
|
- (void)setRadialGradientColors:(NSArray<NSNumber *> *)colors;
|
|
|
|
@end
|