提交 dcd4858c 编写于 作者: L lang

Pie sector event removing each render

上级 89cae8bb
...@@ -235,8 +235,10 @@ define(function (require) { ...@@ -235,8 +235,10 @@ define(function (require) {
} }
}, 300, 'elasticOut'); }, 300, 'elasticOut');
} }
sector.off('mouseover').off('mouseout').off('emphasis').off('normal');
if (itemModel.get('hoverAnimation')) { if (itemModel.get('hoverAnimation')) {
sector.on('mouseover', onEmphasis) sector
.on('mouseover', onEmphasis)
.on('mouseout', onNormal) .on('mouseout', onNormal)
.on('emphasis', onEmphasis) .on('emphasis', onEmphasis)
.on('normal', onNormal); .on('normal', onNormal);
...@@ -298,9 +300,8 @@ define(function (require) { ...@@ -298,9 +300,8 @@ define(function (require) {
piePiece.updateData(data, newIdx); piePiece.updateData(data, newIdx);
selectedMode piePiece.off('click');
? piePiece.on('click', onSectorClick) selectedMode && piePiece.on('click', onSectorClick);
: piePiece.off('click');
group.add(piePiece); group.add(piePiece);
data.setItemGraphicEl(newIdx, piePiece); data.setItemGraphicEl(newIdx, piePiece);
}) })
......
...@@ -40,8 +40,6 @@ define(function(require) { ...@@ -40,8 +40,6 @@ define(function(require) {
// default 100. Do not throttle when use null/undefined. // default 100. Do not throttle when use null/undefined.
start: 0, // 默认为0 start: 0, // 默认为0
end: 100, // 默认为全部 100% 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.
先完成此消息的编辑!
想要评论请 注册