mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
27 lines
803 B
Objective-C
27 lines
803 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.
|
|
*/
|
|
|
|
/*
|
|
Erica Sadun, http://ericasadun.com
|
|
iPhone Developer's Cookbook, 6.x Edition
|
|
BSD License, Use at your own risk
|
|
*/
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@interface UIBezierPath (Points)
|
|
@property (nonatomic, readonly) NSArray *points;
|
|
@property (nonatomic, readonly) NSArray *bezierElements;
|
|
@property (nonatomic, readonly) CGFloat length;
|
|
|
|
- (NSArray *) pointPercentArray;
|
|
- (CGPoint) pointAtPercent: (CGFloat) percent withSlope: (CGPoint *) slope;
|
|
+ (UIBezierPath *) pathWithPoints: (NSArray *) points;
|
|
+ (UIBezierPath *) pathWithElements: (NSArray *) elements;
|
|
@end |