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

+1 -3
View File
@@ -139,13 +139,11 @@ func (c *semanticCompiler) fill(path GeometryPath, paint Paint, evenOdd bool, cl
if len(path) == 0 || paint.Kind == PaintNone || paint.Kind == PaintSolid && paint.Color.A == 0 {
return nil
}
path = closedGeometry(path)
if !c.measure && paint.Kind != PaintPattern {
return c.command(path, paint, evenOdd, clip, shadingMatrix, nil)
}
var err error
if clip != nil || paint.Kind == PaintPattern || paint.Gradient != nil || paint.Mesh != nil {
path = closedGeometry(path)
}
if evenOdd && (clip != nil || paint.Kind == PaintPattern || paint.Gradient != nil || paint.Mesh != nil) {
path, err = c.geometry.Normalize(path, true)
if err != nil {