YGConfig.cpp 632 B

12345678910111213141516171819
  1. /**
  2. * Copyright (c) 2014-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #include "YGConfig.h"
  8. const std::array<bool, YGExperimentalFeatureCount>
  9. kYGDefaultExperimentalFeatures = {{false}};
  10. YGConfig::YGConfig(YGLogger logger)
  11. : experimentalFeatures(kYGDefaultExperimentalFeatures),
  12. useWebDefaults(false),
  13. useLegacyStretchBehaviour(false),
  14. shouldDiffLayoutWithoutLegacyStretchBehaviour(false),
  15. pointScaleFactor(1.0f), logger(logger), cloneNodeCallback(nullptr),
  16. context(nullptr) {}