mirror of
https://github.com/konvajs/konva.git
synced 2025-11-08 02:24:44 +08:00
Fix incorrect variable assignments for minY and maxY in RegularPolygon class. close #1985
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user