Add path rendering.

This commit is contained in:
jmsgrogan 2023-01-19 14:25:58 +00:00
parent f2ab532005
commit 97afa782a0
39 changed files with 1148 additions and 131 deletions

View file

@ -181,6 +181,16 @@ SvgPath::SvgPath()
}
std::string SvgPath::getPath() const
{
std::string d;
if (auto attr = getAttribute("d"); attr)
{
d = attr->getValue();
}
return d;
}
void SvgPath::setPath(const std::string& mPath)
{
auto path = std::make_unique<XmlAttribute>("d");