Skip to content

Commit

Permalink
Merge pull request #16542 from susiwen8/fix-16539
Browse files Browse the repository at this point in the history
fix(labelLine): update labelLine `ignore`
  • Loading branch information
pissang authored Mar 24, 2022
2 parents c2f4ac6 + 291bf29 commit 6c721de
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/label/labelGuideHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ export function setLabelLineStyle(
if (isLabelIgnored // Not show when label is not shown in this state.
|| !retrieve2(stateShow, showNormal) // Use normal state by default if not set.
) {
const stateObj = isNormal ? labelLine : (labelLine && labelLine.states.normal);
const stateObj = isNormal ? labelLine : (labelLine && labelLine.states[stateName]);
if (stateObj) {
stateObj.ignore = true;
}
Expand Down
59 changes: 59 additions & 0 deletions test/pie-label.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6c721de

Please sign in to comment.