From a92f7639ec44d78358e4e3eccf077701b77af88a Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 17 Aug 2022 21:59:30 +0200 Subject: [PATCH] tests: SvgAnalyzer: GraphvizEdge: add retrieval of bounding box --- tests/graphviz_edge.cpp | 2 ++ tests/graphviz_edge.h | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/graphviz_edge.cpp b/tests/graphviz_edge.cpp index 7dcad02a3..ca33ecf0e 100644 --- a/tests/graphviz_edge.cpp +++ b/tests/graphviz_edge.cpp @@ -8,3 +8,5 @@ std::string_view GraphvizEdge::edgeop() const { return m_edgeop; } const SVG::SVGElement &GraphvizEdge::svg_g_element() const { return m_svg_g_element; } + +SVG::SVGRect GraphvizEdge::bbox() const { return m_svg_g_element.bbox(); } diff --git a/tests/graphviz_edge.h b/tests/graphviz_edge.h index 3e77d5dbe..5e774aa81 100644 --- a/tests/graphviz_edge.h +++ b/tests/graphviz_edge.h @@ -15,6 +15,7 @@ public: GraphvizEdge() = delete; explicit GraphvizEdge(SVG::SVGElement &svg_g_element); + SVG::SVGRect bbox() const; std::string_view edgeop() const; /// Return a non-mutable reference to the SVG `g` element corresponding to the /// edge -- 2.50.1