feat(渲染编辑): 完善渲染编辑验签并优化性能
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-02 13:08:34 +08:00
1 parent 9c5ce1d66f
commit ac198f3351
56 files changed
+3029 -825

No files matched your search

+9 -2
View File
@@ -231,7 +231,14 @@ func (e *Editor) pasteCompositeSelection(selection *CompositeSelection, paste fu
if source.object.Type != "PathObject" || editReason(styleErr) != EditUnsupportedColor {
return styleErr
}
copy, err = e.wrapCompositePath(copy)
copy.setStates(source.states)
copy.defaults = source.defaults
if !source.boundaryInCTM {
if err := copy.convertCoordinates(source.parent, true); err != nil {
return err
}
}
copy, err = e.wrapCompositePath(renderer, copy)
if err != nil {
return err
}
@@ -260,7 +267,7 @@ func (e *Editor) pasteCompositeSelection(selection *CompositeSelection, paste fu
if err := copy.update(object); err != nil {
return err
}
if !source.boundaryInCTM {
if !source.boundaryInCTM && styleErr == nil {
if err := copy.convertCoordinates(source.parent, true); err != nil {
return err
}