feat(编辑渲染): 完善三维转换,优化编辑渲染压缩

This commit is contained in:
xiaoqidun committed 2026-10-07 10:26:20 +08:00
1 parent e8344e6387
commit 839f65e3d7
47 files changed
+4887 -112

No files matched your search

+16 -3
View File
@@ -158,9 +158,22 @@ func (p *pdfImporter) compileCoverage(node pdfCompositeNode, stroke bool) (*Rast
}
evenOdd = false
}
path, err = clipGeometry(geometry, path, &clip)
if err != nil {
return nil, Box{}, err
var clipped GeometryPath
var linear bool
var clipErr error
if rectangle {
clipped, linear, clipErr = clipLinearFillGeometry(path, clip)
}
if clipErr != nil {
return nil, Box{}, clipErr
}
if linear {
path = clipped
} else {
path, err = clipGeometry(geometry, path, &clip)
if err != nil {
return nil, Box{}, err
}
}
}
if err := compiler.command(path, Paint{Color: color.RGBA{255, 255, 255, 255}}, evenOdd, nil, IdentityMatrix, nil); err != nil {