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

Method withDirection

valdi/src/valdi/runtime/Resources/DirectionalAsset.cpp:32–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32Ref<Asset> DirectionalAsset::withConfiguration(const AssetConfiguration& configuration) {
33 if (!configuration.rightToLeft.has_value()) {
34 return strongSmallRef(this);
35 }
36
37 auto asset = configuration.rightToLeft.value() ? _rtlAsset : _ltrAsset;

Callers 2

onMeasureMethod · 0.45
onApplyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected