mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:53:44 +08:00
feat(编辑渲染): 完善三维转换,优化编辑渲染压缩
This commit is contained in:
1 parent
e8344e6387
commit
839f65e3d7
47 files changed
+4887
-112
No files matched your search
@@ -253,13 +253,16 @@ func (r *Renderer) renderPath(ctx *canvas.Context, obj PathObject, pageH float64
|
||||
}
|
||||
fp := paths.Merge()
|
||||
fillRule := canvas.NonZero
|
||||
if fillClip != nil && !fp.Bounds().Overlaps(fillClip.Bounds()) {
|
||||
fp = &canvas.Path{}
|
||||
}
|
||||
if obj.Rule == "Even-Odd" {
|
||||
fillRule = canvas.EvenOdd
|
||||
if bounds, ok := rectangularPath(fillClip); ok && bounds.Contains(fp.Bounds()) {
|
||||
fillClip = nil
|
||||
}
|
||||
if fillClip != nil || style.fillPattern != nil {
|
||||
fp = fp.Settle(fillRule)
|
||||
fp = r.settleCanvasPath(fp, fillRule)
|
||||
}
|
||||
}
|
||||
if fillClip != nil {
|
||||
|
||||
Reference in new issue
Block a user