feat(编辑阅读): 完善保真编辑与跨文档复制,优化后端缓存和大文件性能
build.yaml / build (push) Successful in 41s

This commit is contained in:
xiaoqidun committed 2026-09-24 13:48:48 +08:00
1 parent 06b5df9173
commit 697a059162
18 files changed
+694 -130

No files matched your search

+16
View File
@@ -19,6 +19,22 @@ import (
"strconv"
)
// Actions 返回对象动作的独立副本,不修改原对象
// 返回: []Action 动作列表
func (o GraphicObject) Actions() []Action {
switch o.Type {
case "TextObject":
return cloneEditorData(o.TextObject.Actions)
case "PathObject", "Path":
return cloneEditorData(o.PathObject.Actions)
case "ImageObject":
return cloneEditorData(o.ImageObject.Actions)
case "CompositeObject", "CompositeGraphicUnit":
return cloneEditorData(o.CompositeGraphicUnit.Actions)
}
return nil
}
// UnmarshalXML 解析路径并区分省略的虚线样式与显式实线
// 入参: d XML解码器, start 起始节点
// 返回: error 错误信息