MCPcopy Create free account
hub / github.com/Tencent/libpag / ClearLayerName

Function ClearLayerName

exporter/src/export/PAGExport.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static void ClearLayerName(pag::Composition* composition) {
80 if (composition->type() != pag::CompositionType::Vector) {
81 return;
82 }
83
84 for (auto layer : static_cast<pag::VectorComposition*>(composition)->layers) {
85 layer->name = "";
86 if (layer->type() == pag::LayerType::PreCompose) {
87 auto subCompostion = static_cast<pag::PreComposeLayer*>(layer)->composition;
88 if (subCompostion->type() == pag::CompositionType::Vector) {
89 ClearLayerName(subCompostion);
90 }
91 }
92 }
93}
94
95static pag::Point GetImageMaxScale(pag::Composition* composition, pag::ID imageID) {
96 if (composition->type() != pag::CompositionType::Vector) {

Callers 1

exportAsFileMethod · 0.85

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected