feat(渲染引擎): 修复文字渲染并优化图像处理
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-03 10:51:50 +08:00
1 parent 1945ea355a
commit f2dbf72885
15 files changed
+344 -21

No files matched your search

+3 -3
View File
@@ -324,9 +324,6 @@ func (c *semanticCompiler) objectStyle(object PathObject, defaults *DrawParam, l
if object.DashOffset != nil {
style.options.DashOffset = *object.DashOffset
}
if style.stroke == nil {
style.stroke = &FillColor{}
}
style.fill = withFillAlpha(style.fill, object.Alpha)
style.stroke = withFillAlpha(style.stroke, object.Alpha)
if scale := math.Sqrt(math.Abs(linear.a*linear.d - linear.b*linear.c)); scale > 0 {
@@ -379,6 +376,9 @@ func (c *semanticCompiler) pathObject(object PathObject, state RenderState) erro
return err
}
style := c.objectStyle(object, state.Defaults, linear)
if style.stroke == nil {
style.stroke = withFillAlpha(&FillColor{}, object.Alpha)
}
shading, _ := renderObjectMatrix(object.Boundary, IdentityMatrix, state)
if object.Fill != nil && *object.Fill {
paint, err := c.renderer.ResolvePaint(style.fill)