feat(转换能力): 修正颜色转换与路径填充
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-09-28 20:23:12 +08:00
1 parent 73105646aa
commit 30d9699385
6 files changed
+12 -18

No files matched your search

+4 -8
View File
@@ -245,15 +245,11 @@ func (r *Renderer) renderPath(ctx *canvas.Context, obj PathObject, pageH float64
if shouldFill {
fillPaint, shadingClip, fillView := resolveShdPaint(ctx, style.fillPaint)
fillClip := intersectClipPath(clipPath, shadingClip)
fp := p
_, repeat := fillPaint.(*repeatAxialGradient)
if fillClip != nil || repeat {
paths := canvas.Paths(p.Copy().Split())
for _, path := range paths {
path.Close()
}
fp = paths.Merge()
paths := canvas.Paths(p.Copy().Split())
for _, path := range paths {
path.Close()
}
fp := paths.Merge()
fillRule := canvas.NonZero
if obj.Rule == "Even-Odd" {
fillRule = canvas.EvenOdd