react-figma
Advanced tools
Comparing version 0.0.38 to 0.0.39
{ | ||
"name": "react-figma", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"description": "Render React components to Figma", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -28,2 +28,12 @@ "use strict"; | ||
}; }; | ||
var transformFlexWrap = function (yoga) { return function (value) { | ||
switch (value) { | ||
case 'wrap': | ||
return yoga.WRAP_WRAP; | ||
case 'nowrap': | ||
return yoga.WRAP_NO_WRAP; | ||
default: | ||
return yoga.WRAP_NO_WRAP; | ||
} | ||
}; }; | ||
var transformAlignSelf = function (yoga) { return function (value) { | ||
@@ -209,2 +219,5 @@ switch (value) { | ||
} | ||
if (style.flexWrap) { | ||
yogaNode.setFlexWrap(transformFlexWrap(yoga)(style.flexWrap)); | ||
} | ||
if (style.aspectRatio) { | ||
@@ -211,0 +224,0 @@ yogaNode.setAspectRatio(style.aspectRatio); |
@@ -15,2 +15,3 @@ declare type Dimension = number | string; | ||
flexDirection: 'row' | 'column' | 'row-reverse' | 'column-reverse'; | ||
flexWrap: 'wrap' | 'nowrap'; | ||
alignItems: 'flex-start' | 'center' | 'stretch' | 'flex-end'; | ||
@@ -17,0 +18,0 @@ justifyContent: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
301587
4613