提交 dcd4858c 编写于 作者: L lang

Pie sector event removing each render

上级 89cae8bb
......@@ -235,8 +235,10 @@ define(function (require) {
}
}, 300, 'elasticOut');
}
sector.off('mouseover').off('mouseout').off('emphasis').off('normal');
if (itemModel.get('hoverAnimation')) {
sector.on('mouseover', onEmphasis)
sector
.on('mouseover', onEmphasis)
.on('mouseout', onNormal)
.on('emphasis', onEmphasis)
.on('normal', onNormal);
......@@ -298,9 +300,8 @@ define(function (require) {
piePiece.updateData(data, newIdx);
selectedMode
? piePiece.on('click', onSectorClick)
: piePiece.off('click');
piePiece.off('click');
selectedMode && piePiece.on('click', onSectorClick);
group.add(piePiece);
data.setItemGraphicEl(newIdx, piePiece);
})
......
......@@ -40,8 +40,6 @@ define(function(require) {
// default 100. Do not throttle when use null/undefined.
start: 0, // 默认为0
end: 100, // 默认为全部 100%
start2: 0, // 默认为0
end2: 100 // 默认为全部 100%
},
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册