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

Method setScrollCircularRatio

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

Source from the content-addressed store, hash-verified

3238bool ViewNode::isHorizontal() {
3239 auto flexDirection = getYogaStyle(getYogaNodeForInsertingChildren()).flexDirection();
3240 return flexDirection == facebook::yoga::FlexDirection::Row ||
3241 flexDirection == facebook::yoga::FlexDirection::RowReverse;
3242}
3243
3244bool ViewNode::setAttribute(ViewTransactionScope& viewTransactionScope,
3245 AttributeId attributeId,
3246 const AttributeOwner* attributeOwner,
3247 const Value& attributeValue,
3248 const Ref<Animator>& animator) {
3249 return setAttribute(viewTransactionScope, attributeId, attributeOwner, attributeValue, animator, false);

Callers 1

TESTFunction · 0.80

Calls 3

getCircularRatioMethod · 0.80
setCircularRatioMethod · 0.80
setNeedsSyncWithViewMethod · 0.80

Tested by 1

TESTFunction · 0.64