Small improvements in group naming
This commit is contained in:
parent
99ba5b4fd9
commit
3807e438c5
1 changed files with 4 additions and 3 deletions
|
@ -124,9 +124,9 @@ namespace Kanimaji
|
|||
std::string brushKeyframes;
|
||||
std::string brushProgress;
|
||||
|
||||
auto background = AppendGroup(svg, "kvg:Kanimaji_Stroke_Background_" + baseId,
|
||||
auto background = AppendGroup(svg, "kvg:Kanimaji_StrokeBackground_" + baseId,
|
||||
settings.UnfilledStroke);
|
||||
auto brushBorder = AppendGroup(svg, "kvg:Kanimaji_Brush_Border_" + baseId,
|
||||
auto brushBorder = AppendGroup(svg, "kvg:Kanimaji_BrushBorder_" + baseId,
|
||||
settings.BrushBorder);
|
||||
auto animation = AppendGroup(svg, "kvg:Kanimaji_Animation_" + baseId,
|
||||
settings.FilledStroke);
|
||||
|
@ -138,6 +138,7 @@ namespace Kanimaji
|
|||
- AsSeconds(settings.DelayBetweenStrokes);
|
||||
double previousLength = 0.0;
|
||||
double currentLength = 0.0;
|
||||
|
||||
// 2nd pass to prepare the CSS
|
||||
for (const auto& path : paths) {
|
||||
std::string_view d = path.node().attribute("d").as_string();
|
||||
|
@ -217,7 +218,7 @@ namespace Kanimaji
|
|||
styles.append(brushProgress);
|
||||
styles.append(" ");
|
||||
pugi::xml_node style = svg.prepend_child("style");
|
||||
style.append_attribute("id") = "kvg:Kanimaji_Style";
|
||||
style.append_attribute("id") = "kvg:Kanimaji_Styles_" + baseId;
|
||||
style.append_child(pugi::node_pcdata).set_value(styles);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue