Files
react-native-svg/apple/Utils/RNSVGMarkerPosition.h
Wojciech Lewicki 98c14b4f45 chore: add CI for JS, iOS and Android formatting (#1782)
Added CI workflow and local pre-commit hook for formatting and linting the newly added JS, iOS and Android code.
2022-08-16 12:00:32 +02:00

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