feat(标准版本): 修复裁剪字形并完善版本兼容
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-09 23:15:06 +08:00
1 parent 444c01b976
commit e9caaa4193
31 files changed
+639 -182

No files matched your search

+8 -2
View File
@@ -204,11 +204,17 @@ func appendCompositeClip(node *editorCompositeNode, shape PathObject, matrix Mat
}
var patch editorXMLPatch
if original := node.node.child("Clips"); original != nil {
clip := editorXMLEncodedFragment(data, root.children[0])
clip, err := editorXMLEncodedFragment(data, root.children[0], original.name.Space)
if err != nil {
return err
}
content := append(bytes.Clone(node.data[original.open:original.close]), clip...)
patch = editorXMLContent(node.data, original, content)
} else {
data = editorXMLEncodedFragment(data, root)
data, err = editorXMLEncodedFragment(data, root, node.node.name.Space)
if err != nil {
return err
}
if actions := node.node.child("Actions"); actions != nil {
patch = editorXMLPatch{actions.end, actions.end, data}
} else {