mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
Support G inherit props. Refactor text render. Text glyphs will perfectly draw along the path
34 lines
946 B
Objective-C
34 lines
946 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 <QuartzCore/QuartzCore.h>
|
|
#import "RCTConvert+RNSVG.h"
|
|
#import "RNSVGCGFloatArray.h"
|
|
#import "RNSVGTextFrame.h"
|
|
#import "RCTConvert.h"
|
|
#import "RNSVGCGFCRule.h"
|
|
|
|
@class RNSVGBrush;
|
|
|
|
@interface RCTConvert (RNSVG)
|
|
|
|
+ (CGPathRef)CGPath:(id)json;
|
|
+ (CTTextAlignment)CTTextAlignment:(id)json;
|
|
+ (RNSVGCGFCRule)RNSVGCGFCRule:(id)json;
|
|
+ (RNSVGTextFrame)RNSVGTextFrame:(id)json;
|
|
+ (RNSVGCGFloatArray)RNSVGCGFloatArray:(id)json;
|
|
+ (RNSVGBrush *)RNSVGBrush:(id)json;
|
|
|
|
+ (NSArray *)RNSVGBezier:(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
|