Skip to content

Commit

Permalink
fix: Make the method call signature match Graphics more closely (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias authored Dec 20, 2024
1 parent c2c947e commit 387cc46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SmoothGraphics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,12 @@ export class SmoothGraphics extends Container
return this.drawShape(new Ellipse(x, y, width, height));
}

public drawPolygon(...path: Array<number> | Array<Point>): this;
public drawPolygon(path: Array<number> | Array<Point> | Polygon): this;
public drawPolygon(...path: Array<number> | Array<IPointData>): this;
public drawPolygon(path: Array<number> | Array<IPointData> | Polygon): this;

public drawPolygon(...path: any[]): this
{
let points: Array<number> | Array<Point>;
let points: Array<number> | Array<IPointData>;
let closeStroke = true;// !!this._fillStyle;

const poly = path[0] as Polygon;
Expand Down

0 comments on commit 387cc46

Please sign in to comment.