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

+4 -1
View File
@@ -93,7 +93,10 @@ func (e *Editor) GroupObjects(page int, ids []string) (id string, err error) {
state := object.state
if object.Type == "TextObject" && object.TextObject.layout != nil {
state.layout = object.TextObject.layout
state.origin[0], _ = strconv.ParseFloat(object.TextObject.TextCode[0].X, 64)
state.origin[0], _, err = e.richPlainOffset(object.TextObject)
if err != nil {
return "", err
}
state.origin[1], _ = strconv.ParseFloat(object.TextObject.TextCode[0].Y, 64)
}
states[editorObjectID(object)] = state