feat(编辑能力): 统一文字编辑,完善排版保存
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-28 12:44:31 +08:00
1 parent e35533859c
commit 89a7ef04c7
23 files changed
+410 -114

No files matched your search

+9
View File
@@ -1242,6 +1242,15 @@ func (x *ofdXML) object(object GraphicObject, root bool) {
switch object.Type {
case "TextObject", "Text":
obj := object.TextObject
metadata, err := obj.layoutMetadata()
if err != nil {
x.err = err
return
}
if metadata != "" {
attrs.add("xmlns:ofdgo", textLayoutNamespace)
attrs.add("ofdgo:Layout", metadata)
}
attrs.add("ID", obj.ID)
attrs.add("DrawParam", obj.DrawParam)
attrs.add("Boundary", obj.Boundary)