File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -191,14 +191,14 @@ public class SVGRenderer: Renderer{
191
191
isDashed: Bool ) {
192
192
guard p. count > 1 else { return }
193
193
194
- let pointsString = p. map { point in
195
- let convertedPoint = convertToSVGCoordinates ( point)
194
+ let pointsString = p. lazy . map { point in
195
+ let convertedPoint = self . convertToSVGCoordinates ( point)
196
196
return " \( convertedPoint. x) , \( convertedPoint. y) "
197
197
} . joined ( separator: " " )
198
198
199
- let dashedString = isDashed ? " ; stroke-dasharray:4 1" : " "
199
+ let dashedString = isDashed ? " stroke-dasharray:4 1; " : " "
200
200
201
- lines. append ( #"<polyline points=" \#( pointsString) " style="stroke: \#( strokeColor. svgColorString) ;stroke-width: \#( thickness) ;opacity: \#( strokeColor. a) ;stroke-linecap:butt;fill:none \#( dashedString) " />"# )
201
+ lines. append ( #"<polyline points=" \#( pointsString) " style="stroke: \#( strokeColor. svgColorString) ;stroke-width: \#( thickness) ;opacity: \#( strokeColor. a) ;stroke-linecap:butt;fill:none; \#( dashedString) " />"# )
202
202
}
203
203
204
204
public func drawText( text s: String ,
You can’t perform that action at this time.
0 commit comments