mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-27 12:41:49 +00:00
Add startOffset support
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
- (void)renderLayerTo:(CGContextRef)context
|
||||
{
|
||||
[self setContextBoundingBox:CGContextGetClipBoundingBox(context)];
|
||||
[self renderGroupTo:context];
|
||||
}
|
||||
|
||||
@@ -33,7 +34,8 @@
|
||||
}
|
||||
|
||||
RNSVGPath *path = template;
|
||||
return [[RNSVGBezierPath alloc] initWithBezierCurves:[path getBezierCurves]];
|
||||
CGFloat startOffset = [self getWidthRelatedValue:self.startOffset];
|
||||
return [[RNSVGBezierPath alloc] initWithBezierCurvesAndStartOffset:[path getBezierCurves] startOffset:startOffset];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user