feat(转换能力): 完善可编辑矢量转换与零线宽保存
build.yaml / build (push) Successful in 46s

This commit is contained in:
xiaoqidun committed 2026-09-24 19:12:58 +08:00
1 parent 444a84c629
commit b30a44b7ce
25 files changed
+529 -63

No files matched your search

+6
View File
@@ -668,6 +668,9 @@ func (x *ofdXML) object(object GraphicObject, root bool) {
attrs.number("ReadDirection", float64(obj.ReadDirection))
attrs.number("CharDirection", float64(obj.CharDirection))
attrs.number("LineWidth", obj.LineWidth)
if obj.LineWidthSet && obj.LineWidth == 0 {
attrs.add("LineWidth", "0")
}
attrs.number("MiterLimit", obj.MiterLimit)
attrs.add("Join", obj.Join)
if obj.Italic {
@@ -686,6 +689,9 @@ func (x *ofdXML) object(object GraphicObject, root bool) {
attrs.add("Boundary", obj.Boundary)
attrs.add("CTM", obj.CTM)
attrs.number("LineWidth", obj.LineWidth)
if obj.LineWidthSet && obj.LineWidth == 0 {
attrs.add("LineWidth", "0")
}
attrs.number("MiterLimit", obj.MiterLimit)
attrs.add("Join", obj.Join)
attrs.add("Cap", obj.Cap)