提交 4a7a8453 编写于 作者: L lang

markArea default color and borderColor tweak

上级 8c61ee91
......@@ -22,11 +22,15 @@ define(function (require) {
show: true,
position: 'top'
}
},
itemStyle: {
normal: {
// color and borderColor default to use color from series
// color: 'auto'
// borderColor: 'auto'
borderWidth: 0
}
}
// itemStyle: {
// normal: {
// }
// }
}
});
});
\ No newline at end of file
......@@ -172,9 +172,8 @@ define(function (require) {
}));
// Visual
var itemModel = areaData.getItemModel(idx);
areaData.setItemVisual(idx, {
color: itemModel.get('itemStyle.normal.color') || seriesData.getVisual('color')
color: seriesData.getVisual('color')
});
});
......@@ -214,10 +213,11 @@ define(function (require) {
var labelHoverModel = itemModel.getModel('label.emphasis');
var color = areaData.getItemVisual(idx, 'color');
polygon.useStyle(
zrUtil.extend(
zrUtil.defaults(
itemModel.getModel('itemStyle.normal').getItemStyle(),
{
fill: colorUtil.modifyAlpha(color, 0.4)
fill: colorUtil.modifyAlpha(color, 0.4),
stroke: color
}
)
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册