Update text rendering.

This commit is contained in:
jmsgrogan 2023-01-18 17:31:16 +00:00
parent 8536908eab
commit 8130308f7f
27 changed files with 503 additions and 77 deletions

View file

@ -124,6 +124,15 @@ void SvgRectangle::setHeight(double h)
addAttribute(std::move(height));
}
void SvgRectangle::setRadius(double radius)
{
auto rx = std::make_unique<XmlAttribute>("rx");
rx->setValue(std::to_string(radius));
addAttribute(std::move(rx));
}
SvgPolygon::SvgPolygon()
: SvgShapeElement("polygon")