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

+3
View File
@@ -263,6 +263,9 @@ func (e *Editor) addEditorDrawParam(draw DrawParam) (string, error) {
attrs.add(pair[0], pair[1])
}
attrs.number("LineWidth", draw.LineWidth)
if draw.LineWidthSet && draw.LineWidth == 0 {
attrs.add("LineWidth", "0")
}
attrs.number("MiterLimit", draw.MiterLimit)
if draw.Relative == "" || draw.dashPatternSet || draw.DashPattern != "" {
attrs = append(attrs, xml.Attr{Name: xml.Name{Local: "DashPattern"}, Value: draw.DashPattern})