Permalink
Browse files

fix: fix the error when draw Guide.regionFilter for area chart. Closed

  • Loading branch information...
simaQ committed Sep 26, 2018
1 parent 525aa41 commit 3900565d132eebb43e36822e9d067a0656ae7e3c
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/component/guide/region-filter.js
@@ -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;
});

0 comments on commit 3900565

Please sign in to comment.