Skip to content

Commit

Permalink
Merge pull request #1180 from illumen/patch-1
Browse files Browse the repository at this point in the history
fix(schema): use cfg.color for lineAttrs.stroke if available.
  • Loading branch information
leungwensen committed Feb 22, 2019
2 parents 66d4fdc + ece66a7 commit 1395c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geom/shape/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function getFillAttrs(cfg) {
const lineAttrs = Util.mix({}, defaultAttrs, cfg.style);
ShapeUtil.addFillAttrs(lineAttrs, cfg);
if (cfg.color) {
lineAttrs.stroke = lineAttrs.stroke || cfg.color;
lineAttrs.stroke = cfg.color || lineAttrs.stroke;
}
return lineAttrs;
}
Expand Down

0 comments on commit 1395c9a

Please sign in to comment.