We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e022ee commit 876f48bCopy full SHA for 876f48b
packages/vrender-components/src/label/overlap/shiftY.ts
@@ -185,7 +185,7 @@ export function shiftY(texts: IText[], option: IShiftYOption) {
185
deltaYTolerance = Number.MAX_VALUE
186
} = globalShiftY;
187
for (let iter = 0; iter < maxIterations; iter++) {
188
- texts.sort((a, b) => getY1(a) - getY1(b));
+ texts.sort((a, b) => getY1Initial(a) - getY1Initial(b));
189
let error = 0;
190
for (let i = 0; i < n - 1; i++) {
191
const curText = texts[i];
0 commit comments