We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e376167 commit 3c5707cCopy full SHA for 3c5707c
lib/getSvgFromGraphicsObject.ts
@@ -235,10 +235,11 @@ export function getSvgFromGraphicsObject(
235
points: projectedPoints.map((p) => `${p.x},${p.y}`).join(" "),
236
fill: "none",
237
stroke: line.strokeColor || "black",
238
- "stroke-width":
239
- typeof line.strokeWidth === "string"
+ "stroke-width": !line.strokeWidth
+ ? "1px"
240
+ : typeof line.strokeWidth === "string"
241
? line.strokeWidth
- : (strokeScale * (line.strokeWidth ?? 1)).toString(),
242
+ : (strokeScale * line.strokeWidth).toString(),
243
...(line.strokeDash && {
244
"stroke-dasharray": Array.isArray(line.strokeDash)
245
? line.strokeDash.join(" ")
0 commit comments