feat: add overflow 'fit' property for text labels#21620
Conversation
|
Thanks for your contribution! Please DO NOT commit the files in dist, i18n, and ssr/client/dist folders in a non-release pull request. These folders are for release use only. Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the This PR depends on ZRender changes. Please update the ZRender dependency to the latest nightly version including this change, which takes place everyday at 8:00 UTC (16:00 Beijing Time). |
70f7035 to
25004df
Compare
Brief Information
This pull request is in the type of:
What does this PR do?
Adds a comprehensive visual test page for the proposed
overflow: 'fit'text label behavior.Fixed issues
Details
Before: What was the problem?
There was no visual test coverage for the proposed
overflow: 'fit'label behavior across different ECharts rendering scenarios.After: How does it behave after the fixing?
This PR adds
test/label-overflow-fit.htmlto demonstrate and validate:Document Info
Misc
Security Checking
ZRender Changes
Related test cases or examples to use the new APIs
Added
test/label-overflow-fit.html.Merging options