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

+2 -1
View File
@@ -109,6 +109,7 @@ func (c *pdfCompositor) drawPaint(node pdfCompositeNode, outline bool, paint pdf
if err != nil || coverage == nil {
return err
}
defer c.releaseCoverage(coverage)
style, _, _ := node.style()
var transfer *pdfgo.TransferFunction
imageShape := false
@@ -198,7 +199,7 @@ func (c *pdfCompositor) drawPaint(node pdfCompositeNode, outline bool, paint pdf
return err
}
for x := region.Min.X; x < region.Max.X; x++ {
_, _, _, a := coverage.At(x, y).RGBA()
a := imageAlphaAt(coverage, x, y)
if a == 0 {
continue
}