mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-06 07:06:11 +00:00
Added CI workflow and local pre-commit hook for formatting and linting the newly added JS, iOS and Android code.
22 lines
581 B
Objective-C
22 lines
581 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import "RNSVGUIKit.h"
|
|
|
|
typedef enum RNSVGMarkerType { kStartMarker, kMidMarker, kEndMarker } RNSVGMarkerType;
|
|
|
|
#define RNSVGZEROPOINT CGRectZero.origin
|
|
|
|
@interface RNSVGMarkerPosition : NSObject
|
|
|
|
// Element storage
|
|
@property (nonatomic, assign) RNSVGMarkerType type;
|
|
@property (nonatomic, assign) CGPoint origin;
|
|
@property (nonatomic, assign) float angle;
|
|
|
|
// Instance creation
|
|
+ (instancetype)markerPosition:(RNSVGMarkerType)type origin:(CGPoint)origin angle:(float)angle;
|
|
|
|
+ (NSArray<RNSVGMarkerPosition *> *)fromCGPath:(CGPathRef)path;
|
|
|
|
@end
|