Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
fix: fix issue that may cause endless loop in autoHide
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed May 9, 2023
1 parent 035a390 commit 93491ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@antv/gui",
"version": "0.5.0-alpha.18",
"version": "0.5.0-alpha.19",
"description": "UI components for AntV G.",
"license": "MIT",
"main": "lib/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/ui/axis/overlap/autoHide.ts
Expand Up @@ -52,6 +52,7 @@ export default function hideLabels(
reset(source);

while (
seq < labels.length &&
boundTest(filterDefined(last ? [last, ...target, first] : [first, ...target]), attr, overlapCfg?.margin).length
) {
// 每两步,减一个 (不需要考虑保留 first)
Expand Down

0 comments on commit 93491ef

Please sign in to comment.