feat(字体处理): 优化字体与文案,修复文档隔离
build.yaml / build (push) Successful in 3m22s

This commit is contained in:
xiaoqidun committed 2026-10-10 12:24:32 +08:00
1 parent c2d9a349c5
commit 0f2fb7a842
17 files changed
+113 -61

No files matched your search

+8 -6
View File
@@ -47,12 +47,13 @@ type editorSource struct {
// editorObjectOrigin 保留原对象的XML语义,供复制和局部更新复用
type editorObjectOrigin struct {
editor *Editor
page *editorSourcePage
data []byte
node *editorXML
object GraphicObject
reason error
editor *Editor
document editorDocumentIdentity
page *editorSourcePage
data []byte
node *editorXML
object GraphicObject
reason error
}
// editorSourcePage 保存页面原文、解析快照及图层和页块内的对象位置
@@ -613,6 +614,7 @@ func (e *Editor) setObjectOrigin(id string, origin *editorObjectOrigin) {
if origin != nil && origin.page == nil && origin.editor == nil {
copy := *origin
copy.editor = e
copy.document = e.documentIdentity()
origin = &copy
}
e.origins[id] = origin