Skip to content

Commit 375cdc8

Browse files
Filmbostock
authored andcommitted
default fill none
1 parent 9835339 commit 375cdc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/marks/line.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class Line extends Mark {
2222
...style
2323
} = {}
2424
) {
25-
const [vfill, cfill] = maybeColor(fill);
25+
const [vfill, cfill = vfill == null ? "none" : undefined] = maybeColor(fill);
2626
const [vstroke, cstroke = vstroke == null ? "currentColor" : undefined] = maybeColor(stroke);
2727
if (z === undefined && vstroke != null) z = vstroke;
2828
if (z === undefined && vfill != null) z = vfill;
@@ -40,7 +40,7 @@ export class Line extends Mark {
4040
);
4141
this.curve = Curve(curve);
4242
Style(this, {
43-
fill: "none",
43+
fill: cfill,
4444
stroke: cstroke,
4545
strokeWidth: 1.5,
4646
...style

0 commit comments

Comments
 (0)