BIM: change TD BIMView linecaps to square

This commit is contained in:
Roy-043
2026-03-02 15:00:54 +00:00
committed by Yorik van Havre
parent 1f848b4d78
commit d6479d055d
+12 -2
View File
@@ -471,7 +471,11 @@ def getSVG(
if vshapes:
baseshape = Part.makeCompound(vshapes)
style = {"stroke": "SVGLINECOLOR", "stroke-width": "SVGLINEWIDTH"}
style = {
"stroke": "SVGLINECOLOR",
"stroke-linecap": "SVGLINECAP",
"stroke-width": "SVGLINEWIDTH",
}
svgcache += TechDraw.projectToSVG(
baseshape,
direction,
@@ -486,6 +490,7 @@ def getSVG(
hshapes = Part.makeCompound(hshapes)
style = {
"stroke": "SVGLINECOLOR",
"stroke-linecap": "SVGLINECAP",
"stroke-width": "SVGLINEWIDTH",
"stroke-dasharray": "SVGHIDDENPATTERN",
}
@@ -522,7 +527,11 @@ def getSVG(
)
svgcache += "</g>\n"
sshapes = Part.makeCompound(sshapes)
style = {"stroke": "SVGLINECOLOR", "stroke-width": "SVGCUTLINEWIDTH"}
style = {
"stroke": "SVGLINECOLOR",
"stroke-linecap": "SVGLINECAP",
"stroke-width": "SVGCUTLINEWIDTH",
}
svgcache += TechDraw.projectToSVG(
sshapes,
direction,
@@ -547,6 +556,7 @@ def getSVG(
]
svgcache = svgcache.replace("SVGLINECOLOR", svgLineColor)
svgcache = svgcache.replace("SVGLINECAP", "square")
svgcache = svgcache.replace("SVGLINEWIDTH", svgLineWidth)
svgcache = svgcache.replace("SVGHIDDENPATTERN", svgHiddenPattern)
svgcache = svgcache.replace("SVGCUTLINEWIDTH", svgCutLineWidth)