@@ -32,72 +32,77 @@ const InterpolatorFactoriesRecord FLEX_INTERPOLATORS = {
3232 {" borderTopWidth" , value<CSSDouble>(0 )},
3333 {" borderWidth" , value<CSSDouble>(0 )},
3434 {" bottom" ,
35- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " height" , " auto " )},
35+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " height" } )},
3636 {" boxSizing" , value<CSSKeyword>(" border-box" )},
3737 {" display" , value<CSSDisplay>(" flex" )},
38- {" end" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto" )},
38+ {" end" ,
39+ value<CSSLength, CSSKeyword>(" auto" , {RelativeTo::Parent, " width" })},
3940 {" flex" , value<CSSDouble>(0 )},
4041 {" flexBasis" ,
41- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto " )},
42+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " width" } )},
4243 {" flexDirection" , value<CSSKeyword>(" column" )},
43- {" rowGap" , value<CSSLength>(RelativeTo::Self, " height" , 0 )},
44- {" columnGap" , value<CSSLength>(RelativeTo::Self, " width" , 0 )},
44+ {" rowGap" , value<CSSLength>(0 , { RelativeTo::Self, " height" } )},
45+ {" columnGap" , value<CSSLength>(0 , { RelativeTo::Self, " width" } )},
4546 {" flexGrow" , value<CSSDouble>(0 )},
4647 {" flexShrink" , value<CSSDouble>(0 )},
4748 {" flexWrap" , value<CSSKeyword>(" no-wrap" )},
4849 {" height" ,
49- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " height" , " auto " )},
50+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " height" } )},
5051 {" justifyContent" , value<CSSKeyword>(" flex-start" )},
51- {" left" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto" )},
52- {" margin" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
52+ {" left" ,
53+ value<CSSLength, CSSKeyword>(" auto" , {RelativeTo::Parent, " width" })},
54+ {" margin" , value<CSSLength, CSSKeyword>(0 , {RelativeTo::Parent, " width" })},
5355 {" marginBottom" ,
54- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
55- {" marginEnd" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
56+ value<CSSLength, CSSKeyword>(0 , {RelativeTo::Parent, " width" })},
57+ {" marginEnd" ,
58+ value<CSSLength, CSSKeyword>(0 , {RelativeTo::Parent, " width" })},
5659 {" marginHorizontal" ,
57- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
60+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
5861 {" marginLeft" ,
59- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
62+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
6063 {" marginRight" ,
61- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
64+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
6265 {" marginStart" ,
63- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
64- {" marginTop" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
66+ value<CSSLength, CSSKeyword>(0 , {RelativeTo::Parent, " width" })},
67+ {" marginTop" ,
68+ value<CSSLength, CSSKeyword>(0 , {RelativeTo::Parent, " width" })},
6569 {" marginVertical" ,
66- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
70+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
6771 {" maxHeight" ,
68- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " height" , " auto " )},
72+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " height" } )},
6973 {" maxWidth" ,
70- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto " )},
74+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " width" } )},
7175 {" minHeight" ,
72- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " height" , " auto " )},
76+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " height" } )},
7377 {" minWidth" ,
74- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto " )},
78+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " width" } )},
7579 {" overflow" , value<CSSKeyword>(" visible" )},
76- {" padding" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
80+ {" padding" , value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
7781 {" paddingBottom" ,
78- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
82+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
7983 {" paddingEnd" ,
80- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
84+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
8185 {" paddingHorizontal" ,
82- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
86+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
8387 {" paddingLeft" ,
84- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
88+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
8589 {" paddingRight" ,
86- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
90+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
8791 {" paddingStart" ,
88- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
92+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
8993 {" paddingTop" ,
90- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
94+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
9195 {" paddingVertical" ,
92- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , 0 )},
96+ value<CSSLength, CSSKeyword>(0 , { RelativeTo::Parent, " width" } )},
9397 {" position" , value<CSSKeyword>(" relative" )},
9498 {" right" ,
95- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto " )},
99+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " width" } )},
96100 {" start" ,
97- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto" )},
98- {" top" , value<CSSLength, CSSKeyword>(RelativeTo::Parent, " height" , " auto" )},
101+ value<CSSLength, CSSKeyword>(" auto" , {RelativeTo::Parent, " width" })},
102+ {" top" ,
103+ value<CSSLength, CSSKeyword>(" auto" , {RelativeTo::Parent, " height" })},
99104 {" width" ,
100- value<CSSLength, CSSKeyword>(RelativeTo::Parent, " width" , " auto " )},
105+ value<CSSLength, CSSKeyword>(" auto " , { RelativeTo::Parent, " width" } )},
101106 {" zIndex" , value<CSSInteger>(0 )},
102107 {" direction" , value<CSSKeyword>(" inherit" )}};
103108
@@ -111,8 +116,8 @@ const InterpolatorFactoriesRecord SHADOW_INTERPOLATORS_IOS = {
111116const InterpolatorFactoriesRecord TRANSFORMS_INTERPOLATORS = {
112117 {" transformOrigin" ,
113118 array (
114- {value<CSSLength>(RelativeTo::Self, " width" , " 50% " ),
115- value<CSSLength>(RelativeTo::Self, " height" , " 50% " ),
119+ {value<CSSLength>(" 50% " , { RelativeTo::Self, " width" } ),
120+ value<CSSLength>(" 50% " , { RelativeTo::Self, " height" } ),
116121 value<CSSDouble>(0 )})},
117122 {" transform" ,
118123 transforms (
@@ -126,9 +131,9 @@ const InterpolatorFactoriesRecord TRANSFORMS_INTERPOLATORS = {
126131 {" scaleX" , transformOp<ScaleXOperation>(1 )},
127132 {" scaleY" , transformOp<ScaleYOperation>(1 )},
128133 {" translateX" ,
129- transformOp<TranslateXOperation>(RelativeTo::Self, " width" , 0 )},
134+ transformOp<TranslateXOperation>(0 , { RelativeTo::Self, " width" } )},
130135 {" translateY" ,
131- transformOp<TranslateYOperation>(RelativeTo::Self, " height" , 0 )},
136+ transformOp<TranslateYOperation>(0 , { RelativeTo::Self, " height" } )},
132137 {" skewX" , transformOp<SkewXOperation>(" 0deg" )},
133138 {" skewY" , transformOp<SkewYOperation>(" 0deg" )},
134139 {" matrix" ,
0 commit comments