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
@@ -80,6 +80,7 @@ func (c *pdfCompositor) shadingPattern(pattern *pdfgo.ShadingPattern, node pdfCo
c.releasePixels(result)
return nil, err
}
defer c.releaseCoverage(coverage)
step := 25.4 / c.importer.rasterDPI
for i := range result {
if i%pdfCompositeTileSize == 0 {
@@ -90,7 +91,7 @@ func (c *pdfCompositor) shadingPattern(pattern *pdfgo.ShadingPattern, node pdfCo
}
shape := 0.0
if coverage != nil {
_, _, _, a := coverage.At(i%c.width, i/c.width).RGBA()
a := imageAlphaAt(coverage, i%c.width, i/c.width)
shape = float64(a) / 65535
}
if nodes[0].image != nil && shape != 0 {