@@ -368,8 +368,8 @@ extension ScatterPlot: HasGraphLayout {
368368 tR = rotatePoint ( point: tR, center: p, angleDegrees: 45.0 )
369369 bL = rotatePoint ( point: bL, center: p, angleDegrees: 45.0 )
370370 bR = rotatePoint ( point: bR, center: p, angleDegrees: 45.0 )
371- let diamond = Polygon ( [ tL, tR, bR, bL] ) !
372- renderer. drawSolidPolygon ( polygon : diamond,
371+ let diamond = Polygon ( tL, tR, bR, bL) !
372+ renderer. drawSolidPolygon ( diamond,
373373 fillColor: color)
374374 case . hexagon:
375375 var hexagonPoint = Point ( p. x + 0.0 ,
@@ -382,7 +382,7 @@ extension ScatterPlot: HasGraphLayout {
382382 hexagonPoints. append ( hexagonPoint)
383383 }
384384 let hexagon = Polygon ( hexagonPoints) !
385- renderer. drawSolidPolygon ( polygon : hexagon,
385+ renderer. drawSolidPolygon ( hexagon,
386386 fillColor: color)
387387 case . pentagon:
388388 var pentagonPoint = Point ( p. x + 0.0 ,
@@ -395,7 +395,7 @@ extension ScatterPlot: HasGraphLayout {
395395 pentagonPoints. append ( pentagonPoint)
396396 }
397397 let pentagon = Polygon ( pentagonPoints) !
398- renderer. drawSolidPolygon ( polygon : pentagon,
398+ renderer. drawSolidPolygon ( pentagon,
399399 fillColor: color)
400400
401401 case . star:
@@ -417,7 +417,7 @@ extension ScatterPlot: HasGraphLayout {
417417 starPoints. append ( starInnerPoint)
418418 }
419419 let star = Polygon ( starPoints) !
420- renderer. drawSolidPolygon ( polygon : star,
420+ renderer. drawSolidPolygon ( star,
421421 fillColor: color)
422422 }
423423 }
@@ -465,8 +465,8 @@ extension ScatterPlotSeriesOptions.ScatterPattern {
465465 let p2 = rotatePoint ( point: tR, center: c, angleDegrees: 45.0 )
466466 let p3 = rotatePoint ( point: bR, center: c, angleDegrees: 45.0 )
467467 let p4 = rotatePoint ( point: bL, center: c, angleDegrees: 45.0 )
468- let diamond = Polygon ( [ p1, p2, p3, p4] ) !
469- renderer. drawSolidPolygon ( polygon : diamond,
468+ let diamond = Polygon ( p1, p2, p3, p4) !
469+ renderer. drawSolidPolygon ( diamond,
470470 fillColor: color)
471471 case . hexagon:
472472 let c = Point ( ( tL. x+ bR. x) * Float( 0.5 ) ,
@@ -481,7 +481,7 @@ extension ScatterPlotSeriesOptions.ScatterPattern {
481481 hexagonPoints. append ( hexagonPoint)
482482 }
483483 let hexagon = Polygon ( hexagonPoints) !
484- renderer. drawSolidPolygon ( polygon : hexagon,
484+ renderer. drawSolidPolygon ( hexagon,
485485 fillColor: color)
486486 case . pentagon:
487487 let c = Point ( ( tL. x+ bR. x) * Float( 0.5 ) ,
@@ -496,7 +496,7 @@ extension ScatterPlotSeriesOptions.ScatterPattern {
496496 pentagonPoints. append ( pentagonPoint)
497497 }
498498 let pentagon = Polygon ( pentagonPoints) !
499- renderer. drawSolidPolygon ( polygon : pentagon,
499+ renderer. drawSolidPolygon ( pentagon,
500500 fillColor: color)
501501 case . star:
502502 let c = Point ( ( tL. x+ bR. x) * Float( 0.5 ) ,
@@ -519,7 +519,7 @@ extension ScatterPlotSeriesOptions.ScatterPattern {
519519 starPoints. append ( starInnerPoint)
520520 }
521521 let star = Polygon ( starPoints) !
522- renderer. drawSolidPolygon ( polygon : star,
522+ renderer. drawSolidPolygon ( star,
523523 fillColor: color)
524524 }
525525 }
0 commit comments