Summary: X-link: https://github.com/facebook/react-native/pull/41317 Pull Request resolved: https://github.com/facebook/yoga/pull/1449 This aims to clean up the public Yoga C API, by: 1. Documenting public YGNode, YGValue, YGConfig APIs 2. Splitting APIs for specific objects into different header files (because Yoga.h was big enough without documentation) 3. Reordering headers and definitions for consistent grouping Changelog: [Internal] Reviewed By: joevilches Differential Revision: D50963424 fbshipit-source-id: 45124b7370256fc63aefd6d5b7641466e9a79d3b
21 lines
563 B
C++
21 lines
563 B
C++
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include <yoga/YGValue.h>
|
|
#include <yoga/numeric/Comparison.h>
|
|
|
|
using namespace facebook;
|
|
using namespace facebook::yoga;
|
|
|
|
const YGValue YGValueZero = {0, YGUnitPoint};
|
|
const YGValue YGValueUndefined = {YGUndefined, YGUnitUndefined};
|
|
const YGValue YGValueAuto = {YGUndefined, YGUnitAuto};
|
|
|
|
bool YGFloatIsUndefined(const float value) {
|
|
return yoga::isUndefined(value);
|
|
}
|