MCPcopy Create free account
hub / github.com/Snapchat/Valdi / createConfig

Method createConfig

valdi/src/valdi/runtime/Attributes/Yoga/Yoga.cpp:15–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace Valdi {
14
15std::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
23YGNode* Yoga::createNode(YGConfig* config) {
24 return YGNodeNewWithConfig(config);

Callers

nothing calls this directly

Calls 3

YGConfigNewFunction · 0.85

Tested by

no test coverage detected