This will be used in an upcoming commit that determines the overlap
between the outline bounding box of a node and an edge.
return m_svg_g_element.attribute_from_subtree<double>(
&SVG::SVGAttributes::stroke_width, &SVG::SVGElement::is_shape_element, 1);
}
+
+SVG::SVGRect GraphvizEdge::outline_bbox() const {
+ return m_svg_g_element.outline_bbox();
+}
/// Return the edge's `fillcolor` attribute in RGB hex format if the opacity
/// is 100 % or in RGBA hex format otherwise.
std::string fillcolor() const;
+ /// Return the outline bounding box of the edge. The outline bounding box is
+ /// the bounding box with penwidth taken into account.
+ SVG::SVGRect outline_bbox() const;
/// Return the edge's `penwidth` attribute
double penwidth() const;
/// Return a non-mutable reference to the SVG `g` element corresponding to the