File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export class Area extends Mark {
2323 ...options
2424 } = { }
2525 ) {
26- const [ vfill , cfill ] = maybeColor ( fill , "currentColor" ) ;
2726 const [ vstroke , cstroke ] = maybeColor ( stroke , "none" ) ;
27+ const [ vfill , cfill ] = maybeColor ( fill , cstroke === "none" ? "currentColor" : "none" ) ;
2828 if ( z === undefined && vfill != null ) z = vfill ;
2929 if ( z === undefined && vstroke != null ) z = vstroke ;
3030 super (
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ export class AbstractBar extends Mark {
2323 ...options
2424 } = { }
2525 ) {
26- const [ vfill , cfill ] = maybeColor ( fill , "currentColor" ) ;
2726 const [ vstroke , cstroke ] = maybeColor ( stroke , "none" ) ;
27+ const [ vfill , cfill ] = maybeColor ( fill , cstroke === "none" ? "currentColor" : "none" ) ;
2828 super (
2929 data ,
3030 [
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ export class Rect extends Mark {
2626 ...options
2727 } = { }
2828 ) {
29- const [ vfill , cfill ] = maybeColor ( fill , "currentColor" ) ;
3029 const [ vstroke , cstroke ] = maybeColor ( stroke , "none" ) ;
30+ const [ vfill , cfill ] = maybeColor ( fill , cstroke === "none" ? "currentColor" : "none" ) ;
3131 super (
3232 data ,
3333 [
You can’t perform that action at this time.
0 commit comments