mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 16:54:52 +00:00
perf: optimize extraction of fill, stroke, responder, matrix & display
potentially breaking change if any issues show up, then they'll be considered regressions should be resolved in ways which cause less traffic from js to native
This commit is contained in:
@@ -156,96 +156,17 @@ exports[`supports CSS in style element 1`] = `
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<RNSVGGroup
|
||||
fill={4278190080}
|
||||
fillOpacity={1}
|
||||
fillRule={1}
|
||||
font={Object {}}
|
||||
matrix={
|
||||
Array [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
]
|
||||
}
|
||||
opacity={1}
|
||||
originX={0}
|
||||
originY={0}
|
||||
propList={Array []}
|
||||
rotation={0}
|
||||
scaleX={1}
|
||||
scaleY={1}
|
||||
skewX={0}
|
||||
skewY={0}
|
||||
stroke={null}
|
||||
strokeDasharray={null}
|
||||
strokeDashoffset={null}
|
||||
strokeLinecap={0}
|
||||
strokeLinejoin={0}
|
||||
strokeMiterlimit={4}
|
||||
strokeOpacity={1}
|
||||
strokeWidth={1}
|
||||
vectorEffect={0}
|
||||
x={0}
|
||||
y={0}
|
||||
>
|
||||
<RNSVGDefs />
|
||||
<RNSVGGroup
|
||||
fill={4278190080}
|
||||
fillOpacity={1}
|
||||
fillRule={1}
|
||||
font={Object {}}
|
||||
matrix={
|
||||
Array [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
]
|
||||
}
|
||||
opacity={1}
|
||||
originX={0}
|
||||
originY={0}
|
||||
propList={Array []}
|
||||
rotation={0}
|
||||
scaleX={1}
|
||||
scaleY={1}
|
||||
skewX={0}
|
||||
skewY={0}
|
||||
stroke={null}
|
||||
strokeDasharray={null}
|
||||
strokeDashoffset={null}
|
||||
strokeLinecap={0}
|
||||
strokeLinejoin={0}
|
||||
strokeMiterlimit={4}
|
||||
strokeOpacity={1}
|
||||
strokeWidth={1}
|
||||
vectorEffect={0}
|
||||
x={0}
|
||||
y={0}
|
||||
>
|
||||
<RNSVGRect
|
||||
fill={4294901760}
|
||||
fillOpacity={1}
|
||||
fillRule={1}
|
||||
height={200}
|
||||
matrix={
|
||||
Array [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
]
|
||||
}
|
||||
opacity={1}
|
||||
originX={0}
|
||||
originY={0}
|
||||
propList={
|
||||
Array [
|
||||
"fill",
|
||||
@@ -253,79 +174,21 @@ exports[`supports CSS in style element 1`] = `
|
||||
"strokeWidth",
|
||||
]
|
||||
}
|
||||
rotation={0}
|
||||
scaleX={1}
|
||||
scaleY={1}
|
||||
skewX={0}
|
||||
skewY={0}
|
||||
stroke={4278190335}
|
||||
strokeDasharray={null}
|
||||
strokeDashoffset={null}
|
||||
strokeLinecap={0}
|
||||
strokeLinejoin={0}
|
||||
strokeMiterlimit={4}
|
||||
strokeOpacity={1}
|
||||
strokeWidth="16"
|
||||
vectorEffect={0}
|
||||
width={1000}
|
||||
x={100}
|
||||
y={0}
|
||||
/>
|
||||
</RNSVGGroup>
|
||||
<RNSVGGroup
|
||||
fill={4278190080}
|
||||
fillOpacity={1}
|
||||
fillRule={1}
|
||||
font={Object {}}
|
||||
matrix={
|
||||
Array [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
]
|
||||
}
|
||||
opacity={1}
|
||||
originX={0}
|
||||
originY={0}
|
||||
propList={Array []}
|
||||
rotation={0}
|
||||
scaleX={1}
|
||||
scaleY={1}
|
||||
skewX={0}
|
||||
skewY={0}
|
||||
stroke={null}
|
||||
strokeDasharray={null}
|
||||
strokeDashoffset={null}
|
||||
strokeLinecap={0}
|
||||
strokeLinejoin={0}
|
||||
strokeMiterlimit={4}
|
||||
strokeOpacity={1}
|
||||
strokeWidth={1}
|
||||
vectorEffect={0}
|
||||
x={0}
|
||||
y={0}
|
||||
>
|
||||
<RNSVGRect
|
||||
fill={4294901760}
|
||||
fillOpacity={0.3}
|
||||
fillRule={1}
|
||||
height={200}
|
||||
matrix={
|
||||
Array [
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
]
|
||||
}
|
||||
opacity={1}
|
||||
originX={0}
|
||||
originY={0}
|
||||
propList={
|
||||
Array [
|
||||
"fill",
|
||||
@@ -334,20 +197,8 @@ exports[`supports CSS in style element 1`] = `
|
||||
"strokeWidth",
|
||||
]
|
||||
}
|
||||
rotation={0}
|
||||
scaleX={1}
|
||||
scaleY={1}
|
||||
skewX={0}
|
||||
skewY={0}
|
||||
stroke={4278190335}
|
||||
strokeDasharray={null}
|
||||
strokeDashoffset={null}
|
||||
strokeLinecap={0}
|
||||
strokeLinejoin={0}
|
||||
strokeMiterlimit={4}
|
||||
strokeOpacity={1}
|
||||
strokeWidth="16"
|
||||
vectorEffect={0}
|
||||
width={750}
|
||||
x={100}
|
||||
y={350}
|
||||
|
||||
Reference in New Issue
Block a user