Skip to content

Commit

Permalink
fix: Optimize shape's unique id generation strategy.
Browse files Browse the repository at this point in the history
  • Loading branch information
simaQ committed May 4, 2018
1 parent eff1ffb commit 09036ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/animation/detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ function _getShapeId(geom, dataObj) {
} else if (type === 'line' || type === 'area' || type === 'path') {
id += '-' + type;
} else {
id += '-' + xVal + '-' + yVal;
// 分类类型只需要判断 xVal
id += xScale.isCategory ? '-' + xVal : '-' + xVal + '-' + yVal;
}

const groupScales = geom._getGroupScales();
Expand Down

0 comments on commit 09036ba

Please sign in to comment.