| 13 | namespace Valdi { |
| 14 | |
| 15 | std::shared_ptr<YGConfig> Yoga::createConfig(float pointScale) { |
| 16 | auto* config = YGConfigNew(); |
| 17 | YGConfigSetExperimentalFeatureEnabled(config, YGExperimentalFeatureWebFlexBasis, true); |
| 18 | YGConfigSetPointScaleFactor(config, pointScale); |
| 19 | |
| 20 | return std::shared_ptr<YGConfig>(config, YGConfigFree); |
| 21 | } |
| 22 | |
| 23 | YGNode* Yoga::createNode(YGConfig* config) { |
| 24 | return YGNodeNewWithConfig(config); |
nothing calls this directly
no test coverage detected