"dot", //
"inv", //
"normal", //
+ "tee", //
};
static const std::unordered_set<std::string_view>
"diamond", //
"inv", //
"normal", //
+ "tee", //
};
static const std::unordered_set<std::string_view>
"dot", //
};
+static const std::unordered_set<std::string_view>
+ primitive_arrow_shapes_containing_polyline = {
+ "box", //
+ "tee", //
+};
+
static SVG::SVGElementType
edge_arrowhead_main_svg_element_type(std::string_view primitive_arrow_shape) {
if (polygon_based_primitive_arrow_shapes.contains(primitive_arrow_shape)) {
auto edge_arrowhead =
m_svg_g_element.find_child(main_svg_element_type, index);
auto edge_arrowhead_bbox = edge_arrowhead.outline_bbox();
- if (primitive_arrow_shape == "box") {
+ if (primitive_arrow_shapes_containing_polyline.contains(
+ primitive_arrow_shape)) {
auto edge_arrowhead_stem =
m_svg_g_element.find_child(SVG::SVGElementType::Polyline, index);
auto edge_arrowhead_stem_bbox = edge_arrowhead_stem.outline_bbox();