mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
Run Prettier, configure ESLint.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
function arrayDiffer(a, b) {
|
||||
if (!a || !b) {
|
||||
return true;
|
||||
@@ -91,24 +90,24 @@ const GroupAttributes = {
|
||||
...RenderableAttributes,
|
||||
font: {
|
||||
diff: fontDiffer
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
const UseAttributes = {
|
||||
...RenderableAttributes,
|
||||
href: true,
|
||||
width: true,
|
||||
height: true,
|
||||
height: true
|
||||
};
|
||||
|
||||
const SymbolAttributes = {
|
||||
...ViewBoxAttributes,
|
||||
name: true,
|
||||
name: true
|
||||
};
|
||||
|
||||
const PathAttributes = {
|
||||
...RenderableAttributes,
|
||||
d: true,
|
||||
d: true
|
||||
};
|
||||
|
||||
const TextSpecificAttributes = {
|
||||
@@ -117,7 +116,7 @@ const TextSpecificAttributes = {
|
||||
baselineShift: true,
|
||||
verticalAlign: true,
|
||||
lengthAdjust: true,
|
||||
textLength: true,
|
||||
textLength: true
|
||||
};
|
||||
|
||||
const TextAttributes = {
|
||||
@@ -129,7 +128,7 @@ const TextAttributes = {
|
||||
deltaY: arrayDiffer,
|
||||
rotate: arrayDiffer,
|
||||
positionX: arrayDiffer,
|
||||
positionY: arrayDiffer,
|
||||
positionY: arrayDiffer
|
||||
};
|
||||
|
||||
const TextPathAttributes = {
|
||||
@@ -139,12 +138,12 @@ const TextPathAttributes = {
|
||||
method: true,
|
||||
spacing: true,
|
||||
side: true,
|
||||
midLine: true,
|
||||
midLine: true
|
||||
};
|
||||
|
||||
const TSpanAttibutes = {
|
||||
...TextAttributes,
|
||||
content: true,
|
||||
content: true
|
||||
};
|
||||
|
||||
const ClipPathAttributes = {
|
||||
@@ -159,7 +158,7 @@ const GradientAttributes = {
|
||||
gradientUnits: true,
|
||||
gradientTransform: {
|
||||
diff: arrayDiffer
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
const LinearGradientAttributes = {
|
||||
@@ -167,7 +166,7 @@ const LinearGradientAttributes = {
|
||||
x1: true,
|
||||
y1: true,
|
||||
x2: true,
|
||||
y2: true,
|
||||
y2: true
|
||||
};
|
||||
|
||||
const RadialGradientAttributes = {
|
||||
@@ -178,15 +177,14 @@ const RadialGradientAttributes = {
|
||||
ry: true,
|
||||
cx: true,
|
||||
cy: true,
|
||||
r: true,
|
||||
r: true
|
||||
};
|
||||
|
||||
|
||||
const CircleAttributes = {
|
||||
...RenderableAttributes,
|
||||
cx: true,
|
||||
cy: true,
|
||||
r: true,
|
||||
r: true
|
||||
};
|
||||
|
||||
const EllipseAttributes = {
|
||||
@@ -194,7 +192,7 @@ const EllipseAttributes = {
|
||||
cx: true,
|
||||
cy: true,
|
||||
rx: true,
|
||||
ry: true,
|
||||
ry: true
|
||||
};
|
||||
|
||||
const ImageAttributes = {
|
||||
@@ -205,7 +203,7 @@ const ImageAttributes = {
|
||||
height: true,
|
||||
src: true,
|
||||
align: true,
|
||||
meetOrSlice: true,
|
||||
meetOrSlice: true
|
||||
};
|
||||
|
||||
const LineAttributes = {
|
||||
@@ -213,7 +211,7 @@ const LineAttributes = {
|
||||
x1: true,
|
||||
y1: true,
|
||||
x2: true,
|
||||
y2: true,
|
||||
y2: true
|
||||
};
|
||||
|
||||
const RectAttributes = {
|
||||
@@ -223,7 +221,7 @@ const RectAttributes = {
|
||||
width: true,
|
||||
height: true,
|
||||
rx: true,
|
||||
ry: true,
|
||||
ry: true
|
||||
};
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user