Fix incorrect variable assignments for minY and maxY in RegularPolygon class. close #1985
Some checks are pending
Test Browser / build (20.x) (push) Waiting to run
Test NodeJS / build (23.x) (push) Waiting to run

This commit is contained in:
Anton Lavrevov
2025-11-01 15:34:38 -05:00
parent 1ce485257b
commit 638974ed91

View File

@@ -74,8 +74,8 @@ export class RegularPolygon extends Shape<RegularPolygonConfig> {
const points = this._getPoints();
let minX = points[0].x;
let maxX = points[0].y;
let minY = points[0].x;
let maxX = points[0].x;
let minY = points[0].y;
let maxY = points[0].y;
points.forEach((point) => {
minX = Math.min(minX, point.x);