feat(性能优化): 优化页面渲染与文字传输性能
build.yaml / build (push) Successful in 42s

This commit is contained in:
xiaoqidun committed 2026-09-13 20:16:39 +08:00
1 parent 2b2e83bdbe
commit 740c088bfd
9 files changed
+34 -6

No files matched your search

+3 -1
View File
@@ -301,7 +301,9 @@ func (r *Renderer) renderText(ctx *canvas.Context, obj TextObject, pageH float64
}
textRun.addSpan(textPos+spans[i][0], textPos+spans[i][1], bounds, m.Scale(scaleX, 1), clipPath, pageH)
}
continue
if r.textOnly {
continue
}
}
if shouldStroke {
scaleX := hScale