feat(创建写入): 完善画布编辑状态保护,优化离屏页面回收
build.yaml / build (push) Successful in 38s

This commit is contained in:
xiaoqidun committed 2026-09-15 18:19:21 +08:00
1 parent e9d9ba0add
commit cfcf1939d1
9 files changed
+503 -99

No files matched your search

+4 -1
View File
@@ -198,7 +198,10 @@ func (r *Renderer) renderText(ctx *canvas.Context, obj TextObject, pageH float64
}
codePos := 0
textPos := 0
for _, tc := range obj.TextCode {
for index, tc := range obj.TextCode {
if textRun != nil && obj.textCodeLineBreak(index) {
textPos++
}
var runes []rune
var glyphs []textGlyph
if tc.Index != "" {