Skip to content

Commit

Permalink
Merge pull request #43 from raucha/patch-2
Browse files Browse the repository at this point in the history
Update NodeFactory.py
  • Loading branch information
hbmartin authored Jul 2, 2024
2 parents f996cc9 + b4ed819 commit 4fb802b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion graphviz2drawio/mx/NodeFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,17 @@ def from_svg(self, g) -> Node:
if "stroke" in polygon.attrib:
stroke = polygon.attrib["stroke"]

fill = None
if SVG.has(g, "ellipse"):
ellipse = SVG.get_first(g, "ellipse")
if "fill" in ellipse.attrib:
fill = ellipse.attrib["fill"]

return Node(
sid=g.attrib["id"],
gid=SVG.get_title(g),
rect=rect,
texts=texts,
fill=g.attrib.get("fill", None),
fill=fill,
stroke=stroke,
)

0 comments on commit 4fb802b

Please sign in to comment.