This will be used in an upcoming commit that determines the overlap
between the outline bounding box of a node and an edge.
SVG::SVGRect GraphvizNode::bbox() const { return m_svg_g_element.bbox(); }
+SVG::SVGRect GraphvizNode::outline_bbox() const {
+ return m_svg_g_element.outline_bbox();
+}
+
const SVG::SVGElement &GraphvizNode::svg_g_element() const {
return m_svg_g_element;
}
std::string fillcolor() const;
/// Return the node's `node_id` as defined by the DOT language
std::string_view node_id() const;
+ /// Return the outline bounding box of the node. The outline bounding box is
+ /// the bounding box with penwidth taken into account.
+ SVG::SVGRect outline_bbox() const;
/// Return the node's `penwidth` attribute
double penwidth() const;
/// Return a non-mutable reference to the SVG `g` element corresponding to the