Skip to content

Commit

Permalink
Fix #5245 (markArea.itemStyle.emphasis did not work)
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Sep 25, 2017
1 parent e142f45 commit 47bbcc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/marker/MarkAreaView.js
Expand Up @@ -221,7 +221,7 @@ define(function (require) {
)
);

polygon.hoverStyle = itemModel.getModel('itemStyle.normal').getItemStyle();
polygon.hoverStyle = itemModel.getModel('itemStyle.emphasis').getItemStyle();

graphic.setLabelStyle(
polygon.style, polygon.hoverStyle, labelModel, labelHoverModel,
Expand Down
8 changes: 8 additions & 0 deletions test/markArea.html
Expand Up @@ -57,6 +57,14 @@
data: data1,

markArea: {
itemStyle: {
// normal: {
// color: 'red'
// },
emphasis: {
color: 'yellow'
}
},
label: {
normal: {
// position: 'right'
Expand Down

0 comments on commit 47bbcc5

Please sign in to comment.