We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9835339 commit 375cdc8Copy full SHA for 375cdc8
src/marks/line.js
@@ -22,7 +22,7 @@ export class Line extends Mark {
22
...style
23
} = {}
24
) {
25
- const [vfill, cfill] = maybeColor(fill);
+ const [vfill, cfill = vfill == null ? "none" : undefined] = maybeColor(fill);
26
const [vstroke, cstroke = vstroke == null ? "currentColor" : undefined] = maybeColor(stroke);
27
if (z === undefined && vstroke != null) z = vstroke;
28
if (z === undefined && vfill != null) z = vfill;
@@ -40,7 +40,7 @@ export class Line extends Mark {
40
);
41
this.curve = Curve(curve);
42
Style(this, {
43
- fill: "none",
+ fill: cfill,
44
stroke: cstroke,
45
strokeWidth: 1.5,
46
0 commit comments