Add mobile yoga tree captures #1640

Closed
joevilches wants to merge 1 commits from export-D55712235 into main
3 changed files with 12297 additions and 0 deletions

View File

@@ -21,6 +21,10 @@ static inline bool isAuto(json& j) {
return j.is_string() && j == "auto";
}
static inline bool isUndefined(json& j) {
return j.is_string() && j == "undefined";
}
static inline std::string invalidArgumentMessage(
const std::string& arg,
const std::string& enumName) {
@@ -142,6 +146,9 @@ YGUnit unitFromJson(json& j) {
if (isAuto(j)) {
return YGUnitAuto;
}
if (isUndefined(j)) {
return YGUnitUndefined;
}
std::string unit = j["unit"];
if (unit == "px") {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff