G2 icon indicating copy to clipboard operation
G2 copied to clipboard

fix(theme): 背景 rect 的 bbox 在 slider 重新布局后 没有覆盖全 canvas

Open ai-qing-hai opened this issue 3 years ago • 3 comments
trafficstars

before after
image image

fixed #2484

ai-qing-hai avatar Jun 23 '22 06:06 ai-qing-hai

🎊 PR Preview eb0a9410465aa7507cfceb66771d128c66335c5d has been successfully built and deployed to https://antvis-G2-preview-pr-3998.surge.sh?type=diff&date=2022-06-27

:clock1: Build time: 64.949s

🤖 By Surge Ui Insight

github-actions[bot] avatar Jun 23 '22 07:06 github-actions[bot]

看下是不是和这个 PR 的问题是一样的,coordinate 更新之后,没有更新 controller 组件的位置

visiky avatar Jul 04 '22 23:07 visiky

@visiky 和这个感觉差距有点大。 这个主要不是 coordinateBox 的问题。 而是 viewBBox 的问题。 slider 和 scrollbar 会裁剪掉 viewBBox 的 来记录自己的位置。 导致黑色背景覆盖不到 slider 和 scrollbar。 所以我这边才用的 新 contentBBox 。 单纯的 viewBBox 和 coordinateBBox 不够。 需要一个新的 bbox 属性去记录位置。

ai-qing-hai avatar Jul 05 '22 02:07 ai-qing-hai

这个 PR 先关闭了。

hustcc avatar Sep 09 '22 08:09 hustcc