Skip to content

fix(axis): align rotated text OBB offsets - #2106

Merged
xuefei1313 merged 1 commit into
developfrom
agent/fix-line-axis-obb-offset
Jul 29, 2026
Merged

fix(axis): align rotated text OBB offsets#2106
xuefei1313 merged 1 commit into
developfrom
agent/fix-line-axis-obb-offset

Conversation

@xuefei1313

Copy link
Copy Markdown
Contributor

Summary

  • Calculate rotated text OBBs without dx/dy, then apply those offsets as world-space translation.
  • Add a LineAxis regression for flush: true with greedy auto-hide and vertically rotated endpoint labels.

Root cause

Text rendering applies dx/dy after rotation. The OBB path included those offsets before rotating its measurement box, so its collision geometry diverged from the rendered text AABB and missed overlapping endpoint labels.

Validation

  • packages/vrender-core: Jest suite — 105 suites passed, 613 tests passed
  • packages/vrender-components: LineAxis electron regression suite — 12 tests passed
  • rush compile -t @visactor/vrender-core -t @visactor/vrender-components
  • Pre-push rush test --only tag:package hook

@xuefei1313
xuefei1313 marked this pull request as ready for review July 29, 2026 08:54
@xuefei1313
xuefei1313 merged commit aa66bd4 into develop Jul 29, 2026
6 of 8 checks passed
@xuefei1313
xuefei1313 deleted the agent/fix-line-axis-obb-offset branch July 29, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant