add viewBox support for android

This commit is contained in:
Horcrux
2016-07-26 11:37:31 +08:00
parent f82032c21c
commit 9888a1adf2
21 changed files with 262 additions and 76 deletions
+1 -8
View File
@@ -16,7 +16,7 @@
[self clip:context];
for (RNSVGNode *node in self.subviews) {
[node inheritProperties:self inheritedList:self.propList];
[node mergeProperties:self mergeList:self.propList inherited:YES];
[node renderTo:context];
if (node.responsible && !svg.responsible) {
@@ -78,11 +78,4 @@
}
}
- (void)inheritProperties:(__kindof RNSVGNode *)parent inheritedList:(NSArray<NSString *> *)inheritedList;
{
for (NSString *key in inheritedList) {
[self inheritProperty:parent propName:key];
}
}
@end