mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-31 00:46:36 +00:00
document double tags for fill-bg #5719
It seems we lost this comment at some point.
This commit is contained in:
@@ -776,6 +776,8 @@ class SvgWriter:
|
|||||||
}
|
}
|
||||||
|
|
||||||
def add_fill_bg(self, element: svgwrite.text.Text, copy: bool = True) -> svgwrite.text.Text:
|
def add_fill_bg(self, element: svgwrite.text.Text, copy: bool = True) -> svgwrite.text.Text:
|
||||||
|
# Useful since tspans and texts do not support "background-color"
|
||||||
|
# so we just add a filter. Have to do it in a separate tag to avoid blurry image.
|
||||||
if copy:
|
if copy:
|
||||||
element = element.copy()
|
element = element.copy()
|
||||||
if hasattr(element, "xml"):
|
if hasattr(element, "xml"):
|
||||||
|
|||||||
Reference in New Issue
Block a user