Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Auto Padding
支持 autoPadding,相关链接:
目前所有 static 案例都设置了 autoPadding,保证除去复合视图(分面等)正确计算。
未来工作
开始使用
策略
性能
之前担心性能问题不做 autoPadding,但是目前可以和没有设置 autoPadding 保持一致。之前担心性能问题是因为:label 的宽高会求两次 bbox,但是目前计算 autoPadding 把 bbox 存储为 indexBBox 变量,GUI 拿到这个 indexBBox 可以直接获得对应的 bbox 而不用重新计算。这样可以保证 label 的 bbox 只被计算一次。
案例
不同位置
自定义 Label
没有 Title
设置属性
多轴图
超出图表区域
Flex 图
超过最大的区域范围
对于超出的,还是截断处理。
更多案例看新增的测试。