mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-23 15:45:24 +00:00
refactor viewBox for svg
This commit is contained in:
@@ -41,6 +41,15 @@ function fontAndLinesDiffer(a, b) {
|
||||
return arrayDiffer(a.lines, b.lines);
|
||||
}
|
||||
|
||||
const ViewBoxAttributes = {
|
||||
minX: true,
|
||||
minY: true,
|
||||
vbWidth: true,
|
||||
vbHeight: true,
|
||||
align: true,
|
||||
meetOrSlice: true
|
||||
};
|
||||
|
||||
const NodeAttributes = {
|
||||
name: true,
|
||||
transform: {
|
||||
@@ -180,5 +189,6 @@ export {
|
||||
UseAttributes,
|
||||
RenderableOnlyAttributes,
|
||||
LinearGradientAttributes,
|
||||
RadialGradientAttributes
|
||||
RadialGradientAttributes,
|
||||
ViewBoxAttributes
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user