34 lines
1007 B
Objective-C
34 lines
1007 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 <Foundation/Foundation.h>
|
|
#import "RNSVGGroup.h"
|
|
#import "RNSVGTextAnchor.h"
|
|
#import "RNSVGGlyphContext.h"
|
|
|
|
@interface RNSVGText : RNSVGGroup
|
|
|
|
@property (nonatomic, assign) RNSVGTextAnchor textAnchor;
|
|
@property (nonatomic, strong) NSArray<NSNumber *> *deltaX;
|
|
@property (nonatomic, strong) NSArray<NSNumber *> *deltaY;
|
|
@property (nonatomic, strong) NSString *positionX;
|
|
@property (nonatomic, strong) NSString *positionY;
|
|
@property (nonatomic, strong) NSDictionary *font;
|
|
|
|
- (RNSVGText *)getTextRoot;
|
|
- (void)releaseCachedPath;
|
|
- (CGPathRef)getGroupPath:(CGContextRef)context;
|
|
|
|
- (RNSVGGlyphContext *)getGlyphContext;
|
|
- (void)pushGlyphContext;
|
|
- (void)popGlyphContext;
|
|
- (CTFontRef)getFontFromContext;
|
|
- (CGPoint)getGlyphPointFromContext:(CGPoint)offset glyphWidth:(CGFloat)glyphWidth;
|
|
|
|
@end
|