mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 13:56:32 +08:00
feat(编辑渲染): 完善三维转换,优化编辑渲染压缩
This commit is contained in:
1 parent
e8344e6387
commit
839f65e3d7
47 files changed
+4887
-112
No files matched your search
+16
-3
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user