feat(转换渲染): 保留PDF结构并优化渲染
build.yaml / build (push) Successful in 2m37s

This commit is contained in:
xiaoqidun committed 2026-10-18 18:08:52 +08:00
1 parent 627a06cda3
commit a2de650b52
31 files changed
+2166 -249

No files matched your search

+6
View File
@@ -312,6 +312,12 @@ func (r *Renderer) renderPath(ctx *canvas.Context, obj PathObject, pageH float64
ctx.SetDashes(0)
}
strokeClip := r.intersectCachedClipPath(clipPath, shadingClip)
if bounds, ok := rectangularPath(strokeClip); ok {
margin := style.lineWidth / 2 * math.Max(math.Sqrt2, style.miterLimit)
if finite(margin) && bounds.Contains(sp.Bounds().Expand(margin)) {
strokeClip = nil
}
}
_, repeat := strokePaint.(*repeatAxialGradient)
if strokeClip != nil || strokeView != canvas.Identity || repeat || style.strokePattern != nil || !canvasNativeStroke(r.backends.Geometry) || zeroDash {
sp = sp.Copy()