Skip to content

Commit

Permalink
rebuild: 5.0.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Oct 26, 2020
1 parent 3564230 commit 3e7bdc3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions dist/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -62164,9 +62164,11 @@
var sector = this;
var label = sector.getTextContent();
var dataIndex = this.node.dataIndex;
var labelMinAngle = normalLabelModel.get('minAngle') / 180 * Math.PI;
var isNormalShown = normalLabelModel.get('show') && !(labelMinAngle != null && Math.abs(angle) < labelMinAngle);
label.ignore = !isNormalShown;
each(DISPLAY_STATES, function (stateName) {
var labelStateModel = stateName === 'normal' ? itemModel.getModel('label') : itemModel.getModel([stateName, 'label']);
var labelMinAngle = labelStateModel.get('minAngle') / 180 * Math.PI;
var isNormal = stateName === 'normal';
var state = isNormal ? label : label.ensureState(stateName);
var text = seriesModel.getFormattedLabel(dataIndex, stateName);
Expand All @@ -62181,7 +62183,12 @@
state.style.text = text;
}

state.ignore = labelMinAngle != null && Math.abs(angle) < labelMinAngle;
var isShown = labelStateModel.get('show');

if (isShown != null && !isNormal) {
state.ignore = !isShown;
}

var labelPosition = getLabelAttr(labelStateModel, 'position');
var sectorState = isNormal ? sector : sector.states[stateName];
var labelColor = sectorState.style.fill;
Expand Down
2 changes: 1 addition & 1 deletion dist/echarts.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/echarts.min.js

Large diffs are not rendered by default.

0 comments on commit 3e7bdc3

Please sign in to comment.