Skip to content

fix: correct stack corner clipping with barMinHeight#4554

Merged
xuefei1313 merged 1 commit intodevelopfrom
fix/bar-min-height-stack-corner-radius
Apr 13, 2026
Merged

fix: correct stack corner clipping with barMinHeight#4554
xuefei1313 merged 1 commit intodevelopfrom
fix/bar-min-height-stack-corner-radius

Conversation

@xuefei1313
Copy link
Copy Markdown
Contributor

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Refactoring
  • Update dependency
  • Code style optimization
  • Test Case
  • Branch merge
  • Release
  • Site / documentation update
  • Demo update
  • Workflow
  • Other (about what?)

🔗 Related issue link

#4543

🔗 Related PR link

🐞 Bugserver case id

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English
🇨🇳 Chinese

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

copilot:summary

🔍 Walkthrough

copilot:walkthrough

Stacked bar clip paths recomputed aggregate bounds from stack values even when
barMinHeight had already rewritten the rendered segment geometry.
Use the precomputed RECT coordinates for clip path bounds in that case and lock
the regression with a chart unit test plus a Rush changefile.

Constraint: barMinHeight rewrites rendered stack segment bounds before clipping
Rejected: Disable stackCornerRadius when barMinHeight is set | drops intended styling
Confidence: high
Scope-risk: narrow
Reversibility: clean
Directive: When stack geometry is precomputed, derive clip bounds from RECT fields
Tested: npm test -- --runInBand __tests__/unit/chart/bar.test.ts; npm run compile
Not-tested: Browser rendering in the public playground for issue #4543
@xuefei1313 xuefei1313 merged commit dbcf269 into develop Apr 13, 2026
6 of 9 checks passed
@xuefei1313 xuefei1313 deleted the fix/bar-min-height-stack-corner-radius branch April 13, 2026 12:02
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.

2 participants