Skip to content

Commit

Permalink
Merge pull request #347 from antvis/fix-issue-345
Browse files Browse the repository at this point in the history
fix: fix the error when draw Guide.regionFilter for area chart. Close…
  • Loading branch information
simaQ committed Sep 26, 2018
2 parents 525aa41 + 3900565 commit 9e448c5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/component/guide/region-filter.js
Expand Up @@ -52,10 +52,14 @@ class RegionFilter extends GuideBase {
if (color && (attrs.stroke || attrs.strokeStyle)) {
attrs.stroke = attrs.strokeStyle = color;
}

group.addShape(type, {
const cfg = {
attrs
});
};
if (type === 'custom' || type === 'Custom') { // custom 类型的 shape 会自定义绘制 path 的逻辑
cfg.createPath = c.get('createPath');
cfg.calculateBox = c.get('calculateBox');
}
group.addShape(type, cfg);
}
return c;
});
Expand Down

0 comments on commit 9e448c5

Please sign in to comment.