Finish TSpan

This commit is contained in:
Horcrux
2016-11-11 00:48:55 +08:00
parent a305a33985
commit aae482236d
23 changed files with 379 additions and 262 deletions
+13 -5
View File
@@ -7,19 +7,27 @@
*/
#import <Foundation/Foundation.h>
#import "RNSVGGlyphPoint.h"
#import "RNSVGGroup.h"
#import "RNSVGTextAnchor.h"
@interface RNSVGText : RNSVGGroup
@property (nonatomic, assign) RNSVGTextAnchor textAnchor;
@property (nonatomic, assign) NSArray<NSNumber *> *deltaX;
@property (nonatomic, assign) NSArray<NSNumber *> *deltaY;
@property (nonatomic, strong) NSArray<NSNumber *> *deltaX;
@property (nonatomic, strong) NSArray<NSNumber *> *deltaY;
@property (nonatomic, strong) NSString *positionX;
@property (nonatomic, strong) NSString *positionY;
@property (nonatomic, assign) NSDictionary *font;
@property (nonatomic, strong) NSDictionary *font;
@property (nonatomic, assign) CGFloat offsetX;
@property (nonatomic, assign) CGFloat offsetY;
@property (nonatomic, assign) CGFloat lastX;
@property (nonatomic, assign) CGFloat lastY;
@property (nonatomic, assign) NSUInteger lastIndex;
- (CTFontRef)getComputedFont;
- (RNSVGGlyphPoint)getComputedGlyphPoint:(NSUInteger *)index glyphOffset:(CGPoint)glyphOffset;
- (RNSVGText *)getTextRoot;
- (CGPathRef)getTextGroupPath:(CGContextRef)context;
- (void)resetTextPathAttributes;
@end