From 387cc468b177cecd131ff607d12a536057f2fdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Murias?= Date: Fri, 20 Dec 2024 19:54:29 +0100 Subject: [PATCH] fix: Make the method call signature match Graphics more closely (#45) --- src/SmoothGraphics.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SmoothGraphics.ts b/src/SmoothGraphics.ts index 11a0797..d37914b 100644 --- a/src/SmoothGraphics.ts +++ b/src/SmoothGraphics.ts @@ -510,12 +510,12 @@ export class SmoothGraphics extends Container return this.drawShape(new Ellipse(x, y, width, height)); } - public drawPolygon(...path: Array | Array): this; - public drawPolygon(path: Array | Array | Polygon): this; + public drawPolygon(...path: Array | Array): this; + public drawPolygon(path: Array | Array | Polygon): this; public drawPolygon(...path: any[]): this { - let points: Array | Array; + let points: Array | Array; let closeStroke = true;// !!this._fillStyle; const poly = path[0] as Polygon;