mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
This commit is contained in:
1 parent
444a84c629
commit
b30a44b7ce
25 files changed
+529
-63
No files matched your search
@@ -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})
|
||||
|
||||
Reference in new issue
Block a user