feat(编辑能力): 完善对象变换与复制,修复字体栏错位
build.yaml / build (push) Successful in 40s

This commit is contained in:
xiaoqidun committed 2026-09-17 13:47:04 +08:00
1 parent 7f79d1e70a
commit 3a867a7cac
15 files changed
+444 -81

No files matched your search

+5 -2
View File
@@ -302,12 +302,15 @@ func editorXMLContainersSupported(node *editorXML) bool {
return true
}
// editorXMLCopyable 判断独立复制是否无需重写内部标识或动作引用
// editorXMLCopyable 判断内部标识能否按标准重映射,扩展节点的标识不作推断
// 入参: node 原始对象节点
// 返回: bool 是否支持保真复制
func editorXMLCopyable(node *editorXML) bool {
if node.attr("ID") != "" && (editorResourceID(node.attr("ID")) == "" || node.name.Space != "" && node.name.Space != ofdNamespace && node.name.Space != "http://www.ofdspec.org") {
return false
}
for _, child := range node.children {
if child.attr("ID") != "" || child.name.Local == "Actions" || !editorXMLCopyable(child) {
if !editorXMLCopyable(child) {
return false
}
}