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

Function sanitizeYogaValue

valdi/src/valdi/runtime/Context/ViewNode.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 return viewManagerContext->getViewManager().getRenderingBackendType();
98}
99
100static inline float sanitizeYogaValue(float yogaValue) {
101 if (std::isnan(yogaValue)) {
102 return 0.0;
103 }
104
105 return yogaValue;
106}

Callers 5

ygNodeGetFrameFunction · 0.85
preserveDescendantAtYFunction · 0.85
updateScrollStateMethod · 0.85
getFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected