mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-01 22:25:12 +00:00
Fix Symbol position
This commit is contained in:
@@ -80,13 +80,14 @@
|
||||
- (void)renderSymbolTo:(CGContextRef)context width:(CGFloat)width height:(CGFloat)height
|
||||
{
|
||||
if (self.align) {
|
||||
CGRect eRect = CGRectMake([self getContextLeft], [self getContextTop], width, height);
|
||||
CGRect eRect = CGRectMake(0, 0, width, height);
|
||||
|
||||
CGAffineTransform viewBoxTransform = [RNSVGViewBox getTransform:CGRectMake(self.minX, self.minY, self.vbWidth, self.vbHeight)
|
||||
eRect:eRect
|
||||
align:self.align
|
||||
meetOrSlice:self.meetOrSlice
|
||||
fromSymbol:YES];
|
||||
|
||||
CGContextConcatCTM(context, viewBoxTransform);
|
||||
}
|
||||
[self renderGroupTo:context];
|
||||
|
||||
Reference in New Issue
Block a user