fix: 修复分割线在深色背景下颜色渲染异常 & 内容宽高未包含分割线的问题 #2961
Merged
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.
👀 PR includes
🎨 Enhance
📝 Description
回滚 #2919 的修改
G 6.0 颜色混合模式有调整, 和 4.x 有不同的配置, 相同颜色的 Line 在不同背景色绘制, 实际渲染的颜色会不一致
https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation
https://github.com/antvis/G/blob/next/packages/g-plugin-canvas-renderer/src/shapes/styles/Default.ts#L117
facet.getContentHeight()
和facet.getContentWidth()
获取的值未包含分割线宽度的问题🖼️ Screenshot
🔗 Related issue link
🔍 Self-Check before the merge