Draft: Fixed last commit (stroke endcap -> stroke-linecap)
This commit is contained in:
@@ -119,14 +119,14 @@ def get_arrow(obj,
|
||||
point.x, point.y)
|
||||
_transl = 'translate({},{})'.format(point.x, point.y)
|
||||
_scale = 'scale({size},{size})'.format(size=arrowsize)
|
||||
_style = 'style="stroke-miterlimit:4;stroke-dasharray:none;stroke-endcap:square"'
|
||||
_style = 'style="stroke-miterlimit:4;stroke-dasharray:none;stroke-linecap:square"'
|
||||
|
||||
if obj.ViewObject.ArrowType == "Circle":
|
||||
svg += '<circle '
|
||||
svg += _cx_cy_r + ' '
|
||||
svg += 'fill="{}" stroke="{}" '.format("none", color)
|
||||
svg += 'style="stroke-width:{};'.format(linewidth)
|
||||
svg += 'stroke-miterlimit:4;stroke-dasharray:none;stroke-endcap:square" '
|
||||
svg += 'stroke-miterlimit:4;stroke-dasharray:none;stroke-linecap:square" '
|
||||
svg += 'freecad:skip="1"'
|
||||
svg += '/>\n'
|
||||
elif obj.ViewObject.ArrowType == "Dot":
|
||||
@@ -327,7 +327,7 @@ def _svg_dimension(obj, plane, scale, linewidth, fontsize,
|
||||
svg += stroke + '" '
|
||||
svg += 'stroke-width="' + str(linewidth) + ' px" '
|
||||
svg += 'style="stroke-width:' + str(linewidth)
|
||||
svg += ';stroke-miterlimit:4;stroke-dasharray:none;stroke-endcap:square" '
|
||||
svg += ';stroke-miterlimit:4;stroke-dasharray:none;stroke-linecap:square" '
|
||||
svg += 'freecad:basepoint1="'+str(p1.x)+' '+str(p1.y)+'" '
|
||||
svg += 'freecad:basepoint2="'+str(p4.x)+' '+str(p4.y)+'" '
|
||||
svg += 'freecad:dimpoint="'+str(p2.x)+' '+str(p2.y)+'"'
|
||||
@@ -622,7 +622,7 @@ def get_svg(obj,
|
||||
svg_path += 'fill="none" '
|
||||
svg_path += 'stroke="{}" '.format(stroke)
|
||||
svg_path += 'stroke-width="{}" '.format(linewidth)
|
||||
svg_path += 'stroke-endcap:square;'
|
||||
svg_path += 'stroke-linecap:square;'
|
||||
svg_path += 'd="{}"'.format(path_dir_str)
|
||||
svg_path += '/>'
|
||||
svg += svg_path
|
||||
|
||||
@@ -301,7 +301,7 @@ def get_circle(plane,
|
||||
svg += 'stroke-width:{};'.format(linewidth)
|
||||
svg += 'stroke-miterlimit:4;'
|
||||
svg += 'stroke-dasharray:{};'.format(lstyle)
|
||||
svg += 'stroke-endcap:square;'
|
||||
svg += 'stroke-linecap:square;'
|
||||
svg += 'fill:{}'.format(fill) + '"'
|
||||
svg += '/>\n'
|
||||
return svg
|
||||
@@ -331,7 +331,7 @@ def get_ellipse(plane,
|
||||
svg += 'stroke-width:{};'.format(linewidth)
|
||||
svg += 'stroke-miterlimit:4;'
|
||||
svg += 'stroke-dasharray:{};'.format(lstyle)
|
||||
svg += 'stroke-endcap:square;'
|
||||
svg += 'stroke-linecap:square;'
|
||||
svg += 'fill:{}'.format(fill) + '"'
|
||||
svg += '/>\n'
|
||||
return svg
|
||||
@@ -442,7 +442,7 @@ def get_path(obj, plane,
|
||||
svg += 'stroke-width:{};'.format(linewidth)
|
||||
svg += 'stroke-miterlimit:4;'
|
||||
svg += 'stroke-dasharray:{};'.format(lstyle)
|
||||
svg += 'stroke-endcap:square;'
|
||||
svg += 'stroke-linecap:square;'
|
||||
svg += 'fill:{};'.format(fill)
|
||||
# fill_opacity must be a number, but if it's `None` it is omitted
|
||||
if fill_opacity is not None:
|
||||
|
||||
Reference in New Issue
Block a user