UNPKG

1.36 kBtext/x-cView Raw
1/**
2 * Copyright (c) 2015-present, Horcrux.
3 * All rights reserved.
4 *
5 * This source code is licensed under the MIT-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9#import <Foundation/Foundation.h>
10
11#import "RNSVGBrush.h"
12#import "RNSVGCGFCRule.h"
13#import "RNSVGNode.h"
14#import "RNSVGLength.h"
15#import "RNSVGVectorEffect.h"
16
17@interface RNSVGRenderable : RNSVGNode
18
19@property (class) RNSVGRenderable *contextElement;
20@property (nonatomic, strong) RNSVGBrush *fill;
21@property (nonatomic, assign) CGFloat fillOpacity;
22@property (nonatomic, assign) RNSVGCGFCRule fillRule;
23@property (nonatomic, strong) RNSVGBrush *stroke;
24@property (nonatomic, assign) CGFloat strokeOpacity;
25@property (nonatomic, strong) RNSVGLength *strokeWidth;
26@property (nonatomic, assign) CGLineCap strokeLinecap;
27@property (nonatomic, assign) CGLineJoin strokeLinejoin;
28@property (nonatomic, assign) CGFloat strokeMiterlimit;
29@property (nonatomic, strong) NSArray<RNSVGLength *> *strokeDasharray;
30@property (nonatomic, assign) CGFloat strokeDashoffset;
31@property (nonatomic, assign) RNSVGVectorEffect vectorEffect;
32@property (nonatomic, copy) NSArray<NSString *> *propList;
33
34- (void)setHitArea:(CGPathRef)path;
35
36- (NSArray<NSString *> *)getAttributeList;
37
38- (void)mergeProperties:(__kindof RNSVGRenderable *)target;
39
40- (void)resetProperties;
41
42@end