mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
Implement hasGlyph ligature helper. Export view property setters for: text: textLength, baselineShift, lengthAdjust, alignmentBaseline, textPath: side, method, midLine, spacing. Attempt to fix alignmentBaseline and baselineShift, but both properties are nil at all times, I must be missing something.
30 lines
656 B
Objective-C
30 lines
656 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 "RNSVGTextPathManager.h"
|
|
|
|
#import "RNSVGTextPath.h"
|
|
|
|
@implementation RNSVGTextPathManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
- (RNSVGRenderable *)node
|
|
{
|
|
return [RNSVGTextPath new];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(href, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(side, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(method, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(midLine, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(spacing, NSString)
|
|
RCT_EXPORT_VIEW_PROPERTY(startOffset, NSString)
|
|
|
|
@end
|