refactor(重构提升): 修复裁剪并优化转换渲染
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-06 23:09:49 +08:00
1 parent 619899e297
commit e8344e6387
27 files changed
+754 -150

No files matched your search

+4 -2
View File
@@ -936,20 +936,22 @@ func (x *ofdXML) clips(clips *Clips) {
var attrs ofdAttrs
attrs.add("CTM", area.CTM)
attrs.add("DrawParam", area.DrawParam)
x.start("Area", attrs)
for _, path := range area.Path {
if x.err != nil {
return
}
x.start("Area", attrs)
x.object(GraphicObject{Type: "Path", PathObject: path}, false)
x.end("Area")
}
for _, text := range area.Text {
if x.err != nil {
return
}
x.start("Area", attrs)
x.object(GraphicObject{Type: "Text", TextObject: text}, false)
x.end("Area")
}
x.end("Area")
}
x.end("Clip")
}