mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
1 parent
627a06cda3
commit
a2de650b52
31 files changed
+2166
-249
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user